Hello:
I have installed blog module blog-v0.2.1, in my _config.php i put this:
i18n::enable();
i18n::set_default_lang('es');
i18n::set_locale('es_ES');
In the top of the file of translation, es_ES.php,
there are this sentence:
i18n::include_locale_file('modules: blog', 'en_US')
This code generate this error:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/www/virtual/alhaurinjoven.com/htdocs/prueba/SilverStripe-v2.3.2/blog-v0.2.1/lang/es_ES.php on line 19
if i change the las last code, and i put this:
i18n::include_locale_file('blog-v0.2.1', 'en_US');
The cms don´t have any error, but not translate in spanish.
The variable $lang contains the array es_Es, because if i do print_r(es_Es);
example: [es_ES] => Array ( [ArchiveWidget] => Array ( [DispBY] => .........
I put in /mysite/_config.php,
i18n::enable();
i18n::set_locale('es_ES');
i18n::set_default_lang('es');
cms/_config.php,
i18n::enable();
i18n::set_locale('es_ES');
sapphire/_config.php
i18n::set_locale('es_ES');
And the blog module doesn`t traslate in spanish, i need help to do this.
Tank you.
Sorry for my english.
bye