cancel
Showing results for 
Search instead for 
Did you mean: 

Add languages, lab 3

maraki
Champ in-the-making
Champ in-the-making
Hello,

I have installled labs 3 and I tried to add some more languages.I have changed  /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="el_GR">Greek</language>
         <language locale="fr_FR">French</language>
         <language locale="it_IT">Italian</language>
      </languages>
</config>

but when i select one of the above languages in the login page i don;t see any difference.
I also realise that there aren't files for other languages in /shared/classes/alfresco/messages folder, as there used to be in previws versions.

What should I do in order to add languages in lab 3?
Do I need to find additional language files to add in and if so where?

I appreciate any help in solving this issue.

Thanks,
Mary
13 REPLIES 13

maraki
Champ in-the-making
Champ in-the-making
Ok, it works  Smiley Very Happy
Thanks for your prompt response

Now what I am asking is this, When I open the *_el_GR.properties files with wordpad from windows I can see no greek characters, I only see "\u03c4\u03ae \u03b7: instead of greek. What can I do in order to be able to work on them?

Thank you in advance,
Mary

jpbarba
Champ in-the-making
Champ in-the-making
Hi,
i have just installed the Alfresco Labs in Linux and in the login screen only English is shown.
Somebody know why that happends??.

maraki
Champ in-the-making
Champ in-the-making
First of all read http://wiki.alfresco.com/wiki/Language_Pack_Installation and http://wiki.alfresco.com/wiki/Simple_Customisations#Adding_Languages.

In order to add more languages you should add the following code into the file /shared/classes/alfresco/extension/web-client-config-custom.xml

<config evaluator="string-compare" condition="Languages" replace="true">
<languages>
         <language locale="el_GR">Greek</language>
         <language locale="ca_ES">Catalan</language>
         <language locale="hr_HR">Croatian</language>
         <language locale="cs_CZ">Czech</language>
         <language locale="da_DK">Danish</language>
         <language locale="de_DE">German</language>
         <language locale="es_ES">Spanish</language>       
         <language locale="fi_FI">Finnish</language>
         <language locale="fr_FR">French</language>
         <language locale="it_IT">Italian</language>
         <language locale="ja_JP">Japanese</language>
         <language locale="du_NL">Dutch</language>
         <language locale="pl_PL">Polish</language>
         <language locale="pt_PT">Portuguese</language>
         <language locale="pt_BR">Portuguese (Brazilian)</language>
         <language locale="ru_RU">Russian</language>
         <language locale="sv_SV">Swedish</language>
         <language locale="tr_TR">Turkish</language>
</languages>
</config>

After that if you select one of the above languages in the login page and you don't see any difference try to downloads the 2.1release from this link : http://sourceforge.net/project/showfiles.php?group_id=143373&package_id=157460
Then copy the content of alfresco-2.1\tomcat\shared\classes\alfresco\messages into alfresco-3 tomcat\shared\classes\alfresco\messages .


I hope it will solve your problem.

Regards
Maria

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi all

I have also been able to install another languages using the instructions of this post. My question now is how can I set another language as a default option in the login screen? . I mean even if you install another languages, English is the one set as default in the login screen. Is there any way to set Spanish for example?

Thanks a lot in advance guys :wink:

mabayona
Champ on-the-rise
Champ on-the-rise
To set the default you have to modify the file:

$TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config.xml:

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

change

  <language locale="en_US">English</language>

for whatever language you want as default.:

<language locale="es_ES">Espa&#241;ol</language>

Alternativelly, you can change:

$TOMCAT_HOME/webapps/alfresco/shared/classes/alfresco/extension/web-client-config-custom.xml:

adding replace="true":

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

<config evaluator="string-compare" condition="Languages" replace="true">
      <!– the list of available language files –>
      <languages>
         <language locale="es_ES">Espa&#241;ol</language>
         <language locale="en_US">English</language>
        ….
      </languages>
   </config>

and the default will be the first in the list of languages.

jlabuelo
Champ on-the-rise
Champ on-the-rise
Thanks a lot for the help. Works fine!

dlsap
Champ in-the-making
Champ in-the-making
hi.  i am having the same problem.  where can i download the 2.1 version?  it isn't in any of the links.  thanks

jlabuelo
Champ on-the-rise
Champ on-the-rise

dlsap
Champ in-the-making
Champ in-the-making
nope.  not there either.