是否可以使两个或更多的msgids匹配一个msgstr?
例如,两者('list.empty')和('list.null')返回"There is no any objects yet."
如果我在po文件中这样写:
msgid "list.empty"
msgid "list.null"
msgstr "There is no any objects yet."
Run Code Online (Sandbox Code Playgroud)
它只是错误的"丢失'msgstr'":
然而,
msgid "list.empty"
msgstr "There is no any objects yet."
msgid "list.null"
msgstr "There is no any objects yet."
Run Code Online (Sandbox Code Playgroud)
看起来和工作正常但很愚蠢,因为一旦我改变一个没有另一个msgstr,他们会返回不同的结果.
有没有人有更好的黑客?
gettext ×1