2013-02-27 07:27:51 +01:00
|
|
|
|
2016-05-08 21:48:32 +02:00
|
|
|
# Internationalization Lib for Minetest
|
|
|
|
|
|
|
|
By Diego Martínez (kaeza).
|
2017-01-21 05:04:03 +01:00
|
|
|
Released under Unlicense. See `LICENSE.md` for details.
|
2013-02-27 07:27:51 +01:00
|
|
|
|
|
|
|
This mod is an attempt at providing internationalization support for mods
|
|
|
|
(something Minetest currently lacks).
|
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
Should you have any comments/suggestions, please post them in the
|
|
|
|
[forum topic][topic]. For bug reports, use the [bug tracker][bugtracker]
|
|
|
|
on Github.
|
2013-02-27 07:27:51 +01:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
## How to use
|
2016-05-08 21:48:32 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
If you are a regular player looking for translated texts, just
|
|
|
|
[install][installing_mods] this mod like any other one, then enable it
|
|
|
|
in the GUI.
|
2016-05-08 21:48:32 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
The mod tries to detect your language, but since there's currently no
|
|
|
|
portable way to do this, it tries several alternatives:
|
2016-05-08 21:48:32 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
* `language` setting in `minetest.conf`.
|
|
|
|
* `LANGUAGE` environment variable.
|
|
|
|
* `LANG` environment variable.
|
|
|
|
* If all else fails, uses `en`.
|
2016-05-08 21:48:32 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
In any case, the end result should be the [ISO 639-1 Language Code][ISO639-1]
|
|
|
|
of the desired language.
|
2016-05-08 21:48:32 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
### Mod developers
|
2013-02-27 07:27:51 +01:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
If you are a mod developer looking to add internationalization support to
|
|
|
|
your mod, see `doc/developer.md`.
|
2013-02-27 07:27:51 +01:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
### Translators
|
2016-05-04 08:11:01 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
If you are a translator, see `doc/translator.md`.
|
2016-05-04 08:11:01 +02:00
|
|
|
|
2017-01-21 05:04:03 +01:00
|
|
|
[topic]: https://forum.minetest.net/viewtopic.php?id=4929
|
|
|
|
[bugtracker]: https://github.com/minetest-mods/intllib/issues
|
|
|
|
[installing_mods]: https://wiki.minetest.net/Installing_mods
|
|
|
|
[ISO639-1]: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|