_ is a default function for gettext

This commit is contained in:
Alexander Yakovlev 2015-08-17 04:15:44 +07:00
parent 9a931009e4
commit da11fbe676

View file

@ -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