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 = -