From 3c1d0ef40a8b328684d04cec3dafc887fd0c3d51 Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Tue, 3 Dec 2024 00:18:00 +0500 Subject: [PATCH] translation correction --- technic_worldgen/crafts.lua | 5 +++-- technic_worldgen/locale/technic_worldgen.ru.tr | 2 +- technic_worldgen/locale/template.txt | 1 + technic_worldgen/rubber.lua | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/technic_worldgen/crafts.lua b/technic_worldgen/crafts.lua index 6dffd7c..9baf040 100644 --- a/technic_worldgen/crafts.lua +++ b/technic_worldgen/crafts.lua @@ -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) diff --git a/technic_worldgen/locale/technic_worldgen.ru.tr b/technic_worldgen/locale/technic_worldgen.ru.tr index cfe7d2c..7fe3d21 100644 --- a/technic_worldgen/locale/technic_worldgen.ru.tr +++ b/technic_worldgen/locale/technic_worldgen.ru.tr @@ -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=Цинковая руда diff --git a/technic_worldgen/locale/template.txt b/technic_worldgen/locale/template.txt index fe79e9e..d274381 100644 --- a/technic_worldgen/locale/template.txt +++ b/technic_worldgen/locale/template.txt @@ -13,6 +13,7 @@ Cast Iron Ingot= Carbon Steel Ingot= Stainless Steel Ingot= Iron= +Steel= Uranium Ore= Chromium Ore= Zinc Ore= diff --git a/technic_worldgen/rubber.lua b/technic_worldgen/rubber.lua index 11da9ca..58adae5 100644 --- a/technic_worldgen/rubber.lua +++ b/technic_worldgen/rubber.lua @@ -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"),