1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2024-11-10 12:20:40 +01:00
Commit Graph

15 Commits

Author SHA1 Message Date
Diego Martínez
122d1a83cc Fix warnings issued by luacheck. 2017-02-11 03:42:36 -03:00
Diego Martínez
a3f9090ee8 Return nil if msgstr is empty.
Also remove debugging statements left from previous commit.
2017-01-24 20:10:37 -03:00
Diego Martínez
b2551f6a22 Add support for gettext message catalogs. 2017-01-24 00:24:57 -03:00
Diego Martínez
715ac33715 Add support for language variants/dialects.
Assuming the detected language is `ll_CC`, the
mod tries the following files:

- `locale/ll_CC.txt`
- `locale/ll.txt`
- `locale/en.txt` (assuming it has not been
  processed already).
2016-10-06 20:39:41 -03:00
ShadowNinja
475711f7f7 Switch to slightly cleaner compatibility method 2015-02-16 23:57:22 -05:00
ShadowNinja
2ef1abad55 Silence global warning 2015-02-16 23:24:10 -05:00
ShadowNinja
4a0c8e1580 Fix incorrect variable name 2015-02-16 23:22:21 -05:00
ShadowNinja
c497c7b10c Fix insertions with missing translations 2015-02-03 17:21:35 -05:00
ShadowNinja
4404c4071c Add numbered insertions 2015-02-01 18:10:09 -05:00
ShadowNinja
3a3da7359c Add get_strings() 2014-02-12 17:27:09 -05:00
ShadowNinja
4be14170e7 Localize load_strings 2013-12-17 20:29:01 -05:00
ShadowNinja
934ca0492c Don't return empty translations 2013-11-27 12:38:59 -05:00
kaeza
abb257aae3 Some refactoring. 2013-10-29 17:37:36 -02:00
ShadowNinja
af31d71d1a Use optional dependencies to only load once and re-add support for escapes 2013-10-29 11:19:35 -04:00
Diego Martínez
11b9e0596c first commit 2013-02-27 04:27:51 -02:00