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 解析应用程序。我的大部分翻译都使用 translate() 方法,但在某些视图文件 (.phtml) 中,我使用特殊关键字,例如 My string
你知道我可以指定 poedit 吗?
谢谢
编辑:
我知道如何添加关键字,如 translate、setLabel 等……但它们都是方法。我需要添加类似 %s 的内容,poedit 会知道要翻译的字符串是 %s ,它包裹在标签元素周围
打开 *.po 文件后,进入目录 > 设置 > 关键字以添加您的关键字。
替代文字 http://img828.imageshack.us/img828/1479/65430288.png