on 2019 Jan 03 10:53 PM
We want to show normal English as the default language when the user lands on the Backoffice Login page. The drop down currently takes the browser language which in our case is en_US.
What is the clean way to set the default login as ENGLISH (en). We also want the user to select any other language and proceed without any issues.
I've figured out that LoginFormComposer
class has setSelected()
method where I can write my logic, but there is no way I can override it.
Any suggestion will be helpful.
I've seen other posts on this and people are suggesting to overrdie the currentLocale method itself, which we don't want to do.
I've overridden BackofficeLocaleService
class so that I can sort the available locales.
Thanks
Request clarification before answering.
Hi, I found a simple solution.
You can configure the ZK specific property "org.zkoss.web.preferred.locale" with the default language, e.g. "en"
Add a zk.xml file in the "customize" folder: hybris\config\customize\ext-backoffice\backoffice\web\webroot\WEB-INF\zk.xml
<?xml version="1.0" encoding="UTF-8"?>
<zk>
<library-property>
<name>org.zkoss.web.preferred.locale</name>
<value>en</value>
</library-property>
</zk>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.