-2

I have created a ne_NP.po file from pot file and saved it. It creates a .mo file and .po file and when i try to add a source text of ne_NP.po file, it didnot let me to edit the .po file. I want to add a new text of english and convert it into it's respective nepali language. why I am not being able to add a new english string with its respective string in nepali language.

4

1 回答 1

0

您误解了 gettext 翻译的工作原理。用于翻译的源字符串是从源代码中提取的。手动添加它们是没有意义的——如果它们没有相应的使用它们的源代码,它们将永远不会被使用。所以添加字符串的方法是使用 xgettext 或 Poedit 的源更新功能。

(顺便说一句,所有这些都在 gettext 手册中进行了解释——如果您是 gettext 的新手,我强烈建议您至少看一下它。它使事情变得容易得多。)

于 2015-11-25T09:50:34.417 回答