fix: really skip en_US:us in gettext.changeLang

`new_lang` isn't `en_US` but `en_US:en`

Also see https://github.com/koreader/koreader/issues/3069#issuecomment-321769322
This commit is contained in:
Frans de Jonge
2017-08-11 14:56:23 +02:00
committed by GitHub
parent 06d7eea507
commit 7545d38198

View File

@@ -36,7 +36,7 @@ end
-- we only implement a sane subset for now
function GetText_mt.__index.changeLang(new_lang)
if new_lang == "en_US" then return end
if new_lang == "en_US:en" then return end
GetText.translation = {}
GetText.current_lang = "C"