Miroir du dépôt intllib.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rubenwardy 016f8af977
Change deprecation title to be clearer
2 months ago
doc Add italian documentation. 2 years ago
intltest Update test translations with latest script. 3 years ago
lib Add support for gettext message catalogs. 3 years ago
tools Fixes to translation update script. 3 years ago
.gitignore Add `.gitignore`. 3 years ago
.luacheckrc Add `.luacheckrc`. 3 years ago
LICENSE.md Add support for gettext message catalogs. 3 years ago
README-es.md Add support for gettext message catalogs. 3 years ago
README-it.md Add italian documentation. 2 years ago
README-ms.md Translated README to Malay. 2 years ago
README-pt_BR.md Update README-pt_BR.md 3 years ago
README.md Change deprecation title to be clearer 2 months ago
description.txt Add mod metadata files. 3 years ago
gettext.lua Export language detection function. 3 years ago
init.lua Add missing closing brace at end of log function 2 years ago
intllib.lua Use optional dependencies to only load once and re-add support for escapes 6 years ago
lib.lua Fix warnings issued by `luacheck`. 3 years ago
mod.conf Add mod metadata files. 3 years ago

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.