Bug 13861: \n in confirmation message on closing a budget
\n in strings doesn't translate well, so we move it outside
the translated string.
To test:
- create at least 2 budgets
- close one of the budgets (moving orders from one budget to the other)
- after selecting the budget to move your orders to, save
- the confirmation message shown should read:
You have chosen to move all unreceived orders from 'budget 1' to 'budget 2'.
This action cannot be reversed. Do you wish to continue?
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit b4a9b23ab7)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
28fbce8807
commit
8d3c58171c
|
|
@ -130,7 +130,7 @@
|
|||
var budget_from = "[% budget_period_description %]";
|
||||
var budget_to = $("#to_budget_period_id").find("option:selected").html();
|
||||
var alert_message = _("You have chosen to move all unreceived orders from '%s' to '%s'.").format(budget_from, budget_to);
|
||||
alert_message += _("\nThis action cannot be reversed. Do you wish to continue?");
|
||||
alert_message += "\n" + _("This action cannot be reversed. Do you wish to continue?");
|
||||
return confirm ( alert_message );
|
||||
});
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue