AW: AW: [opencms-dev] Several Languages - Howto

Roman Uhlig | Knuepfer Verlag roman.uhlig at knve.de
Fri Oct 21 14:30:56 CEST 2005


 
Thanks Bernd, we'll try the CmsLocalHandler.
Looks like a low-level but useful approach for managing multi-language
sites.


Best regards,
Roman Uhlig <mailto:roman.uhlig at knve.de>



-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Bernd Wolfsegger
Gesendet: Freitag, 21. Oktober 2005 12:27
An: opencms-dev at opencms.org
Betreff: Re: AW: [opencms-dev] Several Languages - Howto

Hi Roman,

I have just one structure on my site, no siblings at all for language
matters.
I use xmlcontent only (no xmlpage etc.).

Ähm, how the navigation is generated is a decision made by the
programmer/developer.
You can use properties for that, but you can use the value of xmlcontent
fields too.

It's a question what should be handled by properties and what by fields.

Implement an I_CmsLocaleHandler which fits your needs and thats it.

So my implementation makes the locale decision based on the top level
domain.
And has some fallbacks if a specific domian/locale mapping is not defined,
or parameter is present in the url.
Right now it is not properties (java properties) based, but new
domain/laguage mappings could be easily added to the source.

So, at the top of your JSP you retrieve the locale:
Locale locale = YourLocaleHandler.getLocale(cms, request, currentRessource);

And use it to retrieve locale specific content on your page or make
decisions whatever.

Kind regards, Bernd

On Friday, 21. October 2005 12:49, Roman Uhlig | Knuepfer Verlag wrote:
> Hi Bernd,
>
> Well, that was my initial question inside the starting post of this
thread:
> How do I handle a multi-language site with OpenCms?
>
> As far as I got till now there is only the solution involving 
> different folders for every language, cause I need of course a 
> language specific navigation too. This is generated from folder/file 
> properties, which is only language specific if I create them for every
language.
>
> Actually, we just need basic multi-language features, nothing special:
> - different independent language content
> - all languages share the same site structure and content objects
> - possibility to switch the language while visiting the site
> - possibility to handle stuff dynamically based on the chosen 
> language, e.g. links or navigation
> - possibility to edit language specific content based on user accounts
>
> These are basic multi-language site requirements. But we couldnt 
> figure out yet how to do this with OpenCms, the language demo inside 
> the documentation doesn't answer this. Till now, the question still 
> seems to be open and we would like to solve or at least answer it for 
> ourselves, because it's the only issue we have with OpenCms. 
> Everything else is working fine. But if there is no solution to set up 
> a multi-language site without copying or linking the whole structure 
> for every language, we have to look further during our CMS evaluation.
>
> Any help on this is still very appreciated, cause we feel comfortable 
> with OpenCms and it would be sad to drop it because of issues 
> regarding the handling of several languages, which has never been a 
> problem with other CMS we used until now.
>
> Thank you in advance,
> Roman Uhlig
>
>
> ------------------------------------
> Knuepfer Verlag GmbH
> Am Brauhaus 12 / Im Waldschloesschen
> 01099 Dresden
>
> Tel +49 (0)351 / 8 00 70 - 0
> Fax +49 (0)351 / 8 00 70 - 70
>
> http://www.knuepferverlag.de
>
> Besuchen Sie die Online-Produkte des Knuepfer Verlages:
> http://www.DresdenInformation.com
> http://www.kaufmacher.de
> http://www.kinowoche.de
> http://www.pr-server.de
> http://www.inlix.info
> ------------------------------------
> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Bernd 
> Wolfsegger
> Gesendet: Freitag, 21. Oktober 2005 11:33
> An: The OpenCms mailing list
> Betreff: Re: [opencms-dev] Several Languages - Howto
>
> Hi,
>
> for what purpose do you exactly need multiple language specific 
> folders anyway?
>
> Since the language dependend content can be accessed in one ressource, 
> because it incorporates all languages. So why split it again and 
> having a lot of problems?
>
> Kind regadrs, Bernd
>
> On Friday, 21. October 2005 11:59, Uhlig, Roman wrote:
> > Thank you Corsin for your recommendation, we will try that.
> > But I see no solution to the problem Matthias and Bernd are 
> > discussing in this thread.
> >
> > One of our largest customer portals serves 6 languages. If something 
> > changes or new structure has to be added, a chief editor would have 
> > to create the new files in one language and then create the siblings 
> > for all other languages manually? That sounds weird actually.
> >
> > As for the link management mentioned by Bernd, I guess there is a 
> > way to dynamically parse links to the appropriate language based on 
> > the language the visitor has selected? In our current "to-replace" 
> > CMS no internal link is static, they are all generated dynamically 
> > based on several properties (like language). This should be possible 
> > inside OpenCms too, I think.
> >
> > Best regards,
> > Roman Uhlig
> >
> >
> > ------------------------------------
> > Knuepfer Verlag GmbH
> > Am Brauhaus 12 / Im Waldschloesschen
> > 01099 Dresden
> >
> > Tel +49 (0)351 / 8 00 70 - 0
> > Fax +49 (0)351 / 8 00 70 - 70
> >
> > http://www.knuepferverlag.de
> >
> > Besuchen Sie die Online-Produkte des Knuepfer Verlages:
> > http://www.DresdenInformation.com
> > http://www.kaufmacher.de
> > http://www.kinowoche.de
> > http://www.pr-server.de
> > http://www.inlix.info
> > ------------------------------------
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list To change 
> > your list options, or to unsubscribe from the list, please visit 
> > http://mail.opencms.org/mailman/listinfo/opencms-dev

-- 

[  Code Create
[  Web Content Management and Presentation


[  Bernd Wolfsegger
[  Sun Certified Programmer for Java(TM) 2 Platform


[  Lohmeyerstrasse 13
[  10587 Berlin
[  Germany
[  Fon +49 (0)30 26555788
[  Fax +49 (0)30 2651835
[  Mobile +49 (0)163 6505622

[  bw at code-create.com
[  http://www.code-create.com/



_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list