Skip to content

Commit

Permalink
Translate all builtin prases (Core/builtin/). Remove our partial tr…
Browse files Browse the repository at this point in the history
…anslations. Closes #1186. Relates to #1174, #1186
  • Loading branch information
alek13 committed Oct 17, 2023
1 parent 0b6c619 commit 2350da4
Show file tree
Hide file tree
Showing 12 changed files with 251 additions and 252 deletions.
3 changes: 3 additions & 0 deletions mods/lord/Core/builtin/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

-- As for now, this mod used only for translations of builtin functionality.
-- Translations need to be removed after it appears in MT (#1187).
246 changes: 246 additions & 0 deletions mods/lord/Core/builtin/locale/__builtin.ru.tr

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions mods/lord/Core/builtin/mod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name = builtin
description = As for now, this mod used only for translations of builtin functionality. Translations need to be removed after it appears in MT (#1187).
49 changes: 0 additions & 49 deletions mods/lord/Game/lord_base_commands/init.lua
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
local SL = minetest.get_translator("lord_base_commands")

-- Эти команды были переопределены в изначальном LOTT, подключались в их `default`-мод, который они скопировали из MTG
dofile(minetest.get_modpath(minetest.get_current_modname()).."/chatcommands.lua")


local function redefinition(chatcommand, new_description)
if minetest.chatcommands[chatcommand] then
if new_description then
minetest.chatcommands[chatcommand].description = SL(new_description)
else
minetest.chatcommands[chatcommand].description = SL(minetest.chatcommands[chatcommand].description)
end
end
end

redefinition("admin")
redefinition("auth_reload")
redefinition("ban")
redefinition("clearinv")
redefinition("clearobjects")
redefinition("clearpassword")
redefinition("days")
redefinition("deleteblocks")
redefinition("emergeblocks")
redefinition("fixlight")
redefinition("give")
redefinition("giveme")
redefinition("grant")
redefinition("grantme")
redefinition("help")
redefinition("kick")
redefinition("last-login")
redefinition("me")
redefinition("mods")
redefinition("msg")
redefinition("mvol")
redefinition("privs")
redefinition("pulverize")
redefinition("remove_player")
redefinition("revoke")
redefinition("rollback")
redefinition("rollback_check", "Check who has last touched a node or near it, max <seconds> ago")
redefinition("set")
redefinition("setpassword")
redefinition("shutdown")
redefinition("spawnentity")
redefinition("status")
redefinition("svol")
redefinition("teleport")
redefinition("time")
redefinition("unban")
40 changes: 0 additions & 40 deletions mods/lord/Game/lord_base_commands/locale/lord_base_commands.en.tr

This file was deleted.

40 changes: 0 additions & 40 deletions mods/lord/Game/lord_base_commands/locale/lord_base_commands.ru.tr

This file was deleted.

40 changes: 0 additions & 40 deletions mods/lord/Game/lord_base_commands/locale/template.txt

This file was deleted.

27 changes: 0 additions & 27 deletions mods/lord/Game/lord_base_privs/init.lua

This file was deleted.

18 changes: 0 additions & 18 deletions mods/lord/Game/lord_base_privs/locale/lord_base_privs.en.tr

This file was deleted.

18 changes: 0 additions & 18 deletions mods/lord/Game/lord_base_privs/locale/lord_base_privs.ru.tr

This file was deleted.

18 changes: 0 additions & 18 deletions mods/lord/Game/lord_base_privs/locale/template.txt

This file was deleted.

2 changes: 0 additions & 2 deletions mods/lord/Game/lord_base_privs/mod.conf

This file was deleted.

0 comments on commit 2350da4

Please sign in to comment.