Bug 40146: Untranslatable actions on vendor

This patch updates the vendor detail view in order to make some menu
items translatable..

To test, apply the patch and run 'yarn build'. Test that the correct
strings are translatable. In this example I'm testing fr-FR:

- Update a translation:

> gulp po:update
> cd misc/translator
> perl translate update fr-FR

- Open the corresponding .po file for the strings pulled from
  JavaScript  e.g.  misc/translator/po/fr-FR-messages-js.po
- Locate strings pulled from vue/components/Vendors/VendorShow.vue for
  translation, e.g.:

  #: koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorShow.vue:12
  #, fuzzy
  msgid "Basket"
  msgstr "Paniers"

- Lines 12, 25, and 35 of VendorShow.vue have been modified.
- Delete the line "#, fuzzy"
- Edit the "msgstr" string if ncessary, however you want (it's just for
  testing)
- Install the updated translation:

> perl translate install fr-FR

- Go to Acquisitions -> Vendors -> Vendor details.
- Switch to your updated translation.
- Confirm that the menu items under "New" are translated correctly.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Flater <flaterdavid@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit a219bda218)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Owen Leonard 2025-06-16 14:47:25 +00:00 committed by Paul Derscheid
parent 120a4f86c6
commit fb29bf15df
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
path: '/cgi-bin/koha/acqui/basketheader.pl',
query: { booksellerid: vendor.id, op: 'add_form' },
},
title: 'Basket',
title: $__('Basket'),
callback: toolbarComponent => {
const url = toolbarComponent.handleQuery(
toolbarComponent.to
@ -22,7 +22,7 @@
path: '/cgi-bin/koha/admin/aqcontract.pl',
query: { booksellerid: vendor.id, op: 'add_form' },
},
title: 'Contract',
title: $__('Contract'),
callback: toolbarComponent => {
const url = toolbarComponent.handleQuery(
toolbarComponent.to
@ -32,7 +32,7 @@
},
{
to: { name: 'VendorFormAdd' },
title: 'Vendor',
title: $__('Vendor'),
},
]"
:title="$__('New')"