[Koha-bugs] [Bug 6755] Problems with switching languages

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 23 15:44:42 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6755

--- Comment #33 from Frédéric Demians <frederic at tamil.fr> 2011-09-23 13:44:42 UTC ---
Created attachment 5565
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5565
Consolidate language selection for templates

When Web browser default selected language doesn't belong to selected
languages list defined by syspref (language / opaclanguages), web pages
are returned in this language, which is wrong...

This patch get this behavior:

- If selected by user language is available (cookie), it is used.
- Otherwise, language is set to default web browser language.
- If this language doesn't belong to languages list (syspref),
  English is selected

Some code cleanup.

To test properly: don't forget to delete your cookies, and to test what
happens without and with cookie.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list