diff --git a/doctorzombie/init.lua b/doctorzombie/init.lua index baea4b9..146e444 100644 --- a/doctorzombie/init.lua +++ b/doctorzombie/init.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("doctorzombie") local climb_node = { "default:ladder_wood" ,"default:ladder_steel"} @@ -193,5 +193,5 @@ mobs:spawn({ }) -mobs:register_egg("doctorzombie:doctorzombie", "Doctor Zombie", "zombies_egg.png", 0) +mobs:register_egg("doctorzombie:doctorzombie", S("Doctor Zombie"), "zombies_egg.png", 0) diff --git a/doctorzombie/locale/doctorzombie.ru.tr b/doctorzombie/locale/doctorzombie.ru.tr new file mode 100644 index 0000000..a899810 --- /dev/null +++ b/doctorzombie/locale/doctorzombie.ru.tr @@ -0,0 +1,2 @@ +# textdomain: doctorzombie +Doctor Zombie=Доктор Зомби diff --git a/doctorzombie/locale/template.txt b/doctorzombie/locale/template.txt new file mode 100644 index 0000000..1a7a35b --- /dev/null +++ b/doctorzombie/locale/template.txt @@ -0,0 +1,2 @@ +# textdomain: doctorzombie +Doctor Zombie= diff --git a/itemx/init.lua b/itemx/init.lua index fd500b2..223c2c3 100644 --- a/itemx/init.lua +++ b/itemx/init.lua @@ -1,5 +1,7 @@ +local S = minetest.get_translator("itemx") + minetest.register_craftitem("itemx:walkietalkie", { - description = " Walkie Talkie", + description = S("Walkie Talkie"), inventory_image = "walkietalkie.png", --droppable = false, on_use = function() -- msg (player) @@ -18,7 +20,7 @@ minetest.register_craftitem("itemx:walkietalkie", { ---- MEDIC : ( Não tem craft ) minetest.register_craftitem("itemx:bandaid", { - description = "Band aid\n".. core.colorize("#ff0000", "+ 2 of blood"), + description = S("Band aid") .. "\n".. core.colorize("#ff0000", S("+ 2 of blood")), inventory_image = "band_aid.png", on_use = function(itemstack, user, pointed_thing) local hp = user:get_hp() @@ -32,7 +34,7 @@ minetest.register_craftitem("itemx:bandaid", { minetest.register_craftitem("itemx:medicalkit", { - description = "Medical Kit\n".. core.colorize("#ff0000", "+ 20 of blood"), + description = S("Medical Kit") .. "\n".. core.colorize("#ff0000", S("+ 20 of blood")), inventory_image = "medic_kit.png", on_use = function(itemstack, user, pointed_thing) local hp = user:get_hp() diff --git a/itemx/locale/itemx.ru.tr b/itemx/locale/itemx.ru.tr new file mode 100644 index 0000000..d6a1e82 --- /dev/null +++ b/itemx/locale/itemx.ru.tr @@ -0,0 +1,6 @@ +# textdomain: itemx +Walkie Talkie=Рация +Band aid=Лейкопластырь ++ 2 of blood=+ 2 крови +Medical Kit=Аптечка ++ 20 of blood=+ 20 крови diff --git a/itemx/locale/template.txt b/itemx/locale/template.txt new file mode 100644 index 0000000..a990a3b --- /dev/null +++ b/itemx/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain: itemx +Walkie Talkie= +Band aid= ++ 2 of blood= +Medical Kit= ++ 20 of blood=