changed hud text, added russian locale

This commit is contained in:
TenPlus1 2018-01-04 11:23:41 +00:00
parent 974a024171
commit 4771c1f199
3 changed files with 47 additions and 3 deletions

View File

@ -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

45
locale/ru.txt Normal file
View File

@ -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 отключен

View File

@ -1 +0,0 @@
name = protector