Bug 21029: Make "Suspend until:" translatable

The label was part of the holds.js file. As .js files are never
translatable it needs to be moved to template level.

Test plan:
- Place a hold on an item
- Go to the patron account
- Click on the Suspend button on the holds tab
- View the modal, the label before the date field "Suspend until:" is
now translatable.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2018-07-04 14:55:14 -03:00 committed by Martin Renvoize
parent a80f02df55
commit ad004d366b
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
var CANCEL = _("Cancel");
var RESUME = _("Resume");
var SUSPEND = _("Suspend");
var SUSPEND_UNTIL = _("Suspend until:");
var SUSPEND_HOLD_ON = _("Suspend hold on");
var CLEAR_DATE_TO_SUSPEND_INDEFINITELY = _("Clear date to suspend indefinitely");
var SUSPEND_HOLD_ERROR_DATE = _("Unable to suspend hold, invalid date");

View File

@ -241,7 +241,7 @@ $(document).ready(function() {
<div class='modal-body'>\
<input type='hidden' id='suspend-modal-reserve_id' name='reserve_id' />\
\
<label for='suspend-modal-until'>Suspend until:</label>\
<label for='suspend-modal-until'>" + SUSPEND_UNTIL + "</label>\
<input name='suspend_until' id='suspend-modal-until' class='suspend-until' size='10' />\
\
<p/><a class='btn btn-link' id='suspend-modal-clear-date' >" + CLEAR_DATE_TO_SUSPEND_INDEFINITELY + "</a></p>\