2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
anarcat
78fbc145e4 turn missing translations into a warning (#3752)
This is not fatal and can be mistaken by new users for the cause of all their problems, like I did in #2621.
2018-03-14 15:15:14 +01:00
Frans de Jonge
a394e644b5 Add gettext_spec stub (#3343) 2017-10-11 14:22:11 +02:00
Frans de Jonge
9ece6408f3 [fix] gettext: die already you stupid language not found error (#3341) 2017-10-11 13:57:23 +02:00
Huang Xin
a4e1a3ba5e reflect changes in koreader/android-luajit-launcher#62 (#3254) 2017-09-24 05:58:34 +08:00
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
2017-08-11 14:56:23 +02:00
Qingping Hou
a1ec64b3ed chore: skip en_US in gettext.changeLang 2017-04-16 22:41:36 +02:00
Frans de Jonge
69b826781a gettext: unescape quotation mark
Fixes #2718.
2017-04-04 07:59:45 -07:00
Qingping Hou
f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 2017-01-02 19:52:09 -08:00
Frans de Jonge
ab442c2434 gettext: unescape \n
Fixes the problem that any msgid with \n in it wouldn't show up translated.
2014-11-19 21:46:45 +01:00
chrox
20bd14d588 automatically set language on Android 2014-06-08 21:32:45 +08:00
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.
2014-06-08 20:48:37 +08:00
Hans-Werner Hilse
6bbfae389a don't accept empty strings as valid translations 2014-05-23 11:57:33 +02:00
HW
ed982d3c95 Added a pure Lua gettext implementation 2014-05-22 22:47:14 +02:00
chrox
92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
Qingping Hou
31f3564158 add gettext lua module 2013-04-07 16:09:33 +08:00