[Koha-bugs] [Bug 25099] New: Add lang from cookie to plugins template params
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 9 17:11:18 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25099
Bug ID: 25099
Summary: Add lang from cookie to plugins template params
Change sponsored?: Sponsored
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P5 - low
Component: Plugin architecture
Assignee: koha-bugs at lists.koha-community.org
Reporter: nicolas.legrand at bulac.fr
QA Contact: testopia at bugs.koha-community.org
CC: kyle at bywatersolutions.com, severine.queune at bulac.fr,
tomascohen at gmail.com
Created attachment 102643
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102643&action=edit
The Mannequin plugin to test this Bug
To make internationalised plugin, it may be useful to get the KohaOpacLanguage
from Koha cookie. We could then branch an include template containing all
strings in the page in a specific language à la Theke solutions (see
https://gitlab.com/thekesolutions/plugins/koha-plugin-pay-via-paypal/-/blob/master/Koha/Plugin/Com/Theke/PayViaPayPal/opac_online_payment_error.tt)
The idea is to have Koha/Plugin/Com/Something/Superplugin/i18n with
lang_dialect.inc files. It contains a TOKENS hash with all the string you need
for your plugin.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list