From a44100fe068af5d8f5eb3b8aa79785cd24aa3de8 Mon Sep 17 00:00:00 2001 From: lmstrand Date: Fri, 15 Dec 2023 15:45:42 +0200 Subject: [PATCH] Bug 35582: Advanced search languages should be listed with selected UI language descriptions shown first if available --- C4/Languages.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Languages.pm b/C4/Languages.pm index 04f2c8367c..d7174f3efd 100644 --- a/C4/Languages.pm +++ b/C4/Languages.pm @@ -227,10 +227,10 @@ 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}; -- 2.25.1