2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/frontend/gettext.lua
2013-10-18 22:38:07 +02:00

17 lines
297 B
Lua

lua_gettext.init("./i18n", "koreader")
local GetText = {}
local GetText_mt = {}
function GetText_mt.__call(gettext, string)
return lua_gettext.translate(string)
end
function GetText.changeLang(new_lang)
lua_gettext.change_lang(new_lang)
end
setmetatable(GetText, GetText_mt)
return GetText