From 1ba4c8b129b7bee703f8f3eaf2f027b3e235c179 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 5 Apr 2023 14:02:39 +0000 Subject: [PATCH] Bug 33417: Fix translation in toolbar This commit allows the string to be translated - tested using fr-FR and a dummy string in the .po file Test plan as above Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 62b2609e86fea4048386437d4aa856a49c8b5935) Signed-off-by: Martin Renvoize --- .../prog/js/vue/components/ERM/AgreementsList.vue | 2 +- .../prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue | 2 +- .../prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue | 4 ++-- .../intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue | 2 +- koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue | 2 +- 5 files changed, 6 insertions(+), 6 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 3a7b5d3251..7b523be0fe 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 @@ -153,7 +153,7 @@ export default { toolbar_options: [ { to: "AgreementsFormAdd", - button_title: "New agreement", + button_title: this.$__("New agreement"), }, ], } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue index e9c805ecff..1999556b0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue @@ -101,7 +101,7 @@ export default { toolbar_options: [ { to: "EHoldingsLocalPackagesFormAdd", - button_title: "New package", + button_title: this.$__("New package"), }, ], } 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 13fba1793d..026ea0434e 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 @@ -93,11 +93,11 @@ export default { toolbar_options: [ { to: "EHoldingsLocalTitlesFormAdd", - button_title: "New title", + button_title: this.$__("New title"), }, { to: "EHoldingsLocalTitlesFormImport", - button_title: "Import from list", + button_title: this.$__("Import from list"), }, ], } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue index bce7a1e3c7..dfdb767612 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue @@ -53,7 +53,7 @@ export default { toolbar_options: [ { to: "LicensesFormAdd", - button_title: "New license", + button_title: this.$__("New license"), }, ], tableOptions: { diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue index 7a68ab6809..ea6a79e904 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue @@ -6,7 +6,7 @@ :to="{ name: option.to }" class="btn btn-default" > - {{ $__(`${option.button_title}`) }} -- 2.39.5