Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
*Param
Keywords []Keyword
Functions template.FuncMap
Output *os.File
// contains filtered or unexported fields
}
Context 保存一次提取任务运行期间的上下文。 除了解析参数外,也负责缓存 keyword/function 映射、收集 entry 以及输出目标。
func (*Context) Add ¶
func (ctx *Context) Add(entry *translator.Entry) error
Add 合并一条抽取结果;相同 msgid 会合并来源注释。
type Keyword ¶
Keyword gettext keyword
func ParseKeywords ¶
ParseKeywords 解析 xgettext 风格的关键字声明,例如: gettext;T:1;N:1,2;X:1c,2;XN:1c,2,3
Click to show internal directories.
Click to hide internal directories.