Remove MTG game translations

This commit is contained in:
Panquesito7 2019-10-06 19:07:52 -05:00
parent e5c7cd53c4
commit 627705161f
5 changed files with 1 additions and 129 deletions

View File

@ -327,14 +327,6 @@ enhanced_builtin_commands.override_privilege("debug", {
give_to_admin = true,
})
-- Minetest Game privileges
if core.get_modpath("sethome") then
enhanced_builtin_commands.override_privilege("home", {
description = S("Can use /sethome and /home"),
give_to_singleplayer = false,
})
end
-- When player joins/leaves, send a translated message
function core.send_join_message(player_name)
if not core.is_singleplayer() then

View File

@ -862,59 +862,4 @@ else
description = S("Get help for commands or list privileges"),
func = enhanced_builtin_commands.do_help_cmd,
})
end
-- Minetest Game commands
if core.get_modpath("sethome") then
core.override_chatcommand("home", {
description = S("Teleport you to your home point"),
privs = {home = true},
func = function(name)
if sethome.go(name) then
return true, S("Teleported to home!")
end
return false, S("Set a home using /sethome")
end,
})
core.override_chatcommand("sethome", {
description = S("Set your home point"),
privs = {home = true},
func = function(name)
name = name or "" -- fallback to blank name if nil
local player = core.get_player_by_name(name)
if player and sethome.set(name, player:get_pos()) then
return true, S("Home set!")
end
return false, S("Player not found!")
end,
})
end
if core.get_modpath("game_commands") then
core.override_chatcommand("killme", {
description = S("Kill yourself to respawn"),
func = function(name)
local player = core.get_player_by_name(name)
if player then
if core.settings:get_bool("enable_damage") then
player:set_hp(0)
return true
else
for _, callback in pairs(core.registered_on_respawnplayers) do
if callback(player) then
return true
end
end
-- There doesn't seem to be a way to get a default spawn pos
-- from the lua API
return false, S("No static_spawnpoint defined")
end
else
-- Show error message if used when not logged in, eg: from IRC mod
return false, S("You need to be online to be killed!")
end
end
})
end

View File

@ -172,34 +172,6 @@ msgstr "Puede usar la funcionalidad de reversión"
msgid "Allows enabling various debug options that may affect gameplay"
msgstr "Permite habilitar varias opciones de depuración que pueden afectar el juego"
#: functions.lua
msgid "Can use /sethome and /home"
msgstr "Puede usar /sethome y /home"
#: functions.lua
msgid "Teleport you to your home point"
msgstr "Teletransportarse a tu posición de origen."
#: functions.lua
msgid "Teleported to home!"
msgstr "¡Teletransportado a casa!"
#: functions.lua
msgid "Set a home using /sethome"
msgstr "Establecer una casa usando /sethome"
#: functions.lua
msgid "Set your home point"
msgstr "Establece tu punto de origen."
#: functions.lua
msgid "Home set!"
msgstr "¡Casa establecida!"
#: functions.lua
msgid "Player not found!"
msgstr "¡Jugador no encontrado!"
#: functions.lua
msgid "*** @1 joined the game."
msgstr "*** @1 se unió al juego."
@ -812,10 +784,6 @@ msgstr "[all | privs | <comando>]"
msgid "Get help for commands or list privileges"
msgstr "Obtenga ayuda para todos los comandos disponbiles o privilegios de la lista."
#: init.lua
msgid "Kill yourself to respawn"
msgstr "Destruirse para reaparecer."
#: functions.lua
msgid "No static_spawnpoint defined"
msgstr "'static_spawnpoint' no definido."

View File

@ -172,34 +172,6 @@ msgstr ""
msgid "Allows enabling various debug options that may affect gameplay"
msgstr ""
#: functions.lua
msgid "Can use /sethome and /home"
msgstr ""
#: functions.lua
msgid "Teleport you to your home point"
msgstr ""
#: functions.lua
msgid "Teleported to home!"
msgstr ""
#: functions.lua
msgid "Set a home using /sethome"
msgstr ""
#: functions.lua
msgid "Set your home point"
msgstr ""
#: functions.lua
msgid "Home set!"
msgstr ""
#: functions.lua
msgid "Player not found!"
msgstr ""
#: functions.lua
msgid "*** @1 joined the game."
msgstr ""
@ -812,10 +784,6 @@ msgstr ""
msgid "Get help for commands or list privileges"
msgstr ""
#: init.lua
msgid "Kill yourself to respawn"
msgstr ""
#: functions.lua
msgid "No static_spawnpoint defined"
msgstr ""

View File

@ -1,4 +1,3 @@
name = enhanced_builtin_commands
depends = intllib
optional_depends = sethome, game_commands
description = Adds support for intllib for the builtin commands.
description = Adds support for intllib for the builtin commands.