0
votes

I created the following file : /Locale/fra/LC_MESSAGES/default.po

Content:

msgid "delete"
msgstr "effacer"

I set the the default language to fra in core.php

Configure::write('Config.language', 'fra');

when i use

<h3><?php echo __("delete"); ?></h3>

the output should be "effacer" which isn't the case

I tried importing i18n class and setting i10n manually but the issue persist

App::import('I18n', 'i18n');
$I18n =& I18n::getInstance();
$I18n->l10n->get($this->params['lang']);

When i check the persistent cache "myapp_cake_core_default_fra" i find an empty array

1
Did you edit your .po file manually? Or did you use a special PO Editor? Try poedit.netjoshua.paling

1 Answers

0
votes

Set this language code with language parameter Configure::write('Config.language','en_Us');