Page 1 of 1

How to use CmsNlsOperations

Posted: Fri Aug 03, 2012 8:20 pm
by Duketown
Hi,

In version 1.11 CmsNlsOperations::set_language_detector() has been introduced. I've not yet been able to go in detail on this class and its usage. Did someone else put it one way or the other already in one of their own build modules?
How was that done and to serve which purpose?

Thanks,

Duketown

Re: How to use CmsNlsOperations

Posted: Sat Aug 11, 2012 2:01 am
by calguy1000
The set_language_detector() method can be used from a modules InitializeFrontend() method to allow alternate methods of choosing a language.

i.e: your language detector object may use the browsers IP address, or a cookie to select the users 'language'.

others may try to detect from the browser settings, etc.