[Koha-bugs] [Bug 20160] Sort translated languages by code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 8 10:31:01 CET 2018


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

paxed <pasi.kallinen at joensuu.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|koha-bugs at lists.koha-commun |pasi.kallinen at joensuu.fi
                   |ity.org                     |

--- Comment #1 from paxed <pasi.kallinen at joensuu.fi> ---
Created attachment 71333
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71333&action=edit
Bug 20160: Sort translated languages by code

The language tabs in Change notices -page are in random order, and will
rearrange at every page reload. This is quite irritating.

Make getTranslatedLanguages return the languages always in the same order,
sorted by the language code. This is better than returning them in
a random one.

Test plan:

1) Enable TranslateNotices
2) Install multiple languages
3) Go to Home -> Tools -> Notices & slips
4) Edit any notice
5) Reload the page multiple times. The language tabs will rearrange at random
6) Apply patch
7) Repeat 1-5. The language tabs should now always be in the same order,
   sorted by the language code.

Do the same test to Home -> Tools -> News -> Add News item
(Check the "Display location" dropdown)

Check Home -> Patrons -> Add patron (the "Preferred language for notices"
dropdown)

Check Home -> Administration -> System preferences -> i18n/l10n
(Note the order of languages listed for "language" and "opaclanguages")

Check Home -> Administration -> System preferences -> Local use
(Create a new preference with variable type Languages, check the
language pref listed in the table)

Check Home -> Administration -> Item types -> Add item type
(After the Description-field, there's "Translate into other languages",
click on that. In the pop-up that opens, check the language drop-down)

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


More information about the Koha-bugs mailing list