Quote from: maciej.m at Jul 18, 2009, 11:28 AM
How to change language of the site frontend?
I have added second language and all lexicon entries, also for [[Login]] snippet.
That’s up to you as the site designer/developer to determine. Lexicons for use in the front-end is a new concept and I’m sure as component developers begin exploring i18n development for the front-end, a variety of solutions will be realized.
There is an event, OnInitCulture, that is fired on initialization of the modX class which you could use to set the $modx->cultureKey (defaults to ’en’). This could be used to set the language for the request in a specific context, such as ’web’, and all subsequent calls to $modx->lexicon->load() should use that language unless specified in that function call.