The CreatorCon Call for Content is officially open! Get started here.

Add option to language select box on login

danrad
Kilo Explorer

Hi all,

Does anyone has an solution how to avoid that users have to choose a language each time they want to login.

My idea is to have the select box on the login page, but to have a a default value like "Change language" and if user does not select any available langue from the select box, then it will use the prefered language from the user table. If they choose one, then it should behave as usual.

Or does anybody has some other solutions??

Thank you!

Regards,

Daniel

4 REPLIES 4

abuthahir
Tera Expert

Hi Abu



Thank you for your reply. I've seen this post, but this point here is not working for me:



if no language was selected at login, the language selected in the header bar language picker is used


if no language was selected at login or in the language picker, the user language setting in the User [sys_user] table is used



The user has no option to not choose a language, the select box is selecting the default system language, in my case "English". So it can not be "if no language was selected".



Regards,


Daniel


It's working for us, we removed the language selection from the login page (this setting is described here Language Internationalization - ServiceNow Wiki).


  1. If the language selection at login is enabled, that language is used.
  2. If not, the language preference selected using the language picker in the header bar (cogwheel) is used.
  3. If not, the user's language setting in the User [sys_user] table is used.
  4. If none of the above are true, the system default language is used.


First time a user log in they get the default language in ServiceNow (for us it's swedish). From the cogwheel (Eureka) a user can change to any other language available in the instance. Next time the user log in it'll be with the language selected by the user.



There is a user preference (user.language) that keeps track of what language each user has selected.



This Wiki article explains it all


Language Internationalization - ServiceNow Wiki


Hi Fredrik,



Thank you for your post! We had the exactly same setup as you are describing, we also had the language selection enabled, and were setting the language with LDAP imports directly, based on a custom attribute in the AD. But the issue why I'm searching for a way to have the language selection enabled again is the following:



We have several informations on the login page (welcome page content). And as this is based in the language setting of the guest user, it is only showing in one language if the language selection is disabled, so users that have French or German as preferred language, see the English content.



Now if I enable the language selection, the content switches to the chosen language, which is great, but then the user needs to select his language each time before login.



We wanted to implement a browser language detection, like most websites use, but this is a little bit tricky in this case as you can detect the language of the user, but you cannot fire a ServiceNow client script to change the language, before the user is logged in.



Regards,


Daniel