"Bugfix for tracker priorities 2-4 displayed wrong:

use += instead of array_merge, as we have phrases with numerical index, which get renumbered by array_merge
"
This commit is contained in:
Ralf Becker 2009-06-22 12:46:41 +00:00
parent 6587813d2d
commit 50cac4e9b6

View File

@ -253,7 +253,7 @@ class translation
$loaded =& egw_cache::getCache(in_array($app,self::$instance_specific_translations) ? egw_cache::INSTANCE : egw_cache::TREE,
__CLASS__,$app.':'.$lang,array(__CLASS__,'load_app'),array($app,$lang));
self::$lang_arr = self::$lang_arr ? array_merge(self::$lang_arr,$loaded) : $loaded;
self::$lang_arr += $loaded; // use += instead of array_merge, as we have phrases with numerical index, which get renumbered by array_merge
self::$loaded_apps[$app] = $lang;
//error_log(__METHOD__."($app,$lang) took ".(1000*(microtime(true)-$start))." ms, loaded ".count($loaded)." phrases -> total=".count(self::$lang_arr).": ".function_backtrace());
}