https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41989

--- Comment #12 from David Cook <[email protected]> ---
Digging into the code and looking at C4::Languages::getlanguage and this is
where my language is getting set to "en" when I visit
/cgi-bin/koha/cataloguing/addbooks.pl?q=a without the patch:

    # HTTP_ACCEPT_LANGUAGE
    if ( !$language && $ENV{HTTP_ACCEPT_LANGUAGE} ) {
        $language = accept_language(
            $ENV{HTTP_ACCEPT_LANGUAGE},
            getTranslatedLanguages( $interface, $theme )
        );
    }

So I don't think your bug will ever work for me as it's going to pick up "en"
from my Accept-Language header. 

However... your comment about the interface being set incorrectly gave me an
idea which should easily reproduce the bug that you're fixing. 

On KTD:
- install the following: de-DE, fr-CA, fr-FR 
- For OPACLanguages, checkbox every option but "English"
- sudo koha-plack --restart kohadev
- Go to /cgi-bin/koha/cataloguing/addbooks.pl?q=a
- Note that the interface is in the first selected language from OpacLanguages
- If you do another search, it'll revert back to English.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to