Bugzilla – Attachment 149229 Details for
Bug 33417
Create one standard Toolbar component
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33417: Fix translation in toolbar
Bug-33417-Fix-translation-in-toolbar.patch (text/plain), 4.13 KB, created by
Matt Blenkinsop
on 2023-04-06 11:14:54 UTC
(
hide
)
Description:
Bug 33417: Fix translation in toolbar
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-04-06 11:14:54 UTC
Size:
4.13 KB
patch
obsolete
>From b6a20c422e727839974221ea3a858542545f2e17 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >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 >--- > .../prog/js/vue/components/ERM/AgreementsList.vue | 4 ++-- > .../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, 7 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 5fee4862f1..0b2ce8f5e7 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 >@@ -88,8 +88,8 @@ 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 cecd22b967..2cfa27589f 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 >@@ -57,7 +57,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 66e3bf8479..650dec37d8 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 >@@ -56,11 +56,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 52886b8eeb..e9226712e1 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 >@@ -47,7 +47,7 @@ export default { > toolbar_options: [ > { > to: "LicensesFormAdd", >- button_title: "New license", >+ button_title: this.$__("New license"), > }, > ], > } >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" > ><font-awesome-icon icon="plus" /> >- {{ $__(`${option.button_title}`) }}</router-link >+ {{ option.button_title }}</router-link > > > </div> > </template> >-- >2.30.2
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 33417
:
149193
|
149194
|
149195
|
149212
|
149215
|
149217
|
149229
|
149936
|
149937
|
149938
|
149939
|
149964
|
149965
|
149966
|
149967
|
152244
|
152245
|
152246
|
152247