Skip to content

Commit

Permalink
Remove translation chars from messages sent through ctf_modebase.anno…
Browse files Browse the repository at this point in the history
…unce()
  • Loading branch information
LoneWolfHT committed Jan 19, 2025
1 parent 116e657 commit 2474469
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/bounties.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ctf_modebase.bounties.claim(player, killer)
local rewards = bounties[pteam].rewards
local bounty_kill_text = S("[Bounty] @1 killed @2 and got @3", killer, player, get_reward_str(rewards))
minetest.chat_send_all(minetest.colorize(CHAT_COLOR, bounty_kill_text))
ctf_modebase.announce(bounty_kill_text)
ctf_modebase.announce(minetest.get_translated_string("en", bounty_kill_text))

bounties[pteam] = nil
return rewards
Expand Down
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/build_timer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function ctf_modebase.build_timer.finish()
hud:remove_all()
local text = S("Build time is over!")
minetest.chat_send_all(text)
ctf_modebase.announce(text)
ctf_modebase.announce(minetest.get_translated_string("en", text))

ctf_modebase.on_match_start()

Expand Down
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/match.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function ctf_modebase.start_match_after_vote()
minetest.settings:set("time_speed", map.time_speed * 72)

ctf_map.announce_map(map)
ctf_modebase.announce(S("New match: @1 map by @2, @3 mode",
ctf_modebase.announce(("New match: %s map by %s, %s mode"):format(
map.name,
map.author,
HumanReadable(ctf_modebase.current_mode))
Expand Down
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/ranking_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ ctf_core.register_chatcommand_alias("donate", "d", {
local donate_text = S("@1 donated @2 score to @3@4", name, score, names, dmessage)

minetest.chat_send_all(minetest.colorize("#00EEFF", donate_text))
ctf_modebase.announce(donate_text)
ctf_modebase.announce(minetest.get_translated_string("en", donate_text))
return true
end
})
Expand Down

0 comments on commit 2474469

Please sign in to comment.