In my CakePHP application, using cake.bat, I created POT files and using PoEdit I created PO files. Thus, by writing __ ('myword') , I can see the localized word in my application successfully.
But now I need to localize "timeAgoInWords". When I run cake i18n extract , the script did not receive the word _dn () in CakeTime
http://api20.cakephp.org/view_source/cake-time#line-522
So, I created the dummy.ctp file and copied the contents from the cake-time file to a dummy file. I run the cake script and POEdit again. And he created instances like below in the file app / Locale / tur / LC_MESSAGES / default.po
msgid "%d minute"
msgid_plural "%d minutes"
msgstr[0] "%d dakika"
msgstr[1] "%d dakika"
In core.php, I already set the default language to Turkish:
Configure::write('Config.language', 'tur');
But when I test my application, the results of timeAgoInWords come in English.
How can i fix this
source
share