Sort and Translate the language in language picker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 09:31 AM
Hello Community,
I need help in two things.
1) How can we sort the language in language picker so that it get displays alphabetically?
2) I want to translate language . What I mean is , if I select Chinese then all languages in the language picker should also get translated to Chinese.
I am new to Language translation so please help me so that I can continue my learning journey.
Thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 09:25 PM
@Ravi Chandra_K
If you can give your insight on this, then it will be really grateful to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 09:35 PM
Hello @Drishti
Thoughts....
1.The languages come from sys_langugae table. I'm not sure if there is order or sequence field to sort the values there. Can you please check.
2. wasn't that the behaviour already.? It used to be like that ServiceNow might have changed as sometimes user get confusion when they mistakenly selects other language.
Anyways, you can enable debug translations and see which table translations for sys_language fall into.. (I think sys_choice or sys_translated_text).
Adding @Alex Coope - SN for further insights....
Please mark the answer as helpful and correct if helped
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 10:11 PM
Ok, let me check all these first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 12:06 AM
Where the languages are from actually depends on which "picker" you are referring to. From a visual perspective, most actually come from the choices in [sys_choice].preferred_language via a function call.
I would strongly suggest you don't try and create any logic to force a sort order because it may affect how those choices show in other languages because we show their native names where possible and this could lead to an unnecessary customization. Expect changes to this area in future releases.
Many thanks,
kind regards
Director of Globalization Deployment, Internationalization