_ is a default function for gettext
This commit is contained in:
parent
9a931009e4
commit
da11fbe676
|
@ -71,12 +71,12 @@ if not LANG then
|
||||||
end
|
end
|
||||||
|
|
||||||
if LANG == translate.source then
|
if LANG == translate.source then
|
||||||
__ = function(text)
|
_ = function(text)
|
||||||
return text;
|
return text;
|
||||||
end;
|
end;
|
||||||
else
|
else
|
||||||
translate.strings = load_mo_file(LANG..'.mo');
|
translate.strings = load_mo_file(LANG..'.mo');
|
||||||
__ = function(text)
|
_ = function(text)
|
||||||
return translate.strings[text];
|
return translate.strings[text];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue