Make sure lang 'array' is not a real array - that means it's empty, and will return 0 for missing translations. It is supposed to be an object.

This commit is contained in:
Nathan Gray 2012-06-12 18:47:42 +00:00
parent ad83103362
commit 234832d1f0

View File

@ -36,8 +36,11 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
* @param object _message message => translation pairs
*/
set_lang_arr: function(_app, _messages)
{
if(!jQuery.isArray(_messages))
{
lang_arr[_app] = _messages;
}
},
/**