From e0a205bdcc115eb7b4c722a8d31740202a02ce45 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Mon, 25 Jul 2022 17:47:36 +0200 Subject: [PATCH] translation template + german translation --- mods/ITEMS/mcl_beacons/init.lua | 9 +++++---- mods/ITEMS/mcl_beacons/locale/mcl_beacons.de.tr | 5 +++++ mods/ITEMS/mcl_beacons/locale/template.txt | 6 ++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 mods/ITEMS/mcl_beacons/locale/mcl_beacons.de.tr create mode 100644 mods/ITEMS/mcl_beacons/locale/template.txt diff --git a/mods/ITEMS/mcl_beacons/init.lua b/mods/ITEMS/mcl_beacons/init.lua index dd631ec076..0dcf8a5500 100644 --- a/mods/ITEMS/mcl_beacons/init.lua +++ b/mods/ITEMS/mcl_beacons/init.lua @@ -1,3 +1,4 @@ +local S = minetest.get_translator(minetest.get_current_modname()) --[[ there are strings in meta, which are being used to see which effect will be given to the player(s) Valid strings: @@ -26,9 +27,9 @@ minetest.register_node("mcl_beacons:beacon_beam", { local formspec_string= "size[11,14]".. - "label[4.5,0.5;Beacon:]".. - "label[0.5,1;Primary Power:]".. - "label[0.5,8.25;Inventory:]".. + "label[4.5,0.5;"..minetest.formspec_escape(S("Beacon:")).."]".. + "label[0.5,1;"..minetest.formspec_escape(S("Primary Power:")).."]".. + "label[0.5,8.25;"..minetest.formspec_escape( S("Inventory:")).."]".. "image[1,1.5;1,1;custom_beacom_symbol_4.png]".. "image[1,3;1,1;custom_beacom_symbol_3.png]".. @@ -130,7 +131,7 @@ local function globalstep_function(pos,player) end minetest.register_node("mcl_beacons:beacon", { - description = "Beacon", + description = S"Beacon", drawtype = "glasslike", tiles = { "default_glass.png^beacon_overlay.png" diff --git a/mods/ITEMS/mcl_beacons/locale/mcl_beacons.de.tr b/mods/ITEMS/mcl_beacons/locale/mcl_beacons.de.tr new file mode 100644 index 0000000000..d6f194a6cb --- /dev/null +++ b/mods/ITEMS/mcl_beacons/locale/mcl_beacons.de.tr @@ -0,0 +1,5 @@ +# textdomain: mcl_beacons +Beacon=Leuchtfeuer +Beacon:=Leuchtfeuer: +Primary Power:=Primäre Kraft: +Inventory:=Inventar: diff --git a/mods/ITEMS/mcl_beacons/locale/template.txt b/mods/ITEMS/mcl_beacons/locale/template.txt new file mode 100644 index 0000000000..8f604d5984 --- /dev/null +++ b/mods/ITEMS/mcl_beacons/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain: mcl_beacons +Beacon= +Beacon:= +Primary Power:= +Inventory:= +