Bugzilla – Attachment 177600 Details for
Bug 39061
Allow translation context in vue files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39061: Allow translation context in vue files
Bug-39061-Allow-translation-context-in-vue-files.patch (text/plain), 1.05 KB, created by
Caroline Cyr La Rose
on 2025-02-06 21:14:22 UTC
(
hide
)
Description:
Bug 39061: Allow translation context in vue files
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2025-02-06 21:14:22 UTC
Size:
1.05 KB
patch
obsolete
>From cf5a4f256234c1edf8cbdd363933eec427ca6ff3 Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Thu, 6 Feb 2025 16:11:55 -0500 >Subject: [PATCH] Bug 39061: Allow translation context in vue files > >This patch adds the possibility to add translation context clues in vue >files. > >Syntax is > >$__p("context","term") > >To test, see bug 39045. >--- > koha-tmpl/intranet-tmpl/prog/js/vue/i18n/index.js | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/i18n/index.js b/koha-tmpl/intranet-tmpl/prog/js/vue/i18n/index.js >index 27c8e75f8c..4c36558b48 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/i18n/index.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/i18n/index.js >@@ -2,8 +2,13 @@ export const $__ = key => { > return window["__"](key); > }; > >+export const $__p = (ctx, key) => { >+ return window["__p"](ctx, key); >+}; >+ > export default { > install: (app, options) => { > app.config.globalProperties.$__ = $__; >+ app.config.globalProperties.$__p = $__p; > }, > }; >-- >2.43.0
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 39061
:
177600
|
177693
|
180236
|
180237