добавил перевод

This commit is contained in:
Vitaliy Olkhin 2024-12-02 22:59:14 +05:00
parent 91afbc2683
commit 967e9ccea4
6 changed files with 23 additions and 5 deletions

View File

@ -1,4 +1,4 @@
local S = minetest.get_translator("doctorzombie")
local climb_node = { "default:ladder_wood" ,"default:ladder_steel"} 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)

View File

@ -0,0 +1,2 @@
# textdomain: doctorzombie
Doctor Zombie=Доктор Зомби

View File

@ -0,0 +1,2 @@
# textdomain: doctorzombie
Doctor Zombie=

View File

@ -1,5 +1,7 @@
local S = minetest.get_translator("itemx")
minetest.register_craftitem("itemx:walkietalkie", { minetest.register_craftitem("itemx:walkietalkie", {
description = " Walkie Talkie", description = S("Walkie Talkie"),
inventory_image = "walkietalkie.png", inventory_image = "walkietalkie.png",
--droppable = false, --droppable = false,
on_use = function() -- msg (player) on_use = function() -- msg (player)
@ -18,7 +20,7 @@ minetest.register_craftitem("itemx:walkietalkie", {
---- MEDIC : ( Não tem craft ) ---- MEDIC : ( Não tem craft )
minetest.register_craftitem("itemx:bandaid", { 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", inventory_image = "band_aid.png",
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
local hp = user:get_hp() local hp = user:get_hp()
@ -32,7 +34,7 @@ minetest.register_craftitem("itemx:bandaid", {
minetest.register_craftitem("itemx:medicalkit", { 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", inventory_image = "medic_kit.png",
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
local hp = user:get_hp() local hp = user:get_hp()

6
itemx/locale/itemx.ru.tr Normal file
View File

@ -0,0 +1,6 @@
# textdomain: itemx
Walkie Talkie=Рация
Band aid=Лейкопластырь
+ 2 of blood=+ 2 крови
Medical Kit=Аптечка
+ 20 of blood=+ 20 крови

View File

@ -0,0 +1,6 @@
# textdomain: itemx
Walkie Talkie=
Band aid=
+ 2 of blood=
Medical Kit=
+ 20 of blood=