1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2025-06-28 06:20:33 +02:00

added complete intllib support (i18n)

added french translation
This commit is contained in:
fat115
2017-08-06 18:43:41 +02:00
committed by stujones11
parent 925b39f577
commit ae448c150c
14 changed files with 908 additions and 104 deletions

View File

@ -1,13 +1,6 @@
local S = function(s) return s end
if minetest.global_exists("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
S = intllib.make_gettext_pair()
else
-- Old method using text files.
S = intllib.Getter()
end
end
-- support for i18n
local S = armor_i18n.gettext
local use_moreores = minetest.get_modpath("moreores")
local function play_sound_effect(player, name)
if player then