Commit Graph

22 Commits

Author SHA1 Message Date
Maksim 6ebdc5388d
Add `modname.lang.tr` locales support (#32) 2021-02-23 18:11:54 +01:00
AntumDeluge 7b818cb4af Add missing closing brace at end of log function 2017-07-10 19:06:37 -03:00
AntumDeluge d01a9c666f Print mod source that called deprecated `intllib.Getter`. 2017-07-08 10:25:51 -03:00
AntumDeluge 0c308d02ac Replace deprecated `setting_get` with `settings:get`. 2017-07-08 10:25:38 -03:00
Diego Martínez 49e965d28a Explicitly use english as last resort. 2017-05-15 10:05:24 -03:00
Diego Martínez 289776c6dc Take `LANGUAGE` env var as-is. 2017-05-15 09:37:20 -03:00
Diego Martínez 17eb88812a Export language detection function. 2017-05-13 16:46:32 -03:00
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