cancel
Showing results for 
Search instead for 
Did you mean: 

Multilingual interface - am I missing something?

jbfox
Champ in-the-making
Champ in-the-making
I am completely new to Alfresco, but have done intense reading, and fiddling!  Yet I cannot overcome a basic initial problem - I get only English offered as Login possibility, despite having done what I believe I'm supposed to do to change that.  But essential details:
1. I have loaded up Alfresco on my PC through BitNami Stacks - version 2.1 or near enough to it I guess. I found that installation painless. The idea is to trial it and get to know it well myself before presenting it as an option to an organisation operating in 125 nations. So I need multilingual interface etc etc.
2. The installation presents me with English (though I'm working in Italy). I have altered the web-client-config-custom.xml.sample name (eliminating the 'sample' bit) and I believe that at this point it should offer me a multilingual possibility for interface on next login, but it doesn't.
Question 1: do I need to find additional language files to add in - and if so where (at least Italian, Spanish, French and Portuguese but as many as…)
Question 2: is there something just terribly simple that I am overlooking?
Julian
4 REPLIES 4

loftux
Star Contributor
Star Contributor
You will have to edit /shared/classes/alfresco/extension/web-client-config-custom.xml
<config evaluator="string-compare" condition="Languages" replace="true">
      <languages>
         <language locale="en_US">English</language>
         <language locale="it_IT">Italian</language>
      </languages>
</config>
Notice the replace="true" directive, it tells that it should use this config only and not to add to the default.

Add as many languages as you like (italian just choosen as an example here), the default ones are in /shared/classes/alfresco/messages folder, you should have some there. Then have a look at http://forge.alfresco.com/softwaremap/trove_list.php?form_cat=316 you will probably find more up to date message bundles there.
The order of the language config is the order they are presented in the dropdown. For you to get italian on the initial login you would have to set your browser preferences for languages to match the "it_IT", but you should at least be able to change language using the dropdown.

jbfox
Champ in-the-making
Champ in-the-making
No joy I'm afraid.  Thanks for the help so far - I followed that to the letter (but I had done all those things before my initial post). I made sure I had replace="true" and put es up as initial login language (Italian is there - I simply chose all languages in the sample file, but put es first followed by en). There's no question that messages are available in Spanish.
I'm using Firefox and ensured that I had es added as a browsing language - in fact moved it up to prime place just to be sure.  Still just English on login I'm afraid! I tried Konqueror (I use Kubuntu, so it's there) - same result.  What on earth could I be doing wrong?
Julian

jbfox
Champ in-the-making
Champ in-the-making
To add to the issue: I have replicated this problem on another machine, a separate BitNami install.  Only English in the drop down list at Login, even though appropriate alterations have been made in the 'custom' file. That leads me to wonder if there is not a second such file somewhere else in the Alfresco system, which is being picked up first?  Possible?
Julian

jlukaszewicz
Champ in-the-making
Champ in-the-making
I think that problem is connected with the way firefox presents languages accepted by firefox user-agent. Typically it is en_US or it_IT. When you take a closer look to Firefox language settings you can find out that it sends only two letters i.e. it.  I had the same issue with Polish locale and adding this configuration solved problem.

<config evaluator="string-compare" condition="Languages" replace="true">
      <languages>
         <language locale="en_US">English</language>
         <language locale="it_IT">Italian</language>
       <language locale="pl_PL">Polish</language>
       <language locale="pl">Polish</language>
      </languages>
</config>

I hope this helped.

Regards,
Jarek


If you found that reply helpful, dotn't forget to award a point.