[Koha-bugs] [Bug 12017] Move language description out of database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 19 20:10:52 CEST 2015


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

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33341|0                           |1
        is obsolete|                            |

--- Comment #60 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 39308
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39308&action=edit
Bug 12017 - 5 - Change local use syspref type Language

This patch changes local use syspref of type Language
Currently this type of syspref is not used, and shows
currently translated staff languages. It's values
can't be changed.

To make something useful, this kind of syspref is
changed to show all langs and save iso639_2 codes.
And they not use descriptions on database, only
rfc4646 codes from templates.

It's easy to add new kinds that save rfc4646 codes,
or only show translated languages.

To test:
1. Apply the patch
2. Go to system preferences, local use
3. Define a new syspref, any name/description, type
'Language', Save

4. New syspref is showed as a multiple selection of
iso639_2 codes with current lang and native names.
Check that

5. Select some values, save, check they are saved
and restored

6. Edit, similar view, change values, save, check

7. Delete test syspref

Values are stored as ',' separated values
Verify in database

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


More information about the Koha-bugs mailing list