diff --git a/admin.lua b/admin.lua index 551ef36..cabd0c1 100644 --- a/admin.lua +++ b/admin.lua @@ -186,7 +186,7 @@ minetest.register_chatcommand("protector_show", { local player = minetest.get_player_by_name(name) if not player then - return false, "Player not found" + return false, S("Player not found.") end local pos = player:get_pos() @@ -223,7 +223,7 @@ minetest.register_chatcommand("protector_hide", { local player = minetest.get_player_by_name(name) if not player then - return false, "Player not found" + return false, S("Player not found.") end local pos = player:get_pos() diff --git a/locale/protector.de.tr b/locale/protector.de.tr index 9656715..ccf59fe 100644 --- a/locale/protector.de.tr +++ b/locale/protector.de.tr @@ -11,6 +11,9 @@ Replacing Protector name '@1' with '@2'=Ersetze Besitzer der Störschützer von Show protected areas of your nearby protectors=Zeige geschützte Bereiche der Störschützer in der Nähe Protector Names to remove: @1=Störschutznamen zum Entfernen: @1 Name List Reset=Namensliste zurückgesetzt +Invalid player name!= +Player name too long= +Player not found.= ### doors_chest.lua ### Protected Wooden Door=Geschützte Holztür @@ -30,6 +33,7 @@ Members:=Mitglieder: Close=Schließen Protection located at: @1=Störschutz befindet sich bei: @1 Members: @1.=Mitglieder: @1. +Allow faction access= This area is not protected.=Dieser Bereich ist nicht geschützt. You can build here.=Du kannst hier bauen. Overlaps into above players protected area=Überlappung im geschützen Bereich eines Spielers @@ -40,11 +44,6 @@ Protection Logo=Störschutzlogo Spawn @1 has been protected up to a @2 block radius.=Spawn @1 ist geschützt mit einem Radius von @2 Blöcke. This area is owned by @1=Dieser Bereich gehört @1 -### pvp.lua ### -[Protector] on_punchplayer called with nil objects=on_punchplayer wurde durch \"nil objects\" aufgerufen -[Protector] pvp_protect not active, update your version of Minetest=pvp_protect ist nicht aktiv, aktualisiere deine Minetestversion -[Protector] pvp_protect is disabled=pvp_protect ist ausgeschaltet - ### hud.lua ### Owner: @1=Besitzer: @1 @@ -53,3 +52,6 @@ Protector Placer Tool (stand near protector, face direction and use)=Störschutz Protector already in place!=Störschutz is bereits platziert! No protectors available to place!=Keine Störschützer mehr im Inventar! "Protector placed at @1"=Störschutz befindet sich bei: @1 +Out of bounds!= +Cannot place protector, already protected at @1= +Cannot place protector, container at @1= \ No newline at end of file diff --git a/locale/protector.es.tr b/locale/protector.es.tr index 117a4c3..4589165 100644 --- a/locale/protector.es.tr +++ b/locale/protector.es.tr @@ -11,6 +11,9 @@ Replacing Protector name '@1' with '@2'=Reemplazando el nombre del protector '@1 Show protected areas of your nearby protectors=Mostrar áreas protegidas de sus protectores cercanos Protector Names to remove: @1=Nombres de protectores para eliminar: @1 Name List Reset=Restablecer lista de nombres +Invalid player name!= +Player name too long= +Player not found.= ### doors_chest.lua ### Protected Wooden Door=Puerta de madera protegida @@ -30,6 +33,7 @@ Members:=Miembros: Close=Cerrar Protection located at: @1=Protección ubicada en: @1 Members: @1.=Miembros: @1. +Allow faction access= This area is not protected.=Esta área no está protegida. You can build here.=Puedes construir aquí. Overlaps into above players protected area=Se superpone en el área protegida de los jugadores anteriores @@ -40,11 +44,6 @@ Protection Logo=Logotipo de la protección Spawn @1 has been protected up to a @2 block radius.=Spawn @1 ha sido protegido hasta un radio de bloque @2. This area is owned by @1=Esta área es propiedad de @1 -### pvp.lua ### -[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer llamado con objetos nulos. -[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect no está activo, actualiza tu versión de Minetest -[Protector] pvp_protect is disabled=[Protector] pvp_protect está deshabilitado - ### hud.lua ### Owner: @1=Propietario: @1 @@ -53,3 +52,6 @@ Protector Placer Tool (stand near protector, face direction and use)=Herramienta Protector already in place!=¡El protector ya está en este lugar! No protectors available to place!=¡No hay protectores disponibles para colocar! Protector placed at @1=Protector colocado en @1 +Out of bounds!= +Cannot place protector, already protected at @1= +Cannot place protector, container at @1= \ No newline at end of file diff --git a/locale/protector.fr.tr b/locale/protector.fr.tr index 70141bc..38361e5 100644 --- a/locale/protector.fr.tr +++ b/locale/protector.fr.tr @@ -11,6 +11,9 @@ Replacing Protector name '@1' with '@2'= Show protected areas of your nearby protectors=Affichez les zones protégées de vos protecteurs à proximité Protector Names to remove: @1=Noms de protecteurs à supprimer: @1 Name List Reset=Liste de noms réinitialiser +Invalid player name!= +Player name too long= +Player not found.= ### doors_chest.lua ### Protected Wooden Door=Porte en bois protégée @@ -30,6 +33,7 @@ Members:=Membres: Close=Fermer Protection located at: @1=Protection située à: @1 Members: @1.=Membres: @1. +Allow faction access= This area is not protected.=msgstr "Cette zone n'est pas protégée. You can build here.=Vous pouvez construire ici. Overlaps into above players protected area=Vous chevauché une zone protégé. @@ -40,11 +44,6 @@ Protection Logo=Logo de protection Spawn @1 has been protected up to a @2 block radius.= This area is owned by @1=Cette zone appartient à @1! -### pvp.lua ### -[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer appelé avec des objets nil -[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect est désactivé, mettez à jour votre version de Minetest -[Protector] pvp_protect is disabled=[Protector] pvp_protect est désactivé - ### hud.lua ### Owner: @1=Propriétaire: @1 @@ -53,3 +52,6 @@ Protector Placer Tool (stand near protector, face direction and use)=Outil de pl Protector already in place!=Protecteur déjà en place! No protectors available to place!=Aucun protecteur disponible à placer! Protector placed at @1=Protection située à: @1 +Out of bounds!= +Cannot place protector, already protected at @1= +Cannot place protector, container at @1= \ No newline at end of file diff --git a/locale/protector.it.tr b/locale/protector.it.tr index e2f81c1..4c20264 100644 --- a/locale/protector.it.tr +++ b/locale/protector.it.tr @@ -11,6 +11,9 @@ Replacing Protector name '@1' with '@2'=Sostituzione del nome del protettore '@1 Show protected areas of your nearby protectors=Mostra le aree protette dei protettori vicino a te Protector Names to remove: @1=Nomi dei protettori da eliminare: @1 Name List Reset=Azzera l'elenco dei nomi +Invalid player name!= +Player name too long= +Player not found.= ### doors_chest.lua ### Protected Wooden Door=Porta di legno protetta @@ -30,6 +33,7 @@ Members:=Membri: Close=Chiudi Protection located at: @1=Protezione collocata a: @1 Members: @1.=Membri: @1. +Allow faction access= This area is not protected.=Quest'area non è protetta. You can build here.=Qui puoi costruire. Overlaps into above players protected area=Si sovrappone ad un'area sovrastante protetta dai giocatori @@ -40,11 +44,6 @@ Protection Logo=Logo di protezione Spawn @1 has been protected up to a @2 block radius.=Lo spawn @1 è stato protetto fino a un raggio di @2 blocchi. This area is owned by @1=Quest'area è di proprietà di @1 -### pvp.lua ### -[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer chiamato con oggetti nil -[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect non attiva, aggiorna la tua versione di Minetest -[Protector] pvp_protect is disabled=[Protector] pvp_protect è disattivato - ### hud.lua ### Owner: @1=Proprietario: @1 @@ -53,3 +52,6 @@ Protector Placer Tool (stand near protector, face direction and use)=Strumento d Protector already in place!=Protettore già presente! No protectors available to place!=Nessun protettore disponibile da posizionare! Protector placed at @1=Protettore posizionato a @1 +Out of bounds!= +Cannot place protector, already protected at @1= +Cannot place protector, container at @1= \ No newline at end of file diff --git a/locale/protector.ru.tr b/locale/protector.ru.tr index fc6068e..2c6c904 100644 --- a/locale/protector.ru.tr +++ b/locale/protector.ru.tr @@ -1,55 +1,62 @@ # textdomain: protector -# author: CodeXP -# last update: 2018/Jul/10 +# author: SkyBuilder1717 +# last update: 2025/Jan/27 ### admin.lua ### -Remove Protectors around players (separate names with spaces)=Удалить защиту рядом с игроками (перечислить имена, разделяя пробелами) -=<список имён> -Replace Protector Owner with name provided=Заменить владельца защиты новым владельцем - =<имя владельца> <имя нового владельца> -Replacing Protector name '@1' with '@2'=Заменяется владелец защиты с '@1' на '@2' -Show protected areas of your nearby protectors=Показать ближайшие защищённые территории -Protector Names to remove: @1=Имена, подлежащие удалению: @1 -Name List Reset=Очистить список имён +Remove Protectors around players (separate names with spaces)=Удалить Защитников вокруг игроков (отделяйте имена с помощью пробела) +=<игроки> +Replace Protector Owner with name provided=Заменить Владельца Защитника с доставленным именем + =<владелец> <новый владелец> +Replacing Protector name '@1' with '@2'=Замена Имени Защитника '@1' с '@2' +Show protected areas of your nearby protectors=Показать защищённые зоны Защитниками с вами неподалёку +Protector Names to remove: @1=Имена Защитников чтобы удалить: @1 +Name List Reset=Сброс Список Имён +Invalid player name!=Неправильное имя игрока! +Player name too long=Имя игрока слишком длинное +Player not found.=Игрок не найден. ### doors_chest.lua ### -Protected Wooden Door=Защищённая яблоневая дверь -Protected Steel Door=Защищённая стальная дверь -Protected Trapdoor=Защищённый яблоневый люк -Protected Steel Trapdoor=Защищённый стальной люк -Protected Chest=Защищённый сундук -To Chest=В сундук -To Inventory=В инвентрарь -Protected Chest (@1)=Защищённый сундук (@1) +Protected Wooden Door=Защищённая Деревянная Дверь +Protected Steel Door=Защищённая Стальная Дверь +Protected Trapdoor=Защищённый Люк +Protected Steel Trapdoor=Защищённый Стальной Люк +Protected Chest=Защищённый Сундук +To Chest=В Сундук +To Inventory=В Инвентарь +Protected Chest (@1)=Защищённый Сундук (@1) ### init.lua ### --- Protector interface --=-- Настройка защиты -- -PUNCH node to show protected area=СТУКНУТЬ узел для подсветки защищённой территории -USE for area check=ЛКМ для проверки защищённой территории +-- Protector interface --=-- Интерфейс Защитника -- +PUNCH node to show protected area=УДАРЬТЕ по блоку чтобы показать защищённую зону +USE for area check=ИСПОЛЬЗУЙТЕ для проверки зоны Members:=Участники: Close=Закрыть -Protection located at: @1=Защита находится на координатах @1 +Allow faction access=Разрешить частичный доступ +Protection located at: @1=Защитник расположен на: @1 Members: @1.=Участники: @1. -This area is not protected.=Территория свободна. -You can build here.=Здесь можно ставить блоки. -Overlaps into above players protected area=Защитный блок не может быть установлен: пересечение с областями, защищёнными другими игроками -Protection Block=Защитный блок -Protection (owned by @1)=Защита игрока @1 -Protection Logo=Защитный знак -[MOD] Protector Redo loaded=[МОД] Protector Redo загружен -Spawn @1 has been protected up to a @2 block radius.=Спаун @1 защищён в радиусе @2 блока. -This area is owned by @1=Эта территория пренадлежит @1 +This area is not protected.=Эта зона не защищена. +You can build here.=Вы можете здесь строить. +Overlaps into above players protected area=Перекрывает защищенную зону вышеперечисленных игроков +Protection Block=Блок Защиты +Protection (owned by @1)=Защита (владелец: @1) +Protection Logo=Логотип Защиты +[MOD] Protector Redo loaded=[MOD] Protector Redo загружен +Spawn @1 has been protected up to a @2 block radius.=Спавн @1 был защищён радиусом в блоках @2. +This area is owned by @1=Эта зона принадлежит @1. ### pvp.lua ### -[Protector] on_punchplayer called with nil objects=[Защита] on_punchplayer вызвана с нулевыми объектами -[Protector] pvp_protect not active, update your version of Minetest=[Защита] pvp_protect неактивен, обновите версию Minetest -[Protector] pvp_protect is disabled=[Защита] pvp_protect отключён +[Protector] on_punchplayer called with nil objects=on_punchplayer вызван на нулевом объекте +[Protector] pvp_protect not active, update your version of Luanti=[Protector] pvp_protect не активен, обновите версию Luanti +[Protector] pvp_protect is disabled=[Protector] pvp_protect выключен ### hud.lua ### Owner: @1=Владелец: @1 ### tool.lua ### -Protector Placer Tool (stand near protector, face direction and use)=Инструмент установки защиты (встаньте рядом с защитой, повернитесь в нужном направлении и используйте) -Protector already in place!=Защита уже установлена! -No protectors available to place!=У вас нет защитных блоков в инвентаре! -Protector placed at @1=Защита находится на координатах @1 +Protector Placer Tool (stand near protector, face direction and use)=Инструмент Размещения Защитника (встаньте рядом с Защитником, повернитесь к нему и используйте предмет) +Protector already in place!=Защитник уже стоит на этом месте! +No protectors available to place!=Нет доступных Защитников чтобы поставить! +Out of bounds!=За пределами! +Protector placed at @1=Защитник размещён на @1 +Cannot place protector, already protected at @1=Нельзя поставить Защитник, другой Защитник уже на @1 +Cannot place protector, container at @1=Нельзя поставить Защитник, контейнер на @1 \ No newline at end of file diff --git a/locale/protector.tr.tr b/locale/protector.tr.tr index 368e624..97a0d84 100644 --- a/locale/protector.tr.tr +++ b/locale/protector.tr.tr @@ -11,6 +11,9 @@ Replacing Protector name '@1' with '@2'='@1' Koruyucu adını '@2' ile değişti Show protected areas of your nearby protectors=Yakındaki koruyucuların korunan alanlarını göster Protector Names to remove: @1=Silinecek korumaların isimleri: @1 Name List Reset=İsim listesini sıfırla +Invalid player name!= +Player name too long= +Player not found.= ### doors_chest.lua ### Protected Wooden Door=Korumalı ahşap kapı @@ -30,6 +33,7 @@ Members:=Üyeler Close=Kapat Protection located at: @1=Korumanın bulunduğu yer @1 Members: @1.=Üyeler @1. +Allow faction access= This area is not protected.=Bu alan korumalı değildir. You can build here.=Buraya inşaa edebilirsiniz. Overlaps into above players protected area=Yukarıdaki oyuncuların koruma alanı ile çakışıyor @@ -40,11 +44,6 @@ Protection Logo=Koruma arması Spawn @1 has been protected up to a @2 block radius.=Spawn @1, @2 blok yarıçapa kadar korunur. This area is owned by @1=Burasının sahibi @1! -### pvp.lua ### -[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer boş objelerle çağrıldı -[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect aktif değil, Minetest sürümünüzü güncelleyin. -[Protector] pvp_protect is disabled=[Protector] pvp_protect kapatıldı. - ### hud.lua ### Owner: @1=Sahip: @1 @@ -53,3 +52,6 @@ Protector Placer Tool (stand near protector, face direction and use)=Koruyucu Ye Protector already in place!=Koruyucu zaten yerinde! No protectors available to place!=Yerleştirilecek koruyucu yok! Protector placed at @1=Korumanın bulunduğu yer @1 +Out of bounds!= +Cannot place protector, already protected at @1= +Cannot place protector, container at @1= \ No newline at end of file diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..90ea1fc --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,59 @@ +# textdomain: protector +# author: ? +# last update: 2020/Jul/12 + +### admin.lua ### +Remove Protectors around players (separate names with spaces)= += +Replace Protector Owner with name provided= + = +Replacing Protector name '@1' with '@2'= +Show protected areas of your nearby protectors= +Protector Names to remove: @1= +Name List Reset= +Invalid player name!= +Player name too long= +Player not found.= + +### doors_chest.lua ### +Protected Wooden Door= +Protected Steel Door= +Protected Trapdoor= +Protected Steel Trapdoor= +Protected Chest= +To Chest= +To Inventory= +Protected Chest (@1)= + +### init.lua ### +-- Protector interface --= +PUNCH node to show protected area= +USE for area check= +Members:= +Close= +Protection located at: @1= +Members: @1.= +Allow faction access= +This area is not protected.= +You can build here.= +Overlaps into above players protected area= +Protection Block= +Protection (owned by @1)= +Protection Logo= +[MOD] Protector Redo loaded= +Spawn @1 has been protected up to a @2 block radius.= +This area is owned by @1= +Add member names to local protection +Remove member names from local protection + +### hud.lua ### +Owner: @1= + +### tool.lua ### +Protector Placer Tool (stand near protector, face direction and use)= +Protector already in place!= +Out of bounds!= +No protectors available to place!= +Protector placed at @1= +Cannot place protector, already protected at @1= +Cannot place protector, container at @1= diff --git a/tool.lua b/tool.lua index 46f890d..68d290e 100644 --- a/tool.lua +++ b/tool.lua @@ -110,8 +110,9 @@ minetest.register_craftitem("protector:tool", { local inv = minetest.get_inventory({type = "node", pos = pos}) if inv then - minetest.chat_send_player(name, S("Cannot place protector, container at") .. - " " .. minetest.pos_to_string(pos)) + minetest.chat_send_player(name, + S("Cannot place protector, container at @1", + minetest.pos_to_string(pos))) return end @@ -119,8 +120,8 @@ minetest.register_craftitem("protector:tool", { if minetest.is_protected(pos, name) then minetest.chat_send_player(name, - S("Cannot place protector, already protected at") - .. " " .. minetest.pos_to_string(pos)) + S("Cannot place protector, already protected at @1", + minetest.pos_to_string(pos))) return end @@ -141,7 +142,7 @@ minetest.register_craftitem("protector:tool", { end minetest.chat_send_player(name, - S("Protector placed at") .. " " .. minetest.pos_to_string(pos)) + S("Protector placed at @1", minetest.pos_to_string(pos))) end })