cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the default language

theorbix
Confirmed Champ
Confirmed Champ
Hello,

Is there a way to change the default language suggested by the Web Client (English) to a different language?
5 REPLIES 5

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

One way is to add the following to your web-client-config-custom.xml in your extension folder:

<config evaluator="string-compare" condition="Languages">
   <!– the list of available language files –>
   <languages>
      <language locale="en_EN">English</language>
   </languages>
</config>

Then modify the language to match whatever you need the default to be. You can have more than one language here. The first in the list will be the default selection.

Hope this helps,

–Alaaeldin

theorbix
Confirmed Champ
Confirmed Champ
Thanks for the hint… but it does not seem to work.

This is what I've put in the web-client-config-custom.xml file (note that I removed English from the list):

      <languages>
         <language locale="it_IT">Italian</language>
         <language locale="de_DE">German</language>
         <language locale="fr_FR">French</language>
      </languages>
   </config>

So in theory the default language in the "Language" drop-down list on the login page should be Italian… but English is still present in the drop down, as the default language.

wabson
Star Contributor
Star Contributor
Hi,

You need to add the attribute replace="true" to the <config> element if you wish your list to override the languages provided in the webapp - the default behaviour is simply to add to those defined in web-client-config.xml, which is why English is still showing up for you.

<config evaluator="string-compare" condition="Languages" replace="true">

Interestingly, when I tried this the login screen itself still came up in English, but the option did indeed disappear from the drop-down. That could be a limitation or something to do with my browser. If it is a limitation then I would expect the upcoming language detection stuff to fix that.

Cheers,
Will.

wabson
Star Contributor
Star Contributor
Just to add - the language which Alfresco appears in when a user begins a new session is that of the server's current locale. For details of how to change this using the JAVA_OPTS variable, see this post:

http://forums.alfresco.com/viewtopic.php?f=16&t=11265

Cheers,
Will.

Hello !

I know this is an old topic but the tip from wabson still working on 4.2f. The file where We need to change the locale changes from alfresco.sh to /opt/alfresco-4.2.f/tomcat/scripts/ctl.sh works like a charm


Thanks a lot
Guilherme Gaspar