[Koha-bugs] [Bug 6481] New: Koha doesn't have a way to set a preferred language from system

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 7 23:33:16 CEST 2011


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

             Bug #: 6481
           Summary: Koha doesn't have a way to set a preferred language
                    from system
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: I18N/L10N
        AssignedTo: frederic at tamil.fr
        ReportedBy: conan at lugmen.org.ar
         QAContact: koha-bugs at lists.koha-community.org


There's something wrong with this snippet:


select variable,value,explanation from systempreferences where variable like
'%language%';

variable    value    explanation
language    en,es-ES    Set the default language in the staff client.
opaclanguages    en,es-ES    Set the default language in the OPAC.


Koha doesn't have a way to set a default language from system. You can allow
user to decide, but that gets into a cookie, not into database. And that cookie
doesn't get set up upon first login for some configurations (that could be
material for another bug).

So we need a way to select a default language and set it into system
preferences.

The explanation of those two variable tells they set a default, but how can
they claim to set a default language if 'value' holds a list of possibilities
and there is no way to arrange it's order?

I would like to add a new syspref called "available_languages" and change the
behaviour of this two to actually do what they claim. But on an irc chat with
Magnuse and Cait we agree that it would be more cumbersome and confusing to
change the way those variables work now.

So even when they will keep misleading names, it's preferable to have two new
syspref to set a default languages and keep these two the way they work now: as
a list of language options, and, of course, modify their descriptions.

I propose to add "preferred_language" and "preferred_opaclanguage" to
systempreferences table.

Finally, I believe this affects master too, but my testing was done in a 3.4.x
installation.

-- 
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