1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2024-11-16 15:30:28 +01:00
Commit Graph

55 Commits

Author SHA1 Message Date
BrunoMine
bca5a72f78 Fix "SNS" world to "NS" 2017-08-02 17:49:37 -03:00
BrunoMine
43ca3f2c90 Update intltest mod for use SS and SNS methods 2017-07-16 12:59:05 -03:00
BrunoMine
4e848b03a9 Update docs for use SS and SNS methods 2017-07-16 12:58:35 -03:00
BrunoMine
ee8ea4b5ff Fix and Add support for SS and SNS xgettext tools 2017-07-16 12:57:21 -03:00
BrunoMine
8f92aed533 Update lib script for sgettext and sngettext 2017-07-16 12:42:10 -03:00
BrunoMine
a5cc2639f2 Add variant methods for gettext and ngettext for selected language 2017-07-16 12:40:15 -03:00
BrunoMine
da26ea7cf8 Add priority language for load_catalogs method 2017-07-16 12:37:31 -03: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
7889a4dcd7 Clarify dev docs and remove refs to old method. 2017-02-27 21:41:25 -03:00
Diego Martínez
7ff6c86087 Update test translations with latest script. 2017-02-25 20:41:51 -03:00
Diego Martínez
5f00db5d95 Fixes to translation update script. 2017-02-25 20:38:17 -03:00
Diego Martínez
122d1a83cc Fix warnings issued by luacheck. 2017-02-11 03:42:36 -03:00
Diego Martínez
c667cd0de6 Add .luacheckrc. 2017-02-11 03:42:29 -03:00
Diego Martínez
1645070cea Use germanic language rules by default.
Use germanic language rules for plurals if no
`Plural-Forms` header is present.
2017-01-27 10:19:55 -03:00
Diego Martínez
8eae4eec38 Logging fixes.
* Remove use of `rawget`.
* Fix code trying to concat a nil value in some cases.
* Prefix warnings with mod name.
2017-01-27 10:18:28 -03:00
Diego Martínez
b98f01b2da Add localefile.md. 2017-01-26 00:50:29 -03:00
BrunoMine
ffc6159368 Update README-pt_BR.md 2017-01-26 00:38:00 -03:00
Diego Martínez
e0c727f7a1 Remove references to .mo catalogs from docs. 2017-01-25 01:30:43 -03:00
Diego Martínez
e72ab692e0 Output character itself if unknown escape. 2017-01-24 23:22:16 -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
50c42165ea Add .gitignore. 2017-01-24 01:10:53 -03:00
Diego Martínez
172a4e127c Add minimal example mod. 2017-01-24 00:48:19 -03:00
Diego Martínez
b2551f6a22 Add support for gettext message catalogs. 2017-01-24 00:24:57 -03:00
Diego Martínez
4e067ec219 Add mod metadata files.
- `description.txt`
- `mod.conf`
2016-11-03 21:47:33 -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
Diego Martínez
e058fc93a8 Add some missing escape sequences.
Fixes #7.
2016-10-06 04:22:00 -03:00
BrunoMine
c1ddaf66da translation updated (#8)
* translation updated

* translation updated
2016-08-29 15:19:04 -07:00
Diego Martínez
8b3a97a81a Create README-es_UY.md 2016-06-13 07:22:06 -03:00
BrunoMine
f80ae5684f Translated into Portuguese from Brazil 2016-05-09 07:24:27 -07:00
Diego Martinez
dda75d975d Reorganize README 2016-05-08 16:48:32 -03:00
Ryan
0c7b30464c Updated readme, in an attempt to make it more readable 2016-05-03 23:11:01 -07: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
c4335aa3dc Use get_modpath() to check for mod existence 2014-12-12 16:36:57 -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
ShadowNinja
377dc784cd Remove '=' from escape table (Unfound escapes work) 2013-10-29 19:06:49 -04:00
kaeza
abb257aae3 Some refactoring. 2013-10-29 17:37:36 -02:00
kaeza
2866bb4ec6 Whoops! 2013-10-29 17:25:46 -02:00
kaeza
17314b5389 Rewrite `findtext.lua'. 2013-10-29 15:54:14 -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