Bug 9141 - Untranslatable strings on "pay an amount..." page
Moving text of an error message from the script into the template. To test, submit an amount which is greater than the amount due. You should see an error message displayed correctly with a properly-formatted currency amount. Signed-off-by: Marc Veron <veron@veron.ch> Patch behaves as expected. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Liz Rea <liz@catalyst.net.nz>
This commit is contained in:
parent
c0e60a9079
commit
cd64f884d0
|
|
@ -84,9 +84,9 @@ function moneyFormat(textObj) {
|
|||
</li>
|
||||
</ul>
|
||||
<div class="tabs-container">
|
||||
[% IF ( error ) %]
|
||||
[% IF ( error_over ) %]
|
||||
<div id="error_message" class="dialog alert">
|
||||
[% error %]
|
||||
You must pay a value less than or equal to [% total_due | format('%.2f') %].
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
|
|
|||
|
|
@ -95,8 +95,8 @@ if ( $individual || $writeoff ) {
|
|||
if ( $total_paid and $total_paid ne '0.00' ) {
|
||||
if ( $total_paid < 0 or $total_paid > $total_due ) {
|
||||
$template->param(
|
||||
error => sprintf( 'You must pay a value less than or equal to %f.2',
|
||||
$total_due )
|
||||
error_over => 1,
|
||||
total_due => $total_due
|
||||
);
|
||||
} else {
|
||||
if ($individual) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue