http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7282
Bug #: 7282
Summary: invalid language selection
Classification: Unclassified
Change sponsored?: ---
Product: Koha
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P5 - low
Component: I18N/L10N
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
A problem was issue after patch for bug 6629 (cookie language sanitization),
for language selection.
Before the patch for 6629:
in C4::Templates::themelanguage, language is taken from:
if cookie:
lang = C4::Templates::getlanguagecookie
else
- HTTP_ACCEPT_LANGUAGE (parsed and interpreted)
checked against sysprefs
'en' else
After the patch:
in C4::Templates::themelanguage, language is taken from:
lang = C4::Templates::getlanguagecookie
if not lang:
- HTTP_ACCEPT_LANGUAGE (parsed and interpreted)
checked against sysprefs
'en' else
But in C4::Templates::getlanguagecookie, language is taken from:
- cookie (if exist)
- else from:
- HTTP_ACCEPT_LANGUAGE (not parsed, so lang could be set to
"fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3")
(which almost always exists)
- result is sanitized (so if not cookie: my language is something like
"frfr-frq08enusq05enq03", but not installed in koha :-) )
--
Configure bugmail:
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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/