minetest_game/mods/game_intllib
Zweihorn f2885bb57d include minetest.get_translator / correct deviations 2019-05-13 20:33:33 +02:00
..
doc Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
intltest include minetest.get_translator / correct deviations 2019-05-13 20:33:33 +02:00
lib include minetest.get_translator / correct deviations 2019-05-13 20:33:33 +02:00
locale Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
tools Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
LICENSE.md Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
README.md Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
description.txt Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
gettext.lua Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
init.lua Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
lib.lua Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00
license.txt Introducing 'game_intllib' and S() for gettext 2019-05-13 00:53:58 +02:00

README.md

Internationalization Lib for default game mods of the Minetest game

This is 'game_intllib' by [snoopy (Zweihorn)] 2019-05-07 [Fork from 'intllib' by Diego Martínez (kaeza).] Released under (LGPLv2.1+). See LICENSE.md or license.txt for details.

'game_intllib' is an attempt at providing internationalization support for the default game mods only.

This 'game_intllib' internal mod is specifially aimed at default mods internal to the game in the 'minetest_game' folder.

The original 'intllib' mod is an attempt at providing internationalization support for external 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 'intllib' (the original mod)

If you are a regular player looking for translated texts of mods, just install the original 'intllib' mod like any other one, then enable it in the GUI of the MT client.

How to use 'game_intllib' (this mod specifically)

The use of this mod is at the deliberations of the Minetest game devs.

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, please use the original 'intllib' mod and see doc/developer.md.

Translators

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