mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Give a warning & return if you try to translate an object
This commit is contained in:
parent
e330a7bfdc
commit
3aa8e64f73
@ -48,6 +48,11 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
|
|||||||
*/
|
*/
|
||||||
lang: function(_msg, _arg1)
|
lang: function(_msg, _arg1)
|
||||||
{
|
{
|
||||||
|
if(typeof _msg !== "string")
|
||||||
|
{
|
||||||
|
egw().debug("warn", "Cannot translate an object", _msg);
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
var translation = _msg;
|
var translation = _msg;
|
||||||
_msg = _msg.toLowerCase();
|
_msg = _msg.toLowerCase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user