[opencms-dev] How to use elements and multilanguage

Peter Olsson s.o.peter.olsson at telia.com
Thu Jul 13 19:23:22 CEST 2006


Hi,

I'm also new with OpenCms and have been trying to setup a multilingual 
site with OpenCms.

The way, as far as I understand it, to defined which language element to 
show for the visitor is to set the locale property of the file (to en, 
sv, de or what languages you have). To have different language element 
you need to make a so called Sibling and defined another locale.

That is, you can have a file index.html addressed by 
http://yoursite/index.html whick shows for example the English text 
element and you can have a sibling with the name index_de.html 
(http://yoursite/index_de.html) which show the German labguage element.

You can also choose the locale by adding the following after the 
filename in the URL: __locale=sv, that is 
http://yoursite/index.html?__locale=de.

But, if you read my resent posting I want another behavior than this. 
But the above is maybe the way you want it.

/Peter

iñaki chasco wrote:
> Hello everybody!!
> 
>    I´m a newbie user of opencms. I have created a "page with free text". 
> I have written the part of body an another thar I have created as 
> "element" called text1, in english and in german. But now, i don´t know 
> neither how can i put the text1 element in a page nor put a link in the 
> page to change the language. Can anyone helps me?? I need this so much
> 
> Thank you very much and I´m sorry about my poor english.
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list