You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function add_translation($country_code, $language_array) does not load the language file's path for a language and so -> function register_translations($path, $load_all = false) executes (occasionally?) it will override any language file that has the *same language code - namely 'en; will be overridden the core language file - therefore the original intended override is lost, suggest => primes the array $load_language_files[[ with any 'en' language files that are/were brought in by plugins language files.
A possible (untested) fix would be to use array_reverse twice with array_unique in elgg_register_translations, so as to keep the last occurrence, instead of the first one.
Original ticket http://trac.elgg.org/ticket/4840 on 42663771-02-11 by beck24, assigned to unknown.
Elgg version: 1.8
http://community.elgg.org/discussion/view/1081969/language-strings-and-caching-problem
During boot, if languages have been cached the plugin language files aren't registered in $CONFIG
Then if get_installed_translations() is called it reloads the core language file and resets any strings that are elgg_echo'd afterwards.
The text was updated successfully, but these errors were encountered: