/**
* Load translations into given array
*
* @param string $locale
* @return null
*/
function loadTranslations($locale) {
$files = $this->getTranslationFiles();
if(is_foreachable($files)) {
foreach ($files as $file) {
$GLOBALS['current_locale_translations'][$locale] = array_merge($GLOBALS['current_locale_translations'][$locale], (array) Languages::getTranslation($this, $file));
} // foreach
} // if
} // loadTranslations
I understand the translation system is different with a XML file instead of the previous localization folder with module.xxx.php files.
But given the amount of work done, how do I import the existing translation into the new system ?
Also, I don't remember which folder I have to make writeable to create a translation file, I have a "Cannot create translation file" error when I try to generate a language file from the dictionnary.
Thanks !
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)