Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何配置 PoEdit 以识别 PHP dgettext 函数?
请注意,我知道 Configure->Keywords 部分,但我想如何表明翻译在函数的第二个参数中?
任何人都使用 dgettext 进行 poEdit 工作?
使用 :2 xgettext 选项,因此必须在 PoEdit 中添加的关键字是:dgettext:2
:2 指定读取第二个参数。如果我需要阅读第二和第三,它将是::2,3
请注意,我有另一个错误,默认情况下,xgettext(和 poEdit)支持 dgettext,因为它是标准的 C/C++ gettext 函数。
希望这会有所帮助