Bug 35582: Show advanced search languages with selected intranet language descriptions first
To test: 1. Check language dropdowns in advanced search, notice localized names of the languages are shown first in the menus, then the selected ui language translations if available or the english translation 2. Apply patch 3. Check language dropdowns, notice the selected ui language's translations are shown first for the languages (if missing, english translation), then the localized language's name. Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commit9c445218de) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit2df2fbc309) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
9fa36fcf89
commit
96ea342c31
|
|
@ -227,10 +227,11 @@ sub getLanguages {
|
|||
|
||||
# fill in the ISO6329 code
|
||||
$language_subtag_registry->{iso639_2_code} = $language_descriptions->{iso639_2_code};
|
||||
# fill in the native description of the language, as well as the current language's translation of that if it exists
|
||||
# fill in the current selected ui language's translation, as well as the native description of the language
|
||||
if ($native_description) {
|
||||
$language_subtag_registry->{language_description} = $native_description;
|
||||
$language_subtag_registry->{language_description}.=" ($language_descriptions->{description})" if $language_descriptions->{description};
|
||||
$language_subtag_registry->{language_description} = $language_descriptions->{description}
|
||||
if $language_descriptions->{description};
|
||||
$language_subtag_registry->{language_description} .= " ($native_description)";
|
||||
}
|
||||
else {
|
||||
$language_subtag_registry->{language_description} = $language_descriptions->{description};
|
||||
|
|
|
|||
Loading…
Reference in New Issue