Commit Graph

12 Commits (8f3a5353e5cb05462ef8f539f9a7d188a4832675)

Author SHA1 Message Date
Frans de Jonge 7545d38198 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
7 years ago
Qingping Hou a1ec64b3ed chore: skip en_US in gettext.changeLang 7 years ago
Frans de Jonge 69b826781a gettext: unescape quotation mark
Fixes #2718.
7 years ago
Qingping Hou f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 7 years ago
Frans de Jonge ab442c2434 gettext: unescape \n
Fixes the problem that any msgid with \n in it wouldn't show up translated.
10 years ago
chrox 20bd14d588 automatically set language on Android 10 years ago
chrox 88061b323e strip encoding suffix in locale name like zh_CN.utf8
So that we can automatically change to language defined in
the LANGUAGE or LANG env variable.
10 years ago
Hans-Werner Hilse 6bbfae389a don't accept empty strings as valid translations 10 years ago
HW ed982d3c95 Added a pure Lua gettext implementation 10 years ago
chrox 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
Qingping Hou 31f3564158 add gettext lua module 11 years ago