Hi Joe,
you can implement your own Localhandler to your needs by writing a class which
implements I_CmsLocaleHandler.
Have a look at the default localehandler CmsDefaultLocaleHandler in the opencms
i18n package to get an idea.
To get it working you have to replace the class attribute value of the
localehandler tag in opencms-systme.xml.
Kind regards, Bernd
-----Ursprüngliche Nachricht-----
Von:
opencms-dev-bounces@... [mailto:
opencms-dev-bounces@...] Im
Auftrag von Joe Lam
Gesendet: Dienstag, 3. November 2009 09:01
An:
opencms-dev@...
Betreff: [opencms-dev] change language programmatically - opencms 6.2.2
I wonder how to change language programmatically with v6.2.2 ?
seems that the method CmsRequestContext.setLocale() is the way to go. but
thats not available in v6.2.2
what I want to do is to provide a select/button to select language. the
"?__locale=de" query string doesnt do the job. because I gonna store the
selected lang such that user will get content in selected language
continuously. and I am not using siblings approach. xml content supports
"same file with multi lang content". which is fine.
I did think this is pretty easy, but somehow I cant find the answer by
searching nabble/google , etc.
Thanks.
Joe
--
View this message in context:
http://old.nabble.com/change-language-programmatically---opencms-6.2.2-tp26160017p26160017.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
_______________________________________________
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_______________________________________________
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