2
0
mirror of https://github.com/koreader/koreader synced 2024-11-11 19:11:14 +00:00
koreader/frontend/gettext.lua
2013-04-07 16:09:33 +08:00

12 lines
180 B
Lua

lua_gettext.init("./i18n", "koreader")
function _(string)
return lua_gettext.translate(string)
end
function gettextChangeLang(new_lang)
lua_gettext.change_lang(new_lang)
end