每次添加或更改字符串时,都应当重新生成消息文件,否则将在目标语言环境显示未翻译的新文本。
Every time strings are added or changed, the message file should be regenerated, or the new text will appear untranslated in the target locales.
尽管代码生成器可以理解一点儿目标语言的知识,但是它们通常都不是完整的语法分析器,不重新编写一个完整的编译器是无法全面考虑目标语言的。
While code generators understand a little bit about the target language, they are usually not full parsers and cannot take the target language into account without rewriting a complete compiler.
这一功能使理解和维护生成器更加容易,而且可以将生成器重定位到其他目标语言。
This functionality makes understanding and maintaining the generator easier, and also makes it possible to repurpose the generator for other language targets.
应用推荐