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
pull/3079/head
Frans de Jonge 7 years ago committed by GitHub
parent 06d7eea507
commit 7545d38198

@ -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"

Loading…
Cancel
Save