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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/