[Bug 28925] New: OPAC checkout history is not accessing the set language
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: oleonard@myacpl.org Reporter: aleisha@catalyst.net.nz QA Contact: testopia@bugs.koha-community.org 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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28925 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=24223 Version|unspecified |master --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Bug 24223 is currently awaiting testing, but this bug probably needs its own fix for previous versions. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28925 --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Could it be clashing with the user's language preference? We had that happen in other spots too as the field in the patron table is also called lang. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org