From 45d09754d0edf809bc7c024d9625b5ca419cabb5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 14 Mar 2019 01:59:31 +0100 Subject: [PATCH] German translation: mcl_structures --- mods/MAPGEN/mcl_structures/init.lua | 23 +++++++------------ .../locale/mcl_structures.de.tr | 7 ++++++ .../MAPGEN/mcl_structures/locale/template.txt | 7 ++++++ 3 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 mods/MAPGEN/mcl_structures/locale/mcl_structures.de.tr create mode 100644 mods/MAPGEN/mcl_structures/locale/template.txt diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index 737722f2a7..26fd7b2cc3 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -1,4 +1,5 @@ local init = os.clock() +local S = minetest.get_translator("mcl_structures") mcl_structures ={} mcl_structures.get_struct = function(file) @@ -459,7 +460,7 @@ end -- Debug command minetest.register_chatcommand("spawnstruct", { params = "desert_temple | desert_well | igloo | village | witch_hut | boulder | ice_spike_small | ice_spike_large | fossil | end_exit_portal | end_portal_shrine", - description = "Generate a pre-defined structure near your position.", + description = S("Generate a pre-defined structure near your position."), privs = {debug = true}, func = function(name, param) local pos= minetest.get_player_by_name(name):get_pos() @@ -467,48 +468,40 @@ minetest.register_chatcommand("spawnstruct", { return end local errord = false + local message = S("Structure placed.") if param == "village" then mcl_structures.generate_village(pos) - minetest.chat_send_player(name, "Village built. WARNING: Villages are experimental and might have bugs.") + message = S("Village built. WARNING: Villages are experimental and might have bugs.") elseif param == "desert_temple" then mcl_structures.generate_desert_temple(pos) - minetest.chat_send_player(name, "Desert temple built.") elseif param == "desert_well" then mcl_structures.generate_desert_well(pos) - minetest.chat_send_player(name, "Desert well built.") elseif param == "igloo" then mcl_structures.generate_igloo_top(pos) - minetest.chat_send_player(name, "Igloo built.") elseif param == "witch_hut" then mcl_structures.generate_witch_hut(pos) - minetest.chat_send_player(name, "Witch hut built.") elseif param == "boulder" then mcl_structures.generate_boulder(pos) - minetest.chat_send_player(name, "Moss stone boulder placed.") elseif param == "fossil" then mcl_structures.generate_fossil(pos) - minetest.chat_send_player(name, "Fossil placed.") elseif param == "ice_spike_small" then mcl_structures.generate_ice_spike_small(pos) - minetest.chat_send_player(name, "Small ice spike placed.") elseif param == "ice_spike_large" then mcl_structures.generate_ice_spike_large(pos) - minetest.chat_send_player(name, "Large ice spike placed.") elseif param == "end_exit_portal" then mcl_structures.generate_end_exit_portal(pos) - minetest.chat_send_player(name, "End exit portal placed.") elseif param == "end_portal_shrine" then mcl_structures.generate_end_portal_shrine(pos) - minetest.chat_send_player(name, "End portal shrine placed.") elseif param == "" then - minetest.chat_send_player(name, "Error: No structure type given. Please use “/spawnstruct ”.") + message = S("Error: No structure type given. Please use “/spawnstruct ”.") errord = true else - minetest.chat_send_player(name, "Error: Unknown structure type. Please use “/spawnstruct ”.") + message = S("Error: Unknown structure type. Please use “/spawnstruct ”.") errord = true end + minetest.chat_send_player(name, message) if errord then - minetest.chat_send_player(name, "Use /help spawnstruct to see a list of avaiable types.") + minetest.chat_send_player(name, S("Use /help spawnstruct to see a list of avaiable types.")) end end }) diff --git a/mods/MAPGEN/mcl_structures/locale/mcl_structures.de.tr b/mods/MAPGEN/mcl_structures/locale/mcl_structures.de.tr new file mode 100644 index 0000000000..e701b7879b --- /dev/null +++ b/mods/MAPGEN/mcl_structures/locale/mcl_structures.de.tr @@ -0,0 +1,7 @@ +# textdomain: mcl_structures +Generate a pre-defined structure near your position.=Erzeugt ein vordefiniertes Gebäude in Ihrer Nähe. +Structure placed.=Gebäude platziert. +Village built. WARNING: Villages are experimental and might have bugs.=Dorf gebaut. ACHTUNG: Dörfer sind experimentell und können fehlerhaft sein. +Error: No structure type given. Please use “/spawnstruct ”.=Fehler: Kein Gebäudetyp angegeben. Bitte benutzen Sie „/spawnstruct “. +Error: Unknown structure type. Please use “/spawnstruct ”.=Fehler: Unbekannter Gebäudetyp. Bitte benutzen Sie „/spawnstruct “. +Use /help spawnstruct to see a list of avaiable types.=Benutzen Sie „/help spawnstruct“, um eine Liste der vorhandenen Typen zu sehen. diff --git a/mods/MAPGEN/mcl_structures/locale/template.txt b/mods/MAPGEN/mcl_structures/locale/template.txt new file mode 100644 index 0000000000..76f85c4c9b --- /dev/null +++ b/mods/MAPGEN/mcl_structures/locale/template.txt @@ -0,0 +1,7 @@ +# textdomain: mcl_structures +Generate a pre-defined structure near your position.= +Structure placed.= +Village built. WARNING: Villages are experimental and might have bugs.= +Error: No structure type given. Please use “/spawnstruct ”.= +Error: Unknown structure type. Please use “/spawnstruct ”.= +Use /help spawnstruct to see a list of avaiable types.=