From 2947cda0cb39a1fecdc338f589d5b3d53a8402c2 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.$__() Signed-off-by: Jonathan Druart --- .../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 20b9b9a82d1..2d3dabd5083 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 ? __("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 f988a920b1f..aee16c03733 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 75211d35694..c5b5f14d17f 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.25.1