.po文件用于默认cakephp libs翻译 [英] .po file for default cakephp libs translations
问题描述
如何将cakephp libs文件的翻译添加到default.po文件中
例如
- 月名
- 日的名称
- timeAgoInWords
How to add the translations for cakephp libs files to by default.po file
for example
- months name
- day's name
- timeAgoInWords
我尝试手动添加字符串到default.po
,但每次我从default.pot更新它(使用poedit )
字符串已删除。
i try to add strings to default.po manually
but everytime i update it from default.pot (using poedit)
the strings are gone.
请帮我解决
使用单独的.po文件
please help me to solve it
it will fine to find solution by using separate .po file
推荐答案
我解决了这个问题
- create /app/views/dummy.ctp
- 通过处理从cake\libs\view\helpers\time.ctp到dummy.ctp的翻译复制
- 并且蛋糕i18n将添加翻译到default.pot
i solve it
- create /app/views/dummy.ctp
- duplicate by coping the translation from cake\libs\view\helpers\time.ctp to dummy.ctp
- and cake i18n will add translations to default.pot
这篇关于.po文件用于默认cakephp libs翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!