From bad7c65e1a7d420a80bf48e6e35ed49beebc45fe Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop 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 | 8 +++++--- .../js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue | 4 ++-- .../js/vue/components/ERM/EHoldingsLocalTitlesList.vue | 4 ++-- 3 files changed, 9 insertions(+), 7 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..6775c4c5fb 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( @@ -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 ? this.$__("Yes") : this.$__("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..7345d1e1cf 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( + this.$__("ISBN (Print): %s").format( print_identifier ) ) : "") + (online_identifier ? escape_str( - _("ISBN (Online): %s").format( + this.$__("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..bdfa048dd0 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( + this.$__("ISBN (Print): %s").format( print_identifier ) ) : "") + (online_identifier ? escape_str( - _("ISBN (Online): %s").format( + this.$__("ISBN (Online): %s").format( online_identifier ) ) -- 2.37.1 (Apple Git-137.1)