From 3ca3d656cb94836973814fc1ba49ab435319fcea Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 13 Aug 2023 10:07:09 +0100 Subject: [PATCH] update translation (thanks Niklp) --- .luacheckrc | 1 - api.lua | 13 ++++---- crafts.lua | 7 +++-- locale/mobs.de.tr | 64 +++++++++++++++++++++------------------ locale/mobs.en.tr | 72 +++++++++++++++++++++++--------------------- locale/mobs.es.tr | 64 +++++++++++++++++++++------------------ locale/mobs.fr.tr | 54 ++++++++++++++++++--------------- locale/mobs.it.tr | 62 ++++++++++++++++++++------------------ locale/mobs.ms.tr | 62 ++++++++++++++++++++------------------ locale/mobs.pt.tr | 66 +++++++++++++++++++++------------------- locale/mobs.ru.tr | 62 ++++++++++++++++++++------------------ locale/mobs.tr.tr | 66 +++++++++++++++++++++------------------- locale/mobs.zh_CN.tr | 62 ++++++++++++++++++++------------------ locale/mobs.zh_TW.tr | 62 ++++++++++++++++++++------------------ locale/template.txt | 38 +++++++++++++++++++++++ spawner.lua | 5 ++- 16 files changed, 421 insertions(+), 339 deletions(-) create mode 100644 locale/template.txt diff --git a/.luacheckrc b/.luacheckrc index 22f803f..65f40a8 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -3,7 +3,6 @@ unused_args = false read_globals = { "minetest", "lucky_block", - "intllib", "vector", "table", "invisibility", diff --git a/api.lua b/api.lua index d4fe675..035e91c 100644 --- a/api.lua +++ b/api.lua @@ -1,5 +1,6 @@ -- Translation support local S = minetest.get_translator("mobs") +local FS = function(...) return minetest.formspec_escape(S(...)) end -- CMI support check local use_cmi = minetest.global_exists("cmi") @@ -10,8 +11,8 @@ local use_mc2 = minetest.get_modpath("mcl_core") -- Global mobs = { mod = "redo", - version = "20230809", - intllib = S, + version = "20230813", + translate = S, invis = minetest.global_exists("invisibility") and invisibility or {}, node_snow = minetest.registered_aliases["mapgen_snow"] or (use_mc2 and "mcl_core:snow") or "default:snow", @@ -4751,7 +4752,7 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame) minetest.show_formspec(name, "mobs_nametag", "size[8,4]" .. "field[0.5,1;7.5,0;name;" .. - esc(S("Enter name:")) .. + esc(FS("Enter name:")) .. ";" .. tag .. "]" .. "button_exit[2.5,3.5;3,1;mob_rename;" .. esc(S("Rename")) .. "]") @@ -4769,9 +4770,9 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame) end minetest.chat_send_player(clicker:get_player_name(), - S("@1 follows:\n- @2", - self.name:split(":")[2], - table.concat(self.follow, "\n- "))) + S("@1 follows:", + self.name:split(":")[2]) .. "\n" .. + table.concat(self.follow, "\n- ")) end end diff --git a/crafts.lua b/crafts.lua index ca92c2a..2c686be 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1,5 +1,6 @@ -local S = mobs.intllib +local S = mobs.translate +local FS = function(...) return minetest.formspec_escape(S(...)) end local mc2 = minetest.get_modpath("mcl_core") -- recipe items @@ -326,9 +327,9 @@ minetest.register_tool(":mobs:mob_reset_stick", { minetest.show_formspec(name, "mobs_texture", "size[8,4]" .. "field[0.5,1;7.5,0;name;" - .. minetest.formspec_escape(S("Enter texture:")) .. ";" .. bt .. "]" + .. FS("Enter texture:") .. ";" .. bt .. "]" .. "button_exit[2.5,3.5;3,1;mob_texture_change;" - .. minetest.formspec_escape(S("Change")) .. "]") + .. FS("Change") .. "]") end end }) diff --git a/locale/mobs.de.tr b/locale/mobs.de.tr index f11b665..eeaf0a9 100644 --- a/locale/mobs.de.tr +++ b/locale/mobs.de.tr @@ -1,34 +1,38 @@ -# textdomain:mobs -#** Peaceful Mode Active - No Monsters Will Spawn= -@1 (Tamed)=@1 (Gezähmt) -@1 at full health (@2)=@1 bei voller Gesundheit (@2) -@1 has been tamed!=@1 wurde gezähmt! -@1 is owner!=@1 ist der Besitzer! -#Active Mob Limit Reached!= -Already protected!=Bereits geschützt! -#Change= -#Command:= -Enter name:=Namen eingeben: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Lasso (Rechtsklick auf Tier, um es zu nehmen) -Leather=Leder -Meat=Fleisch -Missed!=Daneben! -Mob Fence=Kreaturen Zaun -#Mob Fence Top= -Mob Protection Rune=Kreaturschutzrune -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Kreaturenspawner-Einstellungen gescheitert! +# textdomain: mobs +** Peaceful Mode Active - No Monsters Will Spawn=** Friedlicher Modus aktiv - Es werden keine Monster spawnen +Active Mob Limit Reached!=Aktives Mob-Limit erreicht! Mob has been protected!=Kreatur wurde geschützt! -Name Tag=Namensschild -Net (right-click animal to put in inventory)=Netz (Rechtsklick auf Tier, um es zu nehmen) +@1 (Tamed)=@1 (Gezähmt) Not tamed!=Nicht gezähmt! -Raw Meat=Rohes Fleisch +@1 is owner!=@1 ist der Besitzer! +Missed!=Daneben! +Already protected!=Bereits geschützt! +@1 has been tamed!=@1 wurde gezähmt! +@1 follows:=@1 folgt: +@1 mobs removed.=@1 Mobs entfernt. +Enter name:=Namen eingeben: Rename=Umbenennen -Saddle=Sattel -Spawner Active (@1)=Spawner aktiv (@1) -Spawner Not Active (enter settings)=Nicht aktiv (Einstellungen eingeben) +Name Tag=Namensschild +Leather=Leder +Raw Meat=Rohes Fleisch +Meat=Fleisch +Lasso (right-click animal to put in inventory)=Lasso (Rechtsklick auf Tier, um es zu nehmen) +Net (right-click animal to put in inventory)=Netz (Rechtsklick auf Tier, um es zu nehmen) Steel Shears (right-click to shear)=Stahlschere (Rechtsklick zum Scheren) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Kreaturschutzrune +Mob Protection Rune (Level 2)=Kreaturschutzrune (Level 2) +Saddle=Sattel +Mob Fence=Kreaturen Zaun +Mob Fence Top=Kreaturen Zaun Oberteil +Mob Reset Stick=Kreatur reset Stock +Meat Block=Fleischblock +Raw Meat Block=Rohfleisch Blokc +Enter texture:=Textur eingeben: +Change=Ändern +Mob Spawner=Kreaturenspawner +(mob name) (min light) (max light) (amount) (player distance) (Y offset)=(Kreaturenname) (Min. Licht) (Max. Licht) (Anzahl) (Spielerabstand) (Y-Offset) +Command:=Befehl: +Spawner Not Active (enter settings)=Nicht aktiv (Einstellungen eingeben) +Spawner Active (@1)=Spawner aktiv (@1) +Mob Spawner settings failed!=Kreaturenspawner-Einstellungen gescheitert! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.en.tr b/locale/mobs.en.tr index fab62b7..d7895b3 100644 --- a/locale/mobs.en.tr +++ b/locale/mobs.en.tr @@ -1,34 +1,38 @@ -# textdomain:mobs -#** Peaceful Mode Active - No Monsters Will Spawn= -#@1 (Tamed)= -#@1 at full health (@2)= -#@1 has been tamed!= -#@1 is owner!= -#Active Mob Limit Reached!= -#Already protected!= -#Change= -#Command:= -#Enter name:= -#Enter texture:= -#Lasso (right-click animal to put in inventory)= -#Leather= -#Meat= -#Missed!= -#Mob Fence= -#Mob Fence Top= -#Mob Protection Rune= -#Mob Reset Stick= -#Mob Spawner= -#Mob Spawner settings failed!= -#Mob has been protected!= -#Name Tag= -#Net (right-click animal to put in inventory)= -#Not tamed!= -#Raw Meat= -#Rename= -#Saddle= -#Spawner Active (@1)= -#Spawner Not Active (enter settings)= -#Steel Shears (right-click to shear)= -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +# textdomain: mobs +** Peaceful Mode Active - No Monsters Will Spawn= +Active Mob Limit Reached!= +Mob has been protected!= +@1 (Tamed)= +Not tamed!= +@1 is owner!= +Missed!= +Already protected!= +@1 has been tamed!= +@1 follows:= +@1 mobs removed.= +Enter name:= +Rename= +Name Tag= +Leather= +Raw Meat= +Meat= +Lasso (right-click animal to put in inventory)= +Net (right-click animal to put in inventory)= +Steel Shears (right-click to shear)= +Mob Protection Rune= +Mob Protection Rune (Level 2)= +Saddle= +Mob Fence= +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)= +Spawner Active (@1)= +Mob Spawner settings failed!= +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.es.tr b/locale/mobs.es.tr index 29ee934..6194447 100644 --- a/locale/mobs.es.tr +++ b/locale/mobs.es.tr @@ -1,34 +1,38 @@ -# textdomain:mobs -#** Peaceful Mode Active - No Monsters Will Spawn= -@1 (Tamed)=@1 (Domesticado) -@1 at full health (@2)=@1 con salud llena (@2) -@1 has been tamed!=@1 ha sido domesticado! -@1 is owner!=@1 es el dueño! -#Active Mob Limit Reached!= -Already protected!=Ya está protegido! -#Change= -#Command:= -Enter name:=Ingrese nombre: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Lazo (click derecho en animal para colocar en inventario) -Leather=Cuero -Meat=Carne -Missed!=Perdido! -#Mob Fence= -#Mob Fence Top= -Mob Protection Rune=Runa de protección de Mob -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Configuracion de generador de Mob falló! +# textdomain: mobs +** Peaceful Mode Active - No Monsters Will Spawn= +Active Mob Limit Reached!= Mob has been protected!=El mob ha sido protegido! -Name Tag=Nombrar etiqueta -Net (right-click animal to put in inventory)=Red (click derecho en animal para colocar en inventario) +@1 (Tamed)=@1 (Domesticado) Not tamed!=No domesticado! -Raw Meat=Carne cruda +@1 is owner!=@1 es el dueño! +Missed!=Perdido! +Already protected!=Ya está protegido! +@1 has been tamed!=@1 ha sido domesticado! +@1 follows:= +@1 mobs removed.= +Enter name:=Ingrese nombre: Rename=Renombrar -Saddle=Montura -Spawner Active (@1)=Generador activo (@1) -Spawner Not Active (enter settings)=Generador no activo (ingrese config) +Name Tag=Nombrar etiqueta +Leather=Cuero +Raw Meat=Carne cruda +Meat=Carne +Lasso (right-click animal to put in inventory)=Lazo (click derecho en animal para colocar en inventario) +Net (right-click animal to put in inventory)=Red (click derecho en animal para colocar en inventario) Steel Shears (right-click to shear)=Tijera de acero (click derecho para esquilar) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Runa de protección de Mob +Mob Protection Rune (Level 2)= +Saddle=Montura +Mob Fence= +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=Generador no activo (ingrese config) +Spawner Active (@1)=Generador activo (@1) +Mob Spawner settings failed!=Configuracion de generador de Mob falló! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.fr.tr b/locale/mobs.fr.tr index 3e137fb..84d5af0 100644 --- a/locale/mobs.fr.tr +++ b/locale/mobs.fr.tr @@ -1,34 +1,38 @@ -# textdomain:mobs +# textdomain: mobs ** Peaceful Mode Active - No Monsters Will Spawn=** Mode pacifique activé - aucun monstre ne sera généré -@1 (Tamed)=@1 (apprivoisé) -@1 at full health (@2)=@1 est en pleine forme (@2) -@1 has been tamed!=@1 a été apprivoisé ! -@1 is owner!=Appartient à @1 ! Active Mob Limit Reached!=Limite atteinte du nombre des êtres vivants actifs ! -Already protected!=Déjà protégé ! -Change=Changer -Command:=Commande : -Enter name:=Saisissez un nom : -Enter texture:=Saisissez une texture : -Lasso (right-click animal to put in inventory)=Lasso (clic droit sur l'animal pour le mettre dans l'inventaire) -Leather=Cuir -Meat=Viande +Mob has been protected!=L'animal a été protégé ! +@1 (Tamed)=@1 (apprivoisé) +Not tamed!=Non-apprivoisé ! +@1 is owner!=Appartient à @1 ! Missed!=Raté ! +Already protected!=Déjà protégé ! +@1 has been tamed!=@1 a été apprivoisé ! +@1 follows:= +@1 mobs removed.= +Enter name:=Saisissez un nom : +Rename=Renommer +Name Tag=Étiquette de collier +Leather=Cuir +Raw Meat=Viande crue +Meat=Viande +Lasso (right-click animal to put in inventory)=Lasso (clic droit sur l'animal pour le mettre dans l'inventaire) +Net (right-click animal to put in inventory)=Filet (clic droit sur l'animal pour le mettre dans l'inventaire) +Steel Shears (right-click to shear)=Ciseaux à laine (clic droit pour tondre) +Mob Protection Rune=Rune de protection des animaux +Mob Protection Rune (Level 2)= +Saddle=Selle Mob Fence= Clôture à animaux Mob Fence Top=Haut de clôture à animaux -Mob Protection Rune=Rune de protection des animaux Mob Reset Stick=Baguette de réinitialisation des êtres vivants +Meat Block= +Raw Meat Block= +Enter texture:=Saisissez une texture : +Change=Changer Mob Spawner=Créateur d'êtres vivants -Mob Spawner settings failed!=Échec des paramètres du créateur d'être vivants ! -Mob has been protected!=L'animal a été protégé ! -Name Tag=Étiquette de collier -Net (right-click animal to put in inventory)=Filet (clic droit sur l'animal pour le mettre dans l'inventaire) -Not tamed!=Non-apprivoisé ! -Raw Meat=Viande crue -Rename=Renommer -Saddle=Selle -Spawner Active (@1)=Créateur actif (@1) +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:=Commande : Spawner Not Active (enter settings)=Créateur non actif (entrez les paramètres) -Steel Shears (right-click to shear)=Ciseaux à laine (clic droit pour tondre) +Spawner Active (@1)=Créateur actif (@1) +Mob Spawner settings failed!=Échec des paramètres du créateur d'être vivants ! Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=Syntaxe : «name min_lumière[0-14] max_lumière[0-14] max_être_vivant_dans_région[0 pour désactiver] distance_joueur[1-20] décalage_y[-10 to 10]» -lifetimer expired, removed @1=Être immortel expiré ; @1 retiré diff --git a/locale/mobs.it.tr b/locale/mobs.it.tr index 6b5edd9..bfe78e1 100644 --- a/locale/mobs.it.tr +++ b/locale/mobs.it.tr @@ -1,34 +1,38 @@ -# textdomain:mobs +# textdomain: mobs ** Peaceful Mode Active - No Monsters Will Spawn=** Modalità pacifica attiva - non comparirà nessun mostro -@1 (Tamed)=@1 (Addomesticato) -@1 at full health (@2)=@1 in piena salute (@2) -@1 has been tamed!=@1 è stato addomesticato! -@1 is owner!=Il padrone è @1! -#Active Mob Limit Reached!= -Already protected!=Già protetto! -#Change= -#Command:= -Enter name:=Inserire il nome: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Lazo (click di destro per mettere l'animale nell'inventario) -Leather=Pelle -Meat=Carne -Missed!=Mancato! -Mob Fence=Recinzione per mob -#Mob Fence Top= -Mob Protection Rune=Runa di protezione per mob -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Impostazioni del generatore di mob fallite! +Active Mob Limit Reached!= Mob has been protected!=Il mob è stato protetto! -Name Tag=Targhetta -Net (right-click animal to put in inventory)=Rete (click destro per mettere l'animale nell'inventario) +@1 (Tamed)=@1 (Addomesticato) Not tamed!=Non addomesticato! -Raw Meat=Carne cruda +@1 is owner!=Il padrone è @1! +Missed!=Mancato! +Already protected!=Già protetto! +@1 has been tamed!=@1 è stato addomesticato! +@1 follows:= +@1 mobs removed.= +Enter name:=Inserire il nome: Rename=Rinomina -Saddle=Sella -Spawner Active (@1)=Generatore attivo (@1) -Spawner Not Active (enter settings)=Generatore inattivo (inserire le impostazioni) +Name Tag=Targhetta +Leather=Pelle +Raw Meat=Carne cruda +Meat=Carne +Lasso (right-click animal to put in inventory)=Lazo (click di destro per mettere l'animale nell'inventario) +Net (right-click animal to put in inventory)=Rete (click destro per mettere l'animale nell'inventario) Steel Shears (right-click to shear)=Cesoie d'acciaio (click destro per tosare) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Runa di protezione per mob +Mob Protection Rune (Level 2)= +Saddle=Sella +Mob Fence=Recinzione per mob +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=Generatore inattivo (inserire le impostazioni) +Spawner Active (@1)=Generatore attivo (@1) +Mob Spawner settings failed!=Impostazioni del generatore di mob fallite! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.ms.tr b/locale/mobs.ms.tr index f79e2fb..e1bd370 100644 --- a/locale/mobs.ms.tr +++ b/locale/mobs.ms.tr @@ -1,34 +1,38 @@ -# textdomain:mobs +# textdomain: mobs ** Peaceful Mode Active - No Monsters Will Spawn=** Mod Aman Diaktifkan - Tiada Raksasa Akan Muncul -@1 (Tamed)=@1 (Jinak) -@1 at full health (@2)=Mata kesihatan @1 telah penuh (@2) -@1 has been tamed!=@1 telah dijinakkan! -@1 is owner!=Ini hak milik @1! -#Active Mob Limit Reached!= -Already protected!=Telah dilindungi! -#Change= -#Command:= -Enter name:=Masukkan nama: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Tanjul (klik-kanan haiwan untuk masukkan ke inventori) -Leather=Kulit -Meat=Daging Bakar -Missed!=Terlepas! -Mob Fence=Pagar Mob -#Mob Fence Top= -Mob Protection Rune=Rune Perlindungan Mob -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Penetapan Pewujud Mob gagal! +Active Mob Limit Reached!= Mob has been protected!=Mob telah pun dilindungi! -Name Tag=Tanda Nama -Net (right-click animal to put in inventory)=Jaring (klik-kanan haiwan untuk masukkan ke inventori) +@1 (Tamed)=@1 (Jinak) Not tamed!=Belum dijinakkan! -Raw Meat=Daging Mentah +@1 is owner!=Ini hak milik @1! +Missed!=Terlepas! +Already protected!=Telah dilindungi! +@1 has been tamed!=@1 telah dijinakkan! +@1 follows:= +@1 mobs removed.= +Enter name:=Masukkan nama: Rename=Namakan semula -Saddle=Pelana -Spawner Active (@1)=Pewujud Mob Aktif (@1) -Spawner Not Active (enter settings)=Pewujud Mob Tidak Aktif (masukkan tetapan) +Name Tag=Tanda Nama +Leather=Kulit +Raw Meat=Daging Mentah +Meat=Daging Bakar +Lasso (right-click animal to put in inventory)=Tanjul (klik-kanan haiwan untuk masukkan ke inventori) +Net (right-click animal to put in inventory)=Jaring (klik-kanan haiwan untuk masukkan ke inventori) Steel Shears (right-click to shear)=Ketam Keluli (klik-kanan untuk mengetam bulu biri-biri) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Rune Perlindungan Mob +Mob Protection Rune (Level 2)= +Saddle=Pelana +Mob Fence=Pagar Mob +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=Pewujud Mob Tidak Aktif (masukkan tetapan) +Spawner Active (@1)=Pewujud Mob Aktif (@1) +Mob Spawner settings failed!=Penetapan Pewujud Mob gagal! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.pt.tr b/locale/mobs.pt.tr index b62e989..85df35a 100644 --- a/locale/mobs.pt.tr +++ b/locale/mobs.pt.tr @@ -1,34 +1,38 @@ -# textdomain:mobs -#** Peaceful Mode Active - No Monsters Will Spawn= -#@1 (Tamed)= -@1 at full health (@2)=@1 em plena saude (@2) -@1 has been tamed!=@1 foi domesticado! -@1 is owner!=Dono @1! -#Active Mob Limit Reached!= -#Already protected!= -#Change= -#Command:= -Enter name:=Insira um nome: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Laço (clique-direito no animal para por no inventario) -Leather=Couro -Meat=Carne -Missed!=Faltou! -#Mob Fence= -#Mob Fence Top= -#Mob Protection Rune= -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Configuraçao de Spawnador do Mob falhou! -#Mob has been protected!= -Name Tag=Etiqueta -Net (right-click animal to put in inventory)=Net (clique-direito no animal para por no inventario) +# textdomain: mobs +** Peaceful Mode Active - No Monsters Will Spawn= +Active Mob Limit Reached!= +Mob has been protected!= +@1 (Tamed)= Not tamed!=Indomesticado! -Raw Meat=Carne crua +@1 is owner!=Dono @1! +Missed!=Faltou! +Already protected!= +@1 has been tamed!=@1 foi domesticado! +@1 follows:= +@1 mobs removed.= +Enter name:=Insira um nome: Rename=Renomear -#Saddle= -Spawner Active (@1)=Spawnador Ativo (@1) -Spawner Not Active (enter settings)=Spawnador Inativo (configurar) +Name Tag=Etiqueta +Leather=Couro +Raw Meat=Carne crua +Meat=Carne +Lasso (right-click animal to put in inventory)=Laço (clique-direito no animal para por no inventario) +Net (right-click animal to put in inventory)=Net (clique-direito no animal para por no inventario) Steel Shears (right-click to shear)=Tesoura de Aço (clique-direito para tosquiar) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune= +Mob Protection Rune (Level 2)= +Saddle= +Mob Fence= +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=Spawnador Inativo (configurar) +Spawner Active (@1)=Spawnador Ativo (@1) +Mob Spawner settings failed!=Configuraçao de Spawnador do Mob falhou! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.ru.tr b/locale/mobs.ru.tr index f7c201a..8d3f3bc 100644 --- a/locale/mobs.ru.tr +++ b/locale/mobs.ru.tr @@ -1,34 +1,38 @@ -# textdomain:mobs +# textdomain: mobs ** Peaceful Mode Active - No Monsters Will Spawn=** Мирный модус активирован - монстры не спаунятся -@1 (Tamed)=@1 (Прирученный) -@1 at full health (@2)=@1 при полном здоровье (@2) -@1 has been tamed!=@1 приручен -@1 is owner!=@1 владелец -#Active Mob Limit Reached!= -Already protected!=Уже защищен! -#Change= -#Command:= -Enter name:=Введите имя: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Лассо (Правый клик - положить животное в инвентарь) -Leather=Кожа -Meat=Мясо -Missed!=Промазал! -Mob Fence=Забор от мобов -#Mob Fence Top= -Mob Protection Rune=Защитная руна мобов -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Настройки спаунера моба провалились +Active Mob Limit Reached!= Mob has been protected!=Моб защищен! -Name Tag=Новый тэг -Net (right-click animal to put in inventory)=Сеть (Правый клик - положить животное в инвентарь) +@1 (Tamed)=@1 (Прирученный) Not tamed!=Не прирученный -Raw Meat=Сырое мясо +@1 is owner!=@1 владелец +Missed!=Промазал! +Already protected!=Уже защищен! +@1 has been tamed!=@1 приручен +@1 follows:= +@1 mobs removed.= +Enter name:=Введите имя: Rename=Переименовать -Saddle=Седло -Spawner Active (@1)=Активные спаунер (@1) -Spawner Not Active (enter settings)=Спаунер не активен (введите настройки) +Name Tag=Новый тэг +Leather=Кожа +Raw Meat=Сырое мясо +Meat=Мясо +Lasso (right-click animal to put in inventory)=Лассо (Правый клик - положить животное в инвентарь) +Net (right-click animal to put in inventory)=Сеть (Правый клик - положить животное в инвентарь) Steel Shears (right-click to shear)=Ножницы (Правый клик - подстричь) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Защитная руна мобов +Mob Protection Rune (Level 2)= +Saddle=Седло +Mob Fence=Забор от мобов +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=Спаунер не активен (введите настройки) +Spawner Active (@1)=Активные спаунер (@1) +Mob Spawner settings failed!=Настройки спаунера моба провалились +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.tr.tr b/locale/mobs.tr.tr index 6e28706..9070605 100644 --- a/locale/mobs.tr.tr +++ b/locale/mobs.tr.tr @@ -1,34 +1,38 @@ -# textdomain:mobs -#** Peaceful Mode Active - No Monsters Will Spawn= -#@1 (Tamed)= -@1 at full health (@2)=@1 tam canında (@2) -@1 has been tamed!=@1 tamamen evcilleştirilmiştir! -@1 is owner!=Sahibi @1! -#Active Mob Limit Reached!= -#Already protected!= -#Change= -#Command:= -Enter name:=İsim gir: -#Enter texture:= -Lasso (right-click animal to put in inventory)=Kement (hayvana sağ tıklayarak envantere koy) -Leather=Deri -Meat=Et -Missed!=Kaçırdın! -Mob Fence=Canavar Yaratıcı -#Mob Fence Top= -#Mob Protection Rune= -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Yaratıcı ayarları uygulanamadı. -#Mob has been protected!= -Name Tag=İsim etiketi -Net (right-click animal to put in inventory)=Ağ (hayvana sağ tıklayarak envantere koy) +# textdomain: mobs +** Peaceful Mode Active - No Monsters Will Spawn= +Active Mob Limit Reached!= +Mob has been protected!= +@1 (Tamed)= Not tamed!=Evcil değil! -Raw Meat=Çiğ et +@1 is owner!=Sahibi @1! +Missed!=Kaçırdın! +Already protected!= +@1 has been tamed!=@1 tamamen evcilleştirilmiştir! +@1 follows:= +@1 mobs removed.= +Enter name:=İsim gir: Rename=Yeniden adlandır -#Saddle= -Spawner Active (@1)=Yaratıcı aktif (@1) -Spawner Not Active (enter settings)=Yaratıcı aktif değil (ayarlara gir) +Name Tag=İsim etiketi +Leather=Deri +Raw Meat=Çiğ et +Meat=Et +Lasso (right-click animal to put in inventory)=Kement (hayvana sağ tıklayarak envantere koy) +Net (right-click animal to put in inventory)=Ağ (hayvana sağ tıklayarak envantere koy) Steel Shears (right-click to shear)=Çelik makas (sağ tıklayarak kes) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune= +Mob Protection Rune (Level 2)= +Saddle= +Mob Fence=Canavar Yaratıcı +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=Yaratıcı aktif değil (ayarlara gir) +Spawner Active (@1)=Yaratıcı aktif (@1) +Mob Spawner settings failed!=Yaratıcı ayarları uygulanamadı. +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.zh_CN.tr b/locale/mobs.zh_CN.tr index fe7556c..62b72d2 100644 --- a/locale/mobs.zh_CN.tr +++ b/locale/mobs.zh_CN.tr @@ -1,34 +1,38 @@ -# textdomain:mobs +# textdomain: mobs ** Peaceful Mode Active - No Monsters Will Spawn=** 和平模式已激活——没有怪物会产生 -@1 (Tamed)=@1(已驯服) -@1 at full health (@2)=@1已经满血(@2) -@1 has been tamed!=@1已经被驯服! -@1 is owner!=@1 是主人 -#Active Mob Limit Reached!= -Already protected!=已经被保护! -#Change= -#Command:= -Enter name:=输入名称: -#Enter texture:= -Lasso (right-click animal to put in inventory)=套索(右键单击动物以放入物品栏) -Leather=皮革 -Meat=肉 -Missed!=没抓住! -Mob Fence=Mob 栅栏 -#Mob Fence Top= -Mob Protection Rune=Mob 保护符文 -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Mob 孵化器设置失败! +Active Mob Limit Reached!= Mob has been protected!=Mob 已经被保护了! -Name Tag=名称标签 -Net (right-click animal to put in inventory)=网(右键单击动物以放入物品栏) +@1 (Tamed)=@1(已驯服) Not tamed!=没有驯服! -Raw Meat=生肉 +@1 is owner!=@1 是主人 +Missed!=没抓住! +Already protected!=已经被保护! +@1 has been tamed!=@1已经被驯服! +@1 follows:= +@1 mobs removed.= +Enter name:=输入名称: Rename=重新命名 -Saddle=鞍 -Spawner Active (@1)=孵化器正在运转(@1) -Spawner Not Active (enter settings)=孵化器未使用(输入设置) +Name Tag=名称标签 +Leather=皮革 +Raw Meat=生肉 +Meat=肉 +Lasso (right-click animal to put in inventory)=套索(右键单击动物以放入物品栏) +Net (right-click animal to put in inventory)=网(右键单击动物以放入物品栏) Steel Shears (right-click to shear)=钢剪(右键单击以剪切) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Mob 保护符文 +Mob Protection Rune (Level 2)= +Saddle=鞍 +Mob Fence=Mob 栅栏 +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=孵化器未使用(输入设置) +Spawner Active (@1)=孵化器正在运转(@1) +Mob Spawner settings failed!=Mob 孵化器设置失败! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/mobs.zh_TW.tr b/locale/mobs.zh_TW.tr index 89bed26..a38c938 100644 --- a/locale/mobs.zh_TW.tr +++ b/locale/mobs.zh_TW.tr @@ -1,34 +1,38 @@ -# textdomain:mobs +# textdomain: mobs ** Peaceful Mode Active - No Monsters Will Spawn=** 和平模式已激活——沒有怪物會產生 -@1 (Tamed)=@1(已馴服) -@1 at full health (@2)=@1已經滿血(@2) -@1 has been tamed!=@1已經被馴服! -@1 is owner!=@1 是主人 -#Active Mob Limit Reached!= -Already protected!=已經被保護! -#Change= -#Command:= -Enter name:=輸入名稱: -#Enter texture:= -Lasso (right-click animal to put in inventory)=套索(右鍵單擊動物以放入物品欄) -Leather=皮革 -Meat=肉 -Missed!=沒抓住! -Mob Fence=Mob 柵欄 -#Mob Fence Top= -Mob Protection Rune=Mob 保護符文 -#Mob Reset Stick= -#Mob Spawner= -Mob Spawner settings failed!=Mob 孵化器設置失敗! +Active Mob Limit Reached!= Mob has been protected!=Mob 已經被保護了! -Name Tag=名稱標籤 -Net (right-click animal to put in inventory)=網(右鍵單擊動物以放入物品欄) +@1 (Tamed)=@1(已馴服) Not tamed!=沒有馴服! -Raw Meat=生肉 +@1 is owner!=@1 是主人 +Missed!=沒抓住! +Already protected!=已經被保護! +@1 has been tamed!=@1已經被馴服! +@1 follows:= +@1 mobs removed.= +Enter name:=輸入名稱: Rename=重新命名 -Saddle=鞍 -Spawner Active (@1)=孵化器正在運轉(@1) -Spawner Not Active (enter settings)=孵化器未使用(輸入設置) +Name Tag=名稱標籤 +Leather=皮革 +Raw Meat=生肉 +Meat=肉 +Lasso (right-click animal to put in inventory)=套索(右鍵單擊動物以放入物品欄) +Net (right-click animal to put in inventory)=網(右鍵單擊動物以放入物品欄) Steel Shears (right-click to shear)=鋼剪(右鍵單擊以剪切) -#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= -#lifetimer expired, removed @1= +Mob Protection Rune=Mob 保護符文 +Mob Protection Rune (Level 2)= +Saddle=鞍 +Mob Fence=Mob 柵欄 +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)=孵化器未使用(輸入設置) +Spawner Active (@1)=孵化器正在運轉(@1) +Mob Spawner settings failed!=Mob 孵化器設置失敗! +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..d7895b3 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,38 @@ +# textdomain: mobs +** Peaceful Mode Active - No Monsters Will Spawn= +Active Mob Limit Reached!= +Mob has been protected!= +@1 (Tamed)= +Not tamed!= +@1 is owner!= +Missed!= +Already protected!= +@1 has been tamed!= +@1 follows:= +@1 mobs removed.= +Enter name:= +Rename= +Name Tag= +Leather= +Raw Meat= +Meat= +Lasso (right-click animal to put in inventory)= +Net (right-click animal to put in inventory)= +Steel Shears (right-click to shear)= +Mob Protection Rune= +Mob Protection Rune (Level 2)= +Saddle= +Mob Fence= +Mob Fence Top= +Mob Reset Stick= +Meat Block= +Raw Meat Block= +Enter texture:= +Change= +Mob Spawner= +(mob name) (min light) (max light) (amount) (player distance) (Y offset)= +Command:= +Spawner Not Active (enter settings)= +Spawner Active (@1)= +Mob Spawner settings failed!= +Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”= diff --git a/spawner.lua b/spawner.lua index 4840d1c..4686bd4 100644 --- a/spawner.lua +++ b/spawner.lua @@ -1,5 +1,5 @@ -local S = mobs.intllib +local S = mobs.translate -- are we a real player ? @@ -31,8 +31,7 @@ minetest.register_node("mobs:spawner", { .. " (player distance) (Y offset)") -- text entry formspec - meta:set_string("formspec", - "size[10,3.5]" + meta:set_string("formspec", "size[10,3.5]" .. "label[0.15,0.5;" .. minetest.formspec_escape(head) .. "]" .. "field[1,2.5;8.5,0.8;text;" .. S("Command:") .. ";${command}]")