From 4771c1f199af280f74a3821fe670f68ed344998f Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 4 Jan 2018 11:23:41 +0000 Subject: [PATCH] changed hud text, added russian locale --- hud.lua | 4 ++-- locale/ru.txt | 45 +++++++++++++++++++++++++++++++++++++++++++++ mod.conf | 1 - 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 locale/ru.txt delete mode 100644 mod.conf diff --git a/hud.lua b/hud.lua index cbf1bd2..041104b 100644 --- a/hud.lua +++ b/hud.lua @@ -15,7 +15,7 @@ minetest.register_globalstep(function(dtime) local name = player:get_player_name() local pos = vector.round(player:getpos()) - local hud_text = "You can build here" + local hud_text = "" local protectors = minetest.find_nodes_in_area( {x=pos.x -radius , y=pos.y -radius , z=pos.z -radius}, @@ -27,7 +27,7 @@ minetest.register_globalstep(function(dtime) local meta = minetest.get_meta(npos) local nodeowner = meta:get_string("owner") - hud_text = "Owned by: " .. nodeowner + hud_text = "Owner: " .. nodeowner end if not hud[name] then diff --git a/locale/ru.txt b/locale/ru.txt new file mode 100644 index 0000000..d83be48 --- /dev/null +++ b/locale/ru.txt @@ -0,0 +1,45 @@ +# Russian Translation for protector mod +# Русский Перевод для Мода "Переделанная Защита" +# last update: 2017/October/15 +# Author: Doloment + + +#admin.lua +Remove Protectors near players with names provided (separate names with spaces) = Удалить защиту рядом с игроками с именами (перечислить, разделяя пробелами) +Protector Names to remove: @1 = Имена защит, подлежащих удалению: @1 +Name List Reset = Сброс списка имен + +#doors_chest.lua +Protected Wooden Door = Защищенная яблоневая дверь +Protected Steel Door = Защищенная стальная дверь +Protected Trapdoor = Защищенный яблоневый люк +Protected Steel Trapdoor = Защищенный стальной люк +Protected Chest = Защищенный сундук +@1 moves stuff to protected chest at @2 = @1 перемещает вещи в защищенный сундук на координатах @2 +@1 takes stuff from protected chest at @2 = @1 берет вещи из защищенного сундука на координатах @2 +To Chest = В сундук +To Inventory = В инвентрарь +Protected Chest (@1) = Защищенный сундук (@1) + +#init.lua +-- Protector interface -- = +PUNCH node to show protected area = СТУКНУТЬ узел для подсведки защищенной территории +USE for area check = ЛКМ для проверки защищенной территории +Members: = Участники: +Close = Закрыть +This area is owned by @1! = Эта территория пренадлежит @1! +This area is owned by @1. = Эта территория пренадлежит @1. +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 = [МОДИФИКАЦИЯ] "Переделанная Защита" загружена + +#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 отключен diff --git a/mod.conf b/mod.conf deleted file mode 100644 index 8eb0aa8..0000000 --- a/mod.conf +++ /dev/null @@ -1 +0,0 @@ -name = protector \ No newline at end of file