Bugzilla – Attachment 162302 Details for
Bug 35582
Advanced search languages should be listed with selected UI language descriptions shown first if available
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35582: Show advanced search languages with selected intranet language descriptions first
Bug-35582-Show-advanced-search-languages-with-sele.patch (text/plain), 2.03 KB, created by
Pedro Amorim
on 2024-02-20 16:30:44 UTC
(
hide
)
Description:
Bug 35582: Show advanced search languages with selected intranet language descriptions first
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-02-20 16:30:44 UTC
Size:
2.03 KB
patch
obsolete
>From 59261cb603b7b28bc1c62be956afe2dc75931d1c Mon Sep 17 00:00:00 2001 >From: lmstrand <lmstrand@gmail.com> >Date: Fri, 26 Jan 2024 10:36:00 +0200 >Subject: [PATCH] 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> >--- > C4/Languages.pm | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/C4/Languages.pm b/C4/Languages.pm >index 04f2c8367cb..21c4ce4e6f4 100644 >--- a/C4/Languages.pm >+++ b/C4/Languages.pm >@@ -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}; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35582
:
159892
|
160621
|
162293
|
162302
|
165692
|
165693