.po文件用于默认cakephp libs翻译 [英] .po file for default cakephp libs translations

查看:181
本文介绍了.po文件用于默认cakephp libs翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆