Search code examples
cakephpinternationalizationtranslationpoeditpo

.po file for default cakephp libs translations


How to add the translations for cakephp libs files to by default.po file
for example
- months name
- day's name
- timeAgoInWords

i try to add strings to default.po manually
but everytime i update it from default.pot (using poedit)
the strings are gone.

please help me to solve it
it will fine to find solution by using separate .po file


Solution

  • 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