Don't translate IRC announcements and messages. This doesn't work.

This commit is contained in:
Auke Kok 2019-09-14 22:24:36 -07:00
parent bf4724938a
commit c2e278898d

View File

@ -840,8 +840,8 @@ function callback.boxes_create(player, fields, context)
local id = context.box.id local id = context.box.id
if is_admin or (box_get_status(id) == db.STATUS_EDITING and is_builder(id)) then if is_admin or (box_get_status(id) == db.STATUS_EDITING and is_builder(id)) then
minetest.chat_send_player(name, S("Submitting box @1", tostring(id))) minetest.chat_send_player(name, S("Submitting box @1", tostring(id)))
announce.all(S("@1 submits box @2", name, tostring(id))) announce.all(name .. " submits box " .. tostring(id))
announce.admins("@1 submits box @2", name, tostring(id)) announce.admins(name .. " submits box " .. tostring(id))
box_set_status(id, db.STATUS_SUBMITTED) box_set_status(id, db.STATUS_SUBMITTED)
end end
return true return true
@ -849,8 +849,8 @@ function callback.boxes_create(player, fields, context)
local id = context.box.id local id = context.box.id
if is_admin and box_get_status(id) == db.STATUS_SUBMITTED then if is_admin and box_get_status(id) == db.STATUS_SUBMITTED then
minetest.chat_send_player(name, S("Accepting box @1" .. tostring(id))) minetest.chat_send_player(name, S("Accepting box @1" .. tostring(id)))
announce.all(S("@1 accepts box @2!", name, tostring(id))) announce.all(name .. " accepts box " .. tostring(id) .. "!")
announce.admins(S("@1 accepts box @2!", name, tostring(id))) announce.admins(name .. " accepts box " .. tostring(id) .. "!")
box_set_status(id, db.STATUS_ACCEPTED) box_set_status(id, db.STATUS_ACCEPTED)
-- grant perks to box builder -- grant perks to box builder
grant_perks(context.box.id, context.boxes) grant_perks(context.box.id, context.boxes)
@ -860,8 +860,8 @@ function callback.boxes_create(player, fields, context)
local id = context.box.id local id = context.box.id
if is_builder(id) and box_get_status(id) == db.STATUS_SUBMITTED then if is_builder(id) and box_get_status(id) == db.STATUS_SUBMITTED then
minetest.chat_send_player(name, S("Retracted box @1", tostring(id))) minetest.chat_send_player(name, S("Retracted box @1", tostring(id)))
announce.all(S("@1 retracts box @2", name, tostring(id))) announce.all(name .. " retracts box " .. tostring(id))
announce.admins(S("@1 retracts box @2", name, tostring(id))) announce.admins(name .. " retracts box " .. tostring(id))
box_set_status(id, db.STATUS_EDITING) box_set_status(id, db.STATUS_EDITING)
end end
return true return true
@ -869,8 +869,8 @@ function callback.boxes_create(player, fields, context)
local id = context.box.id local id = context.box.id
if is_admin and box_get_status(id) == db.STATUS_SUBMITTED then if is_admin and box_get_status(id) == db.STATUS_SUBMITTED then
minetest.chat_send_player(name, S("Rejecting box @1", tostring(id))) minetest.chat_send_player(name, S("Rejecting box @1", tostring(id)))
announce.all(S("@1 rejects box @2", name, tostring(id))) announce.all(name .. " rejects box " .. tostring(id))
announce.admins(S("@1 rejects box @2", name, tostring(id))) announce.admins(name .. " rejects box " .. tostring(id))
box_set_status(id, db.STATUS_EDITING) box_set_status(id, db.STATUS_EDITING)
end end
return true return true