You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/gettext.lua

17 lines
303 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