translation correction
Some checks failed
Check & Release / lint (push) Has been cancelled

This commit is contained in:
Vitaliy Olkhin 2024-12-03 00:18:00 +05:00
parent 50034e37af
commit 3c1d0ef40a
4 changed files with 6 additions and 4 deletions

View File

@ -185,9 +185,10 @@ for _, i in ipairs({
end
local iron = S("Iron")
local steel = S("Steel")
for_each_registered_item(function(item_name)
local item_def = minetest.registered_items[item_name]
if steel_to_iron[item_name] and string.find(item_def.description, "Steel") then
minetest.override_item(item_name, { description = string.gsub(item_def.description, "Steel", iron) })
if steel_to_iron[item_name] and string.find(item_def.description, steel) then
minetest.override_item(item_name, { description = string.gsub(item_def.description, steel, iron) })
end
end)

View File

@ -1,5 +1,4 @@
# textdomain: technic_worldgen
Uranium Lump=Кусок урана
Uranium Ingot=Урановый слиток
Chromium Lump=Кусок хрома
@ -14,6 +13,7 @@ Cast Iron Ingot=Чугунный слиток
Carbon Steel Ingot=Слиток углеродистой стали
Stainless Steel Ingot=Слиток нержавеющей стали
Iron=Железо
Steel=Сталь
Uranium Ore=Урановая руда
Chromium Ore=Хромовая руда
Zinc Ore=Цинковая руда

View File

@ -13,6 +13,7 @@ Cast Iron Ingot=
Carbon Steel Ingot=
Stainless Steel Ingot=
Iron=
Steel=
Uranium Ore=
Chromium Ore=
Zinc Ore=

View File

@ -1,6 +1,6 @@
-- Code of rubber tree by PilzAdam
local S = technic.worldgen.gettext
local S = minetest.get_translator("technic_worldgen")
minetest.register_node(":moretrees:rubber_tree_sapling", {
description = S("Rubber Tree Sapling"),