Bug 38492: Update occurrences of _() to __()
Test plan, ktd: 1) Generate translation files $ gulp po:update --lang de-DE 2) Verify that strings using _() do not exist on the pot file: $ cat -n misc/translator/Koha-messages-js.pot | grep "Copied!" $ cat -n misc/translator/Koha-messages-js.pot | grep "Form not submitted because of the following problem" $ cat -n misc/translator/Koha-messages-js.pot | grep "No matches found" 3) Apply patch. Repeat test plan. Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
d2a6c4673b
commit
459be64976
|
|
@ -7,11 +7,11 @@ function addItem( node, unique_item_fields ) {
|
|||
//We need to verify the item form before saving
|
||||
var empty_item_mandatory = CheckMandatorySubfields(item_form);
|
||||
if (empty_item_mandatory > 0) {
|
||||
var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
|
||||
var _alertString= __("Form not submitted because of the following problem(s)")+"\n";
|
||||
|
||||
_alertString +="-------------------------------------------------------------------\n\n";
|
||||
_alertString +=
|
||||
"\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
|
||||
"\n- " + __("%s item mandatory fields empty").format(empty_item_mandatory);
|
||||
alert(_alertString);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,12 +120,12 @@ $(document).ready(function () {
|
|||
|
||||
let blocked_actions_select = $("select#block_expired[multiple='multiple']");
|
||||
blocked_actions_select.multipleSelect({
|
||||
placeholder: _("Please select ..."),
|
||||
placeholder: __("Please select ..."),
|
||||
selectAll: false,
|
||||
hideOptgroupCheckboxes: true,
|
||||
allSelected: _("All selected"),
|
||||
countSelected: _("# of % selected"),
|
||||
noMatchesFound: _("No matches found"),
|
||||
allSelected: __("All selected"),
|
||||
countSelected: __("# of % selected"),
|
||||
noMatchesFound: __("No matches found"),
|
||||
onClick: function (view) {
|
||||
if (
|
||||
view.value == "follow_syspref_BlockExpiredPatronOpacActions" &&
|
||||
|
|
|
|||
|
|
@ -793,7 +793,7 @@ $(document).ready(function() {
|
|||
// Prevent form submit
|
||||
return false;
|
||||
} else {
|
||||
alert(_("There are no items to be renewed."));
|
||||
alert(__("There are no items to be renewed."));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -714,7 +714,7 @@ function _dt_buttons(params){
|
|||
let url = window.location.origin + window.location.pathname + '?' + searchParams.toString() + window.location.hash;
|
||||
if( navigator.clipboard && navigator.clipboard.writeText){
|
||||
navigator.clipboard.writeText( url );
|
||||
$(node).tooltip({trigger: 'manual', title: _("Copied!")}).tooltip('show');
|
||||
$(node).tooltip({trigger: 'manual', title: __("Copied!")}).tooltip('show');
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,14 +95,14 @@ $(document).ready(function() {
|
|||
|
||||
if ( $('#clubs_panel').length ) {
|
||||
$('#clubs-tab').on('click', function() {
|
||||
$('#clubs_panel').text(_("Loading..."));
|
||||
$('#clubs_panel').text(__("Loading..."));
|
||||
$('#clubs_panel').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=' + borrowernumber );
|
||||
});
|
||||
}
|
||||
|
||||
if ( $('#pat_lists_panel').length ) {
|
||||
$('#pat_lists-tab').on('click', function() {
|
||||
$('#pat_lists_panel').text(_("Loading..."));
|
||||
$('#pat_lists_panel').text(__("Loading..."));
|
||||
$('#pat_lists_panel').load('/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=' + borrowernumber );
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -211,12 +211,12 @@ function removeLocalImage(imagenumber) {
|
|||
location.href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=" + biblionumber;
|
||||
} else {
|
||||
thumbnail.html( copy );
|
||||
alert(_("An error occurred on deleting this image"));
|
||||
alert(__("An error occurred on deleting this image"));
|
||||
}
|
||||
},
|
||||
error => {
|
||||
thumbnail.html( copy );
|
||||
alert(_("An error occurred on deleting this image"));
|
||||
alert(__("An error occurred on deleting this image"));
|
||||
console.warn("Something wrong happened: %s".format(error));
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue