[opencms-dev] change language programmatically - opencms 6.2.2

Joe Lam joe.lam at moni-media.net
Tue Nov 3 07:58:56 CET 2009


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-tp26160000p26160000.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list