1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2024-11-16 15:30:28 +01:00
Miroir du dépôt intllib.
Go to file
Muhammad Nur Hidayat Yasuyoshi 0a5a91ca6f Fixed few words & link
2017-08-16 22:45:09 +08:00
doc Clarify dev docs and remove refs to old method. 2017-02-27 21:41:25 -03:00
intltest Update test translations with latest script. 2017-02-25 20:41:51 -03:00
lib Add support for gettext message catalogs. 2017-01-24 00:24:57 -03:00
tools Fixes to translation update script. 2017-02-25 20:38:17 -03:00
.gitignore Add .gitignore. 2017-01-24 01:10:53 -03:00
.luacheckrc Add .luacheckrc. 2017-02-11 03:42:29 -03:00
description.txt Add mod metadata files. 2016-11-03 21:47:33 -03:00
gettext.lua Export language detection function. 2017-05-13 16:46:32 -03:00
init.lua Add missing closing brace at end of log function 2017-07-10 19:06:37 -03:00
intllib.lua Use optional dependencies to only load once and re-add support for escapes 2013-10-29 11:19:35 -04:00
lib.lua Fix warnings issued by luacheck. 2017-02-11 03:42:36 -03:00
LICENSE.md Add support for gettext message catalogs. 2017-01-24 00:24:57 -03:00
mod.conf Add mod metadata files. 2016-11-03 21:47:33 -03:00
README-es.md Add support for gettext message catalogs. 2017-01-24 00:24:57 -03:00
README-ms.md Fixed few words & link 2017-08-16 22:45:09 +08:00
README-pt_BR.md Update README-pt_BR.md 2017-01-26 00:38:00 -03:00
README.md Add support for gettext message catalogs. 2017-01-24 00:24:57 -03:00

Internationalization Lib for Minetest

By Diego Martínez (kaeza). Released under Unlicense. See LICENSE.md for details.

This mod is an attempt at providing internationalization support for mods (something Minetest currently lacks).

Should you have any comments/suggestions, please post them in the forum topic. For bug reports, use the bug tracker on Github.

How to use

If you are a regular player looking for translated texts, just install this mod like any other one, then enable it in the GUI.

The mod tries to detect your language, but since there's currently no portable way to do this, it tries several alternatives:

  • language setting in minetest.conf.
  • LANGUAGE environment variable.
  • LANG environment variable.
  • If all else fails, uses en.

In any case, the end result should be the ISO 639-1 Language Code of the desired language.

Mod developers

If you are a mod developer looking to add internationalization support to your mod, see doc/developer.md.

Translators

If you are a translator, see doc/translator.md.