Revert "Translation at join and leave removed."

This reverts commit 74621bcdab5eb6ab6615a568251bde28ce3f564d.
This commit is contained in:
acmgit 2022-02-08 21:44:23 +01:00
parent 32eb896bbb
commit 3a015e943d
3 changed files with 17 additions and 9 deletions

View File

@ -22,24 +22,22 @@ end) -- register_on_chatmessage()
minetest.register_on_joinplayer(function(player)
local playername = player:get_player_name()
--[[
local message = "joins the World."
playername = playername or "unknown"
local message = S("joins the World") .. "."
playername = playername or S("unknown")
sc.send_2_irc(playername, message)
]]--
sc.player[playername] = nil -- the public Chat
sc.public[playername] = nil
end) -- register_on_joinplayer()
minetest.register_on_leaveplayer(function(player)
local playername = player:get_player_name() or "unknown"
local line = "leaves the World."
sc.send_2_irc(playername, "*** " .. line .. ".")
local playername = player:get_player_name() or S("unknown")
local line = S("leaves the World") .. "."
sc.player[playername] = nil
sc.public[playername] = nil
sc.send_2_irc(playername, "*** " .. line .. ".")
end) -- minetest.register_on_leaveplayer

View File

@ -164,6 +164,11 @@ Show's the room, where <name> is.=Zeigt den Raum, wo sich <Name> aufhält.
] is in Channel {=] ist im Kanal {
] is in the public Chat.=] ist im öffentlichem Chat.
### core.lua ###
joins the World=betritt die Welt.
leaves the World=verlässt die Welt.
### init.lua ###
Can manage Chatchannels.=Kann Chatkanäle verwalten.

View File

@ -164,6 +164,11 @@ Show's the room, where <name> is.=
] is in Channel {=
] is in the public Chat.=
### core.lua ###
joins the World=
leaves the World=
### init.lua ###
Can manage Chatchannels.=