From 4699fd0c2f4757443e47efa82421daa1f695f9c9 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 26 Dec 2023 11:47:37 -0300 Subject: [PATCH] Bug 35650: (follow-up) Other cases found while editing files for the main patch, I noticed some tiny cases. Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- .../prog/en/modules/admin/additional-fields.tt | 8 ++++---- .../prog/en/modules/admin/cash_registers.tt | 2 +- .../prog/en/modules/admin/classsources.tt | 6 +++--- .../prog/en/modules/admin/credit_types.tt | 8 ++++---- .../prog/en/modules/admin/currency.tt | 10 +++++----- .../prog/en/modules/admin/debit_types.tt | 8 ++++---- .../intranet-tmpl/prog/en/modules/admin/desks.tt | 12 ++++++------ .../en/modules/admin/identity_provider_domains.tt | 2 +- .../prog/en/modules/admin/identity_providers.tt | 2 +- .../prog/en/modules/admin/ill_batch_statuses.tt | 8 ++++---- .../prog/en/modules/admin/itemtypes.tt | 12 ++++++------ .../prog/en/modules/admin/restrictions.tt | 14 +++++++------- .../prog/en/modules/admin/usage_statistics.tt | 12 ++++++------ .../prog/en/modules/tools/additional-contents.tt | 8 ++++---- .../prog/en/modules/tools/csv-profiles.tt | 12 ++++++------ .../intranet-tmpl/prog/en/modules/tools/quotes.tt | 8 ++++---- koha-tmpl/intranet-tmpl/prog/js/holds.js | 2 +- 17 files changed, 67 insertions(+), 67 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt index a569c43fc8..19c05c99cb 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt @@ -90,21 +90,21 @@ [% FOR message IN messages %] [% IF message.code == 'insert' %] [% IF message.number > 0 %] -
The field has been added
+
The field has been added.
[% ELSE %]
The field could not be added. Perhaps the name already exists?
[% END %] [% ELSIF message.code == 'update' %] [% IF message.number > 0 %] -
The field has been updated
+
The field has been updated.
[% ELSE %]
The field could not be updated. Perhaps the name already exists?
[% END %] [% ELSIF message.code == 'delete' %] [% IF message.number > 0 %] -
The field has been deleted
+
The field has been deleted.
[% ELSE %] -
The field could not be deleted. Check the log for errors.
+
The field could not be deleted. Check the logs for details.
[% END %] [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt index dc1d49acf1..123db80777 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt @@ -78,7 +78,7 @@ [% CASE 'success_on_update' %] Cash register updated successfully. [% CASE 'error_on_update' %] - An error occurred when updating this cash register. + An error occurred when updating this cash register. Check the logs for details. [% CASE 'success_on_default' %] Library default updated successfully. [% CASE 'error_on_update' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt index a43beb37ea..a8d967e7c0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt @@ -99,7 +99,7 @@
[% SWITCH m.code %] [% CASE 'error_on_update_source' %] - An error occurred when updating this classification source. + An error occurred when updating this classification source. Check the logs for details. [% CASE 'success_on_update_source' %] Classification source updated successfully. [% CASE 'error_on_insert_source' %] @@ -111,7 +111,7 @@ [% CASE 'success_on_delete_source' %] Classification source deleted successfully. [% CASE 'error_on_update_sort_rule' %] - An error occurred when updating this filing rule. + An error occurred when updating this filing rule. Check the logs for details. [% CASE 'success_on_update_sort_rule' %] Filing rule updated successfully. [% CASE 'error_on_insert_sort_rule' %] @@ -123,7 +123,7 @@ [% CASE 'success_on_delete_sort_rule' %] Filing rule deleted successfully. [% CASE 'error_on_update_split_rule' %] - An error occurred when updating this splitting rule. + An error occurred when updating this splitting rule. Check the logs for details. [% CASE 'success_on_update_split_rule' %] Splitting rule updated successfully. [% CASE 'error_on_insert_split_rule' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt index 7849c066e7..bf8ceaec6a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt @@ -62,13 +62,13 @@
[% SWITCH m.code %] [% CASE 'success_on_saving' %] - Credit type saved successfully + Credit type saved successfully. [% CASE 'error_on_saving' %] - An error occurred when saving this credit type + An error occurred when saving this credit type. [% CASE 'success_on_archive' %] - Credit type archived successfully + Credit type archived successfully. [% CASE 'success_on_restore' %] - Credit type restored successfully + Credit type restored successfully. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index efb104a1d0..a7ca07847f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -79,17 +79,17 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this currency. Perhaps it already exists + An error occurred when updating this currency. Perhaps it already exists. [% CASE 'error_on_insert' %] - An error occurred when adding this currency. The currency code might already exist + An error occurred when adding this currency. The currency code might already exist. [% CASE 'error_on_delete' %] An error occurred when deleting this currency. Check the logs for details. [% CASE 'success_on_update' %] - Currency updated successfully + Currency updated successfully. [% CASE 'success_on_insert' %] - Currency added successfully + Currency added successfully. [% CASE 'success_on_delete' %] - Currency deleted successfully + Currency deleted successfully. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt index 66766287c6..8ba8cc4077 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt @@ -61,13 +61,13 @@
[% SWITCH m.code %] [% CASE 'success_on_saving' %] - Debit type saved successfully + Debit type saved successfully. [% CASE 'error_on_saving' %] - An error occurred when saving this debit type + An error occurred when saving this debit type. Check the logs for details. [% CASE 'success_on_archive' %] - Debit type archived successfully + Debit type archived successfully. [% CASE 'success_on_restore' %] - Debit type restored successfully + Debit type restored successfully. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt index c72629441a..190ad855ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt @@ -71,19 +71,19 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this desk. Perhaps it already exists + An error occurred when updating this desk. Perhaps it already exists. [% CASE 'error_on_insert' %] - An error occurred when adding this desk. The desk ID might already exist + An error occurred when adding this desk. The desk ID might already exist. [% CASE 'error_on_delete' %] An error occurred when deleting this desk. Check the logs for details. [% CASE 'success_on_update' %] - Desk updated successfully + Desk updated successfully. [% CASE 'success_on_insert' %] - Desk added successfully + Desk added successfully. [% CASE 'success_on_delete' %] - Desk deleted successfully + Desk deleted successfully. [% CASE 'already_exists' %] - This desk already exists + This desk already exists. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt index 77b1feb30e..f7724e44f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt @@ -68,7 +68,7 @@ [% CASE 'error_on_update' %] An error occurred trying to open the identity provider domain for editing. The passed ID is invalid. [% CASE 'error_on_insert' %] - An error occurred when adding a new identity provider domain. + An error occurred when adding a new identity provider domain. Check the logs for details. [% CASE 'success_on_update' %] Identity provider domain updated successfully. [% CASE 'success_on_insert' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt index a94dc964dd..c25639a38e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt @@ -63,7 +63,7 @@ [% CASE 'error_on_update' %] An error occurred trying to open the identity provider for editing. The passed ID is invalid. [% CASE 'error_on_insert' %] - An error occurred when adding a new identity provider. + An error occurred when adding a new identity provider. Check the logs for details. [% CASE 'success_on_update' %] Identity provider updated successfully. [% CASE 'success_on_insert' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt index 66f15e0d0b..8f9406c44f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt @@ -53,13 +53,13 @@
[% SWITCH m.code %] [% CASE 'success_on_saving' %] - Batch status saved successfully + Batch status saved successfully. [% CASE 'success_on_delete' %] - Batch status deleted successfully + Batch status deleted successfully. [% CASE 'error_on_saving' %] - An error occurred when saving this batch status + An error occurred when saving this batch status. Check the logs for details. [% CASE 'error_on_delete' %] - An error occurred when deleting this batch status + An error occurred when deleting this batch status. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index 97fdc778f3..97f463c1cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -120,19 +120,19 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this item type. Perhaps the value already exists + An error occurred when updating this item type. Perhaps the value already exists. [% CASE 'error_on_insert' %] - An error occurred when inserting this item type. Perhaps the value already exists + An error occurred when inserting this item type. Perhaps the value already exists. [% CASE 'error_on_delete' %] An error occurred when deleting this item type. Check the logs for details. [% CASE 'success_on_update' %] - Item type updated successfully + Item type updated successfully. [% CASE 'success_on_insert' %] - Item type inserted successfully + Item type inserted successfully. [% CASE 'success_on_delete' %] - Item type deleted successfully + Item type deleted successfully. [% CASE 'already_exists' %] - This item type already exists + This item type already exists. [% CASE 'cannot_be_deleted' %] Cannot delete this item type.

This record is in use. Deletion is not possible.

[% CASE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt index ff3ee00fab..4009efc8df 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt @@ -72,19 +72,19 @@
[% SWITCH m.code %] [% CASE 'add_success' %] - Restriction type added + Restriction type added. [% CASE 'update_success' %] - Restriction type updated + Restriction type updated. [% CASE 'duplicate_display_text' %] - Another restriction type already has this label + Another restriction type already has this label. [% CASE 'duplicate_code' %] - Another restriction type already has this code + Another restriction type already has this code. [% CASE 'delete_success' %] - Restriction type deleted + Restriction type deleted. [% CASE 'delete_default' %] - Cannot delete the default restriction type + Cannot delete the default restriction type. [% CASE 'delete_system' %] - Cannot delete a system restriction type + Cannot delete a system restriction type. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt index 960bea41cc..ad72379c82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt @@ -40,19 +40,19 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this patron category. Perhaps it already exists + An error occurred when updating this patron category. Perhaps it already exists. [% CASE 'error_on_insert' %] - An error occurred when inserting this patron category. The patron category might already exist + An error occurred when inserting this patron category. The patron category might already exist. [% CASE 'error_on_delete' %] An error occurred when deleting this patron category. Check the logs for details. [% CASE 'success_on_update' %] - Patron category updated successfully + Patron category updated successfully. [% CASE 'success_on_insert' %] - Patron category inserted successfully + Patron category inserted successfully. [% CASE 'success_on_delete' %] - Patron category deleted successfully + Patron category deleted successfully. [% CASE 'already_exists' %] - This patron category already exists + This patron category already exists. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 2d56f7f689..1461b74492 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -127,17 +127,17 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this content. Perhaps it already exists + An error occurred when updating this content. Perhaps it already exists. [% CASE 'error_on_insert' %] An error occurred when adding this content. Check the logs for details. [% CASE 'error_on_delete' %] An error occurred when deleting this content. Check the logs for details. [% CASE 'success_on_update' %] - Content updated successfully + Content updated successfully. [% CASE 'success_on_insert' %] - Content added successfully + Content added successfully. [% CASE 'success_on_delete' %] - Content deleted successfully + Content deleted successfully. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt index 64f2984d52..5949daac38 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt @@ -66,19 +66,19 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this CSV profile. Perhaps it already exists + An error occurred when updating this CSV profile. Perhaps it already exists. [% CASE 'error_on_insert' %] - An error occurred when adding this CSV profile + An error occurred when adding this CSV profile. [% CASE 'error_on_delete' %] An error occurred when deleting this CSV profile. Check the logs for details. [% CASE 'success_on_update' %] - CSV profile updated successfully + CSV profile updated successfully. [% CASE 'success_on_insert' %] - CSV profile added successfully + CSV profile added successfully. [% CASE 'success_on_delete' %] - CSV profile deleted successfully + CSV profile deleted successfully. [% CASE 'already_exists' %] - This CSV profile already exists + This CSV profile already exists. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt index 2cafb7ed69..fb0988eb90 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt @@ -56,13 +56,13 @@
[% SWITCH m.code %] [% CASE 'error_on_update' %] - An error occurred when updating this quote. Perhaps it already exists + An error occurred when updating this quote. Perhaps it already exists. [% CASE 'error_on_insert' %] - An error occurred when adding this quote + An error occurred when adding this quote. Check the logs for details. [% CASE 'success_on_update' %] - Quote updated successfully + Quote updated successfully. [% CASE 'success_on_insert' %] - Quote added successfully + Quote added successfully. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 460fa4dec0..dc8cd8a87b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -433,7 +433,7 @@ $(document).ready(function() { holdsTable.api().ajax.reload(); }).error(function (jqXHR, textStatus, errorThrown) { if (jqXHR.status === 404) { - alert(__("Unable to suspend, hold not found")); + alert(__("Unable to suspend, hold not found.")); } else { alert(__("Your request could not be processed. Check the logs for details.")); -- 2.39.5