Joshua Ferraro a écrit :
> Unfortunately, this doesn't take into account that opaclanguages and
> languages sysprefs can be comma separated.
??? This patch is to deal with comma separated !
when languages are comma separated, the
my $news_lang = $input->cookie('KohaOpacLanguage')
|| C4::Context->preference('opaclanguages');
set $news_lang to 'en,fr-FR' (for example) if there is no explicitely
choosen language
thus returning NO news (as there is no 'en,fr-FR' language)
This patch is a "not perfect but better than previously" : it defaults
the news to display to "en" if we don't have a specified one.
It will be useless when the language detector will work correctly. But I
could not fix this one [1]
[1] and it's annoying, as the OPAC displays in english by default, where
we would prefer the browser default language (french here).
--
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : 04 91 31 45 19
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches