mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-07-16 23:20:22 +02:00
added complete intllib support (i18n)
added french translation
This commit is contained in:
@ -1,13 +1,5 @@
|
||||
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
|
||||
|
||||
armor:register_armor("3d_armor:helmet_admin", {
|
||||
description = S("Admin Helmet"),
|
||||
|
Reference in New Issue
Block a user