[Koha-bugs] [Bug 8954] Languages list in advanced search always in english

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 26 19:23:42 CEST 2012


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

--- Comment #4 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
Why it is not working :
1. in C4/Languages.pm, the sub getAllanguages can get a parameter, whose value
is assigned to the variable $current_language. If no parameter,
$current_language gets the value 'en'.
Then the sub search for $current_language in "lang" column of 
language_descriptions table. If $current_language does not match any value in
this column, the sub does not search english language name (as I thought.). So
no languages are showing in the resulting list in html.

2. In this table, the only 2 values in lang colum are currently "en" and "fr".
But in opac-search.pl and opac-pl, I pass as a parameter the value given
C4::Templates::getlanguages. For a french template, it is "fr-FR", and not
"fr".


So it is more complicated as I first thought, and I don't know how to resolve
these 2 issues for the moment. If somebody has an idea...

Mathieu Saby
Rennes 2 University

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list