From 8b908e7afc47fab7b99ecebabd270b5074c208e3 Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Sat, 30 Nov 2024 17:23:49 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=8B=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=D1=8B,=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D1=80=D1=83?= =?UTF-8?q?=D1=81=D1=81=D0=BA=D0=B8=D0=B9=20=D1=8F=D0=B7=D1=8B=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- concrete/init.lua | 5 ++--- concrete/locale/concrete.ru.tr | 5 +++++ concrete/locale/template.txt | 15 +++++++++------ 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 concrete/locale/concrete.ru.tr diff --git a/concrete/init.lua b/concrete/init.lua index 82b4098..f33e2bd 100644 --- a/concrete/init.lua +++ b/concrete/init.lua @@ -4,8 +4,7 @@ local technic = rawget(_G, "technic") or {} technic.concrete_posts = {} --- Boilerplate to support localized strings if intllib mod is installed. -local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end +local S = minetest.get_translator("concrete") for i = 0, 31 do minetest.register_alias("technic:concrete_post"..i, @@ -56,7 +55,7 @@ minetest.register_node(":technic:blast_resistant_concrete", { if minetest.get_modpath("moreblocks") then stairsplus:register_all("technic","blast_resistant_concrete","technic:blast_resistant_concrete",{ - description = "Blast-resistant Concrete", + description = S("Blast-resistant Concrete"), tiles = {"technic_blast_resistant_concrete_block.png",}, groups = {cracky=1, level=3, concrete=1}, sounds = default.node_sound_stone_defaults(), diff --git a/concrete/locale/concrete.ru.tr b/concrete/locale/concrete.ru.tr new file mode 100644 index 0000000..07f2eed --- /dev/null +++ b/concrete/locale/concrete.ru.tr @@ -0,0 +1,5 @@ +# textdomain: concrete +Blast-resistant Concrete Block=Взрывостойкий бетонный блок +Blast-resistant Concrete=Взрывостойкий бетон +Concrete Post Platform=Бетонная платформа для столбов +Concrete Post=Бетонный столб diff --git a/concrete/locale/template.txt b/concrete/locale/template.txt index 451adaf..150d0f4 100644 --- a/concrete/locale/template.txt +++ b/concrete/locale/template.txt @@ -1,8 +1,11 @@ +# textdomain: concrete +Blast-resistant Concrete Block= +Blast-resistant Concrete= +Concrete Post Platform= +Concrete Post= + + +##### not used anymore ##### + # technic_concrete translation template - Rebar = -Concrete Block = -Blast-resistant Concrete Block = -Concrete Post Platform = -Concrete Post = -