https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28925
Bug ID: 28925
Summary: OPAC checkout history is not accessing the set
language
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: OPAC
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
OpacNav is still in the system preferences (yet to be moved to Tools ->
Notices) so in the meantime we've done a bit of hacky work to make our OpacNav
translateable.
We changed this line in
koha-tmpl/opac-tmpl/bootstrap/en/includes/navigation.inc:
<div id="opacnav">[% OpacNav | $raw %]</div>
to:
<div id="opacnav">[% OpacNav | eval %]</div>
so that it would render Template Toolkit in OpacNav.
Then, in OpacNav, we added some code like:
[% IF lang == 'mi-NZ' %]
Show navigation in te reo Māori
[% ELSE %]
Show navigation in English
[% END %]
This seems to work most everywhere in the OPAC, except for the user's checkout
history. When printing [% lang %], it looks like $lang is set to default,
rather than any of the languages we have installed.
$lang should be set to the installed and selected language.
--
You are receiving this mail because:
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/