From 9d6adeff5208a4d02867a9782234f0d0080f5c72 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 7 Apr 2022 19:52:01 +0300 Subject: [PATCH 41/41] Pluralize message about gold lost/captured when inciting a city See osdn #44193 Signed-off-by: Marko Lindqvist --- server/diplomats.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/server/diplomats.c b/server/diplomats.c index 4430a29379..36ea16f35e 100644 --- a/server/diplomats.c +++ b/server/diplomats.c @@ -1043,20 +1043,23 @@ bool diplomat_may_lose_gold(struct player *dec_player, struct player *inc_player } /* Roll the dice. */ - if (fc_rand (100) < game.server.incite_gold_loss_chance) { + if (fc_rand(100) < game.server.incite_gold_loss_chance) { notify_player(dec_player, NULL, E_MY_DIPLOMAT_FAILED, ftc_server, - _("Your %d gold prepared to incite the revolt was lost!"), - revolt_gold); + PL_("Your %d gold prepared to incite the revolt was lost!", + "Your %d gold prepared to incite the revolt was lost!", + revolt_gold), revolt_gold); dec_player->economic.gold -= revolt_gold; /* Lost money was pocketed by fraudulent executioners? * Or returned to local authority? * Roll the dice twice. */ - if (fc_rand (100) < game.server.incite_gold_capt_chance) { + if (fc_rand(100) < game.server.incite_gold_capt_chance) { inc_player->economic.gold += revolt_gold; notify_player(inc_player, NULL, E_ENEMY_DIPLOMAT_FAILED, ftc_server, - _("Your security service captured %d gold prepared " - "to incite your town!"), revolt_gold); + PL_("Your security service captured %d gold prepared " + "to incite your town!", + "Your security service captured %d gold prepared " + "to incite your town!", revolt_gold), revolt_gold); } /* Update clients. */ send_player_all_c(dec_player, NULL); -- 2.35.1