game-antum/mods/intllib
Jordan Irwin 9c20b7dfac Update intllib to Git commit 6ebdc53...
https://github.com/minetest-mods/intllib/tree/6ebdc53
2021-04-12 19:18:52 -07:00
..
doc Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
intltest Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
lib Add 'intllib' mod: 2017-06-21 01:01:40 -07:00
tools Update intllib mod to v20180811 2021-04-11 18:29:56 -07:00
.luacheckrc Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
LICENSE.md Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
README-es.md Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
README-it.md Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
README-ms.md Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
README-pt_BR.md Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
README.md Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
description.txt Add 'intllib' mod: 2017-06-21 01:01:40 -07:00
gettext.lua Add 'intllib' mod: 2017-06-21 01:01:40 -07:00
init.lua Update intllib to Git commit 6ebdc53... 2021-04-12 19:18:52 -07:00
intllib.lua Add 'intllib' mod: 2017-06-21 01:01:40 -07:00
lib.lua Add 'intllib' mod: 2017-06-21 01:01:40 -07:00
mod.conf Add 'intllib' mod: 2017-06-21 01:01:40 -07:00

README.md

Internationalization Lib for Minetest

DEPRECATED - Use Minetest's new translation API instead!

You should not use this mod when writing new mods, and you should update mods to no longer depend on this mod.

Minetest 5.0 has builtin support for client-side translation, accessed by minetest.get_translator()

Aboud

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.