By: Bart Van der Plancken user 29 Jan 2018 at 6:25 a.m. CST

3 Responses
Bart Van der Plancken gravatar
Hi, I'm having trouble enabling the standard french language on the login screens. I've added fr to the uiLocalesSupported and set my browser and computer in french. The login UI seems to keep displaying in english. How does it detect the locale settings and how can I activate/test the french capabilities?

By Thomas Gasmyr Mougang staff 30 Jan 2018 at 2:55 p.m. CST

Thomas Gasmyr Mougang gravatar
Hi Plancken, Here is what you can do to enable French or any other language we support: Since you want enable french on login screens, the component to customize is oxauth. NB: Make a copy of you **/opt/gluu/jetty/oxauth/webapps/oxauth.war** before. The idea here is to changed the default language in the **faces-config.xml** which is in side **oxauth.war**. Log into gluu container and run the commands below. ``` #mkdir -p custom_oxauth/WEBINF #mkdir custom_oxauth/temp #cp /opt/gluu/jetty/oxauth/webapps/oxauth.war /oxauth_save.war #cp /opt/gluu/jetty/oxauth/webapps/oxauth.war custom_oxauth/oxauth.war #cd custom_oxauth #unzip oxauth.war -d ./temp #cp ./temp/WEBINF/faces-config.xml WEBINF/ ``` Edit **faces-config.xml**(the one in custom_oxauth/WEBINF folder) and set **fr** as default language ``` #rm -rf custom_oxauth/temp #zip -u oxauth.war WEBINF/faces-config.xml #cp oxauth.war /opt/gluu/jetty/oxauth/webapps/oxauth.war #cd .. #rm -rf custom_oxauth ``` Restart the oxauth service ``` #service oxauth restart ``` The result will be similar to [this.](https://pasteboard.co/H5mZ44z.png) Thanks

By Bart Van der Plancken user 31 Jan 2018 at 4:10 a.m. CST

Bart Van der Plancken gravatar
Hi, Thank you for the answer. This will help me partially, if I understand correctly. Belgium is a bit of a difficult country (two/three languages and all), so I can use this method to change the default language of the login site, but only the default? We also need multi-language support, since people either need a dutch or french login page. I know from the docs that in order to support dutch, I'll need to create my own messages file, but is there a way to pass the language used by the user to the frontend screen? Regards

By Thomas Gasmyr Mougang staff 31 Jan 2018 at 2:45 p.m. CST

Thomas Gasmyr Mougang gravatar
Hi Van der Plancken, I hope you are doing well. The multi-language can be supported by customizing the public facing login pages to meet your requirements. We will definitely consider implementing this feature if we hear more demand from customers. In case you are interested in becoming a supported customer to request this feature, feel free to [schedule a call with us](https://gluu.org/booking). Thanks!