diff --git a/chatcommands.lua b/chatcommands.lua index 5155c90..8005cf8 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -199,7 +199,7 @@ minetest.register_chatcommand("list_areas", { if #areaStrings == 0 then return true, S("No visible areas.") elseif #areaStrings > 100 then - return true, S(Too many areas to list.") + return true, S("Too many areas to list.") end return true, table.concat(areaStrings, "\n") diff --git a/hud.lua b/hud.lua index 2c1af97..d459e56 100644 --- a/hud.lua +++ b/hud.lua @@ -1,4 +1,7 @@ -- This is inspired by the landrush mod by Bremaweb + +local S = intllib.make_gettext_pair() + areas.hud = {} hud.register("areas", { @@ -37,7 +40,7 @@ minetest.register_playerstep(function(_, playernames) local areaString = "" if #areaStrings > 0 then - areaString = "Areas:" + areaString = S("Areas:") areaString = areaString.."\n".. table.concat(areaStrings, "\n") end diff --git a/locale/ru.txt b/locale/ru.txt index 169aeb1..86b5d67 100644 --- a/locale/ru.txt +++ b/locale/ru.txt @@ -1,5 +1,7 @@ %s is protected by %s.=%s защищено %s. +Areas:=Зоны: + #Protector Block Protector Block=Защитный Блок You are not allowed to protect that area:=Вам не разрешено защищать эту область: diff --git a/locale/template.txt b/locale/template.txt index ba62e97..4c07970 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -90,21 +90,6 @@ The area intersects with @1 [@2] (@3).= You have reached the maximum amount of areas that you are allowed to protect.= - -### legacy.lua ### - -= -Converted areas saved. Done.= -Converting areas…= -Error loading legacy file: @1= -Invalid version number. (0 allowed)= -Legacy file loaded.= - -Loads, converts, and saves the areas from a legacy save file.= - -Table format updated.= -unnamed= - ### pos.lua ### = diff --git a/pos.lua b/pos.lua index 3c56f1a..afebb43 100644 --- a/pos.lua +++ b/pos.lua @@ -1,4 +1,5 @@ local S = intllib.make_gettext_pair() + -- I could depend on WorldEdit for this, but you need to have the 'worldedit' -- permission to use those commands and you don't have -- /area_pos{1,2} [X Y Z|X,Y,Z].