Bug 34801: Fix incorrect use of __() in .tt and .inc files (bug 34038 follow-up)
__() should be used in .js files, not .tt files To test, apply the patch and update a translation, e.g. fr-FR: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for JavaScript strings, in this case misc/translator/po/fr-FR-staff-prog.po - Confirm that the strings are now in the .po file for translation. You should find the lines in the commit Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
20524530c8
commit
3b190d625b
2 changed files with 2 additions and 2 deletions
|
@ -1177,7 +1177,7 @@
|
|||
if( row.creator ) {
|
||||
$("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')')
|
||||
} else {
|
||||
$("#creator").html(__("Account has been deleted"));
|
||||
$("#creator").html(_("Account has been deleted"));
|
||||
}
|
||||
$("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id);
|
||||
$("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received )
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
if (biblio.title != null && biblio.title != '') {
|
||||
title += escape_str(biblio.title);
|
||||
} else {
|
||||
title += __("No title");
|
||||
title += _("No title");
|
||||
}
|
||||
title += '</span>';
|
||||
|
||||
|
|
Loading…
Reference in a new issue