<![CDATA[ Changing the language of the 'WEB' context - My Forums]]> https://forums.modx.com/thread/?thread=32413 <![CDATA[Re: Changing the language of the 'WEB' context]]> https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176977 splittingred Nov 23, 2010, 08:45 AM https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176977 <![CDATA[Re: Changing the language of the 'WEB' context]]> https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176976 Quote from: OpenGeek at Jul 19, 2009, 11:07 PM

Quote from: maciej.m at Jul 19, 2009, 06:26 PM

Did you mean ’OnInitCulture’?
I did; sorry for the confusion. Trying to get multiple versions of PHP easily accessible via MacPorts had me distracted (sigh).


I’ve only encountered errors when identical_tvs was set to "not configured" string (the default value) or when the identical_tvs was equal to 0.
Deleting this field (null value) OR setting the value equal to the ID of babel_ids TV was the solution for me.

Thank you both of you.]]>
stefanmoldoveanu Nov 23, 2010, 05:48 AM https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176976
<![CDATA[Re: Changing the language of the 'WEB' context]]> https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176975 Quote from: maciej.m at Jul 19, 2009, 06:26 PM

Did you mean ’OnInitCulture’?
I did; sorry for the confusion. Trying to get multiple versions of PHP easily accessible via MacPorts had me distracted (sigh).]]>
opengeek Jul 19, 2009, 06:07 PM https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176975
<![CDATA[Re: Changing the language of the 'WEB' context]]> https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176974 maciej.m Jul 19, 2009, 01:26 PM https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176974 <![CDATA[Re: Changing the language of the 'WEB' context]]> https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176973 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.]]>
opengeek Jul 18, 2009, 04:19 PM https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176973
<![CDATA[Changing the language of the 'WEB' context]]> https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176972
How to change language of the site frontend?

I have added second language and all lexicon entries, also for [[Login]] snippet.

--
Regards
MM]]>
maciej.m Jul 18, 2009, 06:28 AM https://forums.modx.com/thread/32413/changing-the-language-of-the-web-context#dis-post-176972