Bug 34479: Fix string for translatability

When moved from .tt to .js we need to convert the single
underscore into a double underscore.

Also uses format() to better deal with the variable.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 066e349561)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Katrin Fischer 2024-01-16 11:00:30 +00:00 committed by Fridolin Somers
parent 8ea3e73edc
commit 265826ea32

View file

@ -18,7 +18,7 @@ function showPatronSelections(number) {
if (number === 0) {
$("#table_search_selections").hide()
} else {
$("#table_search_selections").show().find("span").text(_("Patrons selected: " + number));
$("#table_search_selections").show().find("span").text(__("Patrons selected: %s".format(number)));
}
}