cancel
Showing results for 
Search instead for 
Did you mean: 

Disable language detection (system wide)

christianru
Champ in-the-making
Champ in-the-making
Hello,

I already know how to limit the WebClient interface to one default language. (It's easy, just edit the webclient config file..)

But now I stumbeld over a bug (AWC-1157) and I am wondering if it is possible to disable the language detection system wide. I mean edit, somewhere deepdown in the system, the function to return always the "english" language..

Maybe the bug is already fixed and I caused the error by myself. Reason: I was not able to get rid of the german words in the webclient (event when selected the only available "en") and so i just deleted the _de files… Worked perfectly, now all is in english, except the bug above. (But i really don't think this has anything to do with the bug)…

So, to get to the point:

In which place can I disable the language autodetect?
Or in other words: How can i force _en to be used always?
(Alread edited the web-client-config-custom.xml, did affect the dropdown, but not the webinterface)

Thank you…
By the way, really GREAT DMS
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
It is not possible to disable the language detect at present, feel free to raise a JIRA item for it. I believe if only the English lang packs are present on the system, and the server locale is english and the config files are set to only allow english then the system should only present english text.

Thanks for your comments,

Kevin

mliwski
Champ in-the-making
Champ in-the-making
Actually you can do this, only have to modify two or three files:
login.jsp
user-console.jsp
web-client-config-custom.xml

login.jsp:
First of all remove from the line 117 to the line 127, then add at line 39 this code:
java.util.Locale.setDefault(new java.util.Locale("es", "ES"));
If you want english replace "es" by "en" and "ES" by "US".
This modifications remove the selection language from the login page and set the language to the one selected at 39 line.

user-console.jsp:
Remove from the line 161 to the line 169.
This modifications remove the selection language from user properties page.

web-client-config-custom.xml:
I modify this page because use the spanish language, but i think tath isn't necesary to do that
Add your language at the top of evaluator="string-compare" tag, and add the property replace="true" to this one.
It would be look like this:
   <config evaluator="string-compare" condition="Languages" replace="true"> 
      <languages>
         <language locale="es_ES">Español</language>
         <language locale="pt_BR">Portuguese (Brazilian)</language>
       <language locale="en_US">English</language>
      </languages>
   </config>

I hope this help you.

Best Regards.

Matías.