forked from mtcontrib/3d_armor
added complete intllib support (i18n)
added french translation
This commit is contained in:
@ -1,17 +1,10 @@
|
||||
-- support for i18n
|
||||
local S = armor_i18n.gettext
|
||||
|
||||
if not minetest.get_modpath("technic") then
|
||||
minetest.log("warning", "hazmat_suit: Mod loaded but unused.")
|
||||
minetest.log("warning", S("hazmat_suit: Mod loaded but unused."))
|
||||
return
|
||||
end
|
||||
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
|
||||
|
||||
minetest.register_craftitem("hazmat_suit:helmet_hazmat", {
|
||||
description = S("Hazmat Helmet"),
|
||||
|
Reference in New Issue
Block a user