Bug 38450: Fix some translation pickups
_("This %s is picked").format(foo)
_("This %s is NOT picked".format(bar))
Both constructs are valid, but our translation script does not pick the
second one.
I found very few occurrences (using `git grep '.".format('`) that are
displayed on the UI. I don't have the time right now to deep dive into
the translation script to fix this problem, easier to adjust the
occurrences.
How to prevent that in the future however? We could raise a warning from
the QA script.
Test plan:
Do not apply this patch
Generate the strings (`gulp po:update --lang LANG`)
cd misc/translator/po && git commit -a -m"wip"
Apply this patch, regenerate the strings
cd misc/translator/po && git diff
Notice the changes, you should see new translations added to the .po
files.
Ideally translate them, install the templates and confirm that the new
strings are translated on the UI.
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
75d9a38805
commit
be6ebd4b9a
|
|
@ -526,9 +526,9 @@
|
|||
if ( row.first_hold ) {
|
||||
if ( row.first_hold.waiting_date ) {
|
||||
if ( row.first_hold.desk ) {
|
||||
nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s, %s since %s.".format(row.first_hold._strings.pickup_library_id.str, row.first_hold.desk.desk_name, $date(row.first_hold.waiting_date))));
|
||||
nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s, %s since %s.").format(row.first_hold._strings.pickup_library_id.str, row.first_hold.desk.desk_name, $date(row.first_hold.waiting_date)));
|
||||
} else {
|
||||
nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s since %s.".format(row.first_hold._strings.pickup_library_id.str, $date(row.first_hold.waiting_date))));
|
||||
nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s since %s.").format(row.first_hold._strings.pickup_library_id.str, $date(row.first_hold.waiting_date)));
|
||||
}
|
||||
[% IF Koha.Preference('canreservefromotherbranches') %]
|
||||
if ( row.first_hold.waiting_date || row.first_hold.priority == 1 ) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
}
|
||||
|
||||
if ( name.replace(' ', '').length == 0 ) {
|
||||
return _("A patron from %s".format(patron.library.name));
|
||||
return _("A patron from %s").format(patron.library.name);
|
||||
}
|
||||
|
||||
if ( config && config.hide_patron_name ) {
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ function LoadIssuesTable() {
|
|||
} else if ( oObj.can_renew_error == "on_reserve" ) {
|
||||
return "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + __("On hold") + "</a>";
|
||||
} else if ( oObj.materials ) {
|
||||
return __("Confirm (%s)".format(oObj.materials.escapeHtml()));
|
||||
return __("Confirm (%s)").format(oObj.materials.escapeHtml());
|
||||
} else {
|
||||
return "<input type='checkbox' class='checkin' id='checkin_" + oObj.itemnumber + "' name='checkin' value='" + oObj.itemnumber +"'></input>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ $(document).ready(function () {
|
|||
var search_field_name = $(line).find('input[data-id="search_field_name"]').val();
|
||||
let already_exists = dt.data().filter((row, idx) => row[0]['@data-order'] === search_field_name);
|
||||
if ( already_exists.length ) {
|
||||
alert(__("Search field '%s' already exists".format(search_field_name)));
|
||||
alert(__("Search field '%s' already exists").format(search_field_name));
|
||||
return;
|
||||
}
|
||||
if (search_field_name.length > 0) {
|
||||
|
|
@ -171,7 +171,7 @@ $(document).ready(function () {
|
|||
let dt_data = dt.data();
|
||||
let already_exists = dt_data.filter((row, idx) => row[1] === search_field_name);
|
||||
if ( already_exists.length ) {
|
||||
alert(__("Facet '%s' already exists".format(search_field_name)));
|
||||
alert(__("Facet '%s' already exists").format(search_field_name));
|
||||
return;
|
||||
}
|
||||
if (search_field_name.length > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue