我更改了文件 wp-content/languages/pl_PL.po

#: bfa_header.php
msgid "notice"
msgstr "napis"

msgid "Online Information Website"
msgstr "Internetowy Portal Informacyjny"

msgid "something"
msgstr "coś"

我添加了第二对。它适用于另一种语言,但对此不起作用。所有其他消息都在起作用。有什么问题?

有帮助吗?

解决方案

看起来您可能无法仅在.po文件中添加一对,而无需先将其添加到WordPress.pot文件: http://codex.wordpress.org/translating_wordpress#gettext_files. 。您还需要将.po文件编译到.mo(Machine对象)文件中,以使您的更改生效。

我不确定这会起作用,但这应该是一个好的开始。

许可以下: CC-BY-SA归因
scroll top