Bugzilla – Attachment 155888 Details for
Bug 34804
Translation fixes - ERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34804: Fix translations
Bug-34804-Fix-translations.patch (text/plain), 4.79 KB, created by
Matt Blenkinsop
on 2023-09-19 10:25:11 UTC
(
hide
)
Description:
Bug 34804: Fix translations
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-09-19 10:25:11 UTC
Size:
4.79 KB
patch
obsolete
>From 8ab8b6282fbe20f10799c2af2bb5dc425f53121c Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Fri, 15 Sep 2023 15:51:34 +0000 >Subject: [PATCH] Bug 34804: Fix translations > >This patch fixes some translations in the ERM module > >Translations should be wrapped in this.$__() >--- > .../prog/js/vue/components/ERM/AgreementsList.vue | 12 +++++++----- > .../vue/components/ERM/EHoldingsEBSCOTitlesList.vue | 4 ++-- > .../vue/components/ERM/EHoldingsLocalTitlesList.vue | 4 ++-- > 3 files changed, 11 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >index 20b9b9a82d..e79b7f4aa3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >@@ -119,8 +119,8 @@ export default { > 4: () => > this.map_av_dt_filter("av_agreement_closure_reasons"), > 5: [ >- { _id: 0, _str: _("No") }, >- { _id: 1, _str: _("Yes") }, >+ { _id: 0, _str: this.$__("No") }, >+ { _id: 1, _str: this.$__("Yes") }, > ], > 6: () => > this.map_av_dt_filter( >@@ -194,8 +194,8 @@ export default { > "Are you sure you want to remove this agreement?" > ), > message: agreement.name, >- accept_label: this.$__("Yes, delete"), >- cancel_label: this.$__("No, do not delete"), >+ accept_label: __("Yes, delete"), >+ cancel_label: __("No, do not delete"), > }, > () => { > const client = APIClient.erm >@@ -317,7 +317,9 @@ export default { > searchable: true, > orderable: true, > render: function (data, type, row, meta) { >- return escape_str(row.is_perpetual ? _("Yes") : _("No")) >+ return escape_str( >+ row.is_perpetual ? __("Yes") : __("No") >+ ) > }, > }, > { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue >index f988a920b1..aee16c0373 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue >@@ -270,14 +270,14 @@ export default { > return ( > (print_identifier > ? escape_str( >- _("ISBN (Print): %s").format( >+ __("ISBN (Print): %s").format( > print_identifier > ) > ) > : "") + > (online_identifier > ? escape_str( >- _("ISBN (Online): %s").format( >+ __("ISBN (Online): %s").format( > online_identifier > ) > ) >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >index 75211d3569..c5b5f14d17 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >@@ -221,14 +221,14 @@ export default { > return ( > (print_identifier > ? escape_str( >- _("ISBN (Print): %s").format( >+ __("ISBN (Print): %s").format( > print_identifier > ) > ) > : "") + > (online_identifier > ? escape_str( >- _("ISBN (Online): %s").format( >+ __("ISBN (Online): %s").format( > online_identifier > ) > ) >-- >2.37.1 (Apple Git-137.1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34804
:
155695
|
155888
|
155893
|
155894
|
155908