Bug 19029: (follow-up) Implemented .format() to ease translation

Sponosred by: Catalyst IT

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Alex Buckley 2017-10-03 08:33:37 +13:00 committed by Jonathan Druart
parent 971591d4ee
commit 83f97e662d

View file

@ -39,7 +39,7 @@ $(document).ready(function() {
var selected_library = library_dropdown.options[library_dropdown.selectedIndex].value;
if (selected_library === "*") {
var to_library = $("#tobranch option:selected").text();
var MSG_CONFIRM_CLONE = _("Are you sure you want to clone this standard rule to " + to_library + " library? This will override the existing rules in " + to_library + " library.");
var MSG_CONFIRM_CLONE = _("Are you sure you want to clone this standard rule to %s library? This will override the existing rules in this library.").format(to_library);
return confirmClone(MSG_CONFIRM_CLONE);
}
});