2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
koreader/frontend/gettext.lua

12 lines
180 B
Lua
Raw Normal View History

2013-04-07 08:09:33 +00:00
lua_gettext.init("./i18n", "koreader")
function _(string)
return lua_gettext.translate(string)
end
function gettextChangeLang(new_lang)
lua_gettext.change_lang(new_lang)
end