Bugzilla – Attachment 149939 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.17 KB, created by
Matt Blenkinsop
on 2023-04-20 12:28:15 UTC
(
hide
)
Description:
Bug 33417: Fix translation in toolbar
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-04-20 12:28:15 UTC
Size:
4.17 KB
patch
obsolete
>From 1f1c78c4ab6c64600a652c719c5842ad3466dd1b 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 287dd61283..a94a16cea5 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 >@@ -152,8 +152,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 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" > ><font-awesome-icon icon="plus" /> >- {{ $__(`${option.button_title}`) }}</router-link >+ {{ option.button_title }}</router-link > > > </div> > </template> >-- >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 33417
:
149193
|
149194
|
149195
|
149212
|
149215
|
149217
|
149229
|
149936
|
149937
|
149938
|
149939
|
149964
|
149965
|
149966
|
149967
|
152244
|
152245
|
152246
|
152247