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:
Katrin Fischer 2015-03-18 01:46:18 +01:00 committed by Chris Cormack
parent 28fbce8807
commit 8d3c58171c
1 changed files with 1 additions and 1 deletions

View File

@ -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 %]