[Koha-patches] [PATCH] Fix the language detection, to use the browser language if opac is translated, so show the news for the browser's language.

Galen Charlton galen.charlton at liblime.com
Fri Mar 6 14:44:28 CET 2009


Hi,

On Fri, Mar 6, 2009 at 7:09 AM, Joshua Ferraro <jmf at liblime.com> wrote:
> Wouldn't this be better to put in a .pm rather than a .pl so that it
> can be called from other places too?

I concur.  In particular, this patch partially duplicates code in
C4::Output::themelanguage().  Rather than add copy-and-paste work,
breaking up themelanguage() so that there's a separate routine to get
the interface language and adjusting GetNewsToDisplay() would be a
better approach.  Please do this for HEAD.

Regards,

Galen
-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-patches mailing list