Hi Charliez,
I’m not sure my method will be approved by the MODx team but it works.
The thing mind-disturbing is that you may intuitively create only a document and fill it with lexicon tags, expecting modx to translate it automatically, but it’s not the right method.
Don’t put all the languages on the same page, else there will be problems with the alias field that do not allow to convert lexicon tags.
If you want real multilanguage document with subdomains, with english (en) as the main language and german (de) as the second language, try the following.
Just set up subdomains, follow these instructions of the doc (replace "dev" by "de") :
http://svn.modxcms.com/docs/display/revolution/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts.
Once subdomains are working , create a new context called "de" for german language.
Then add a new context setting called "custom_language" for each context.
Value for "current_language" context setting :
"web" will be english => set
"current_language"= "en" in the context settings
"de" will be german => set
"current_language"= "de" in the context settings
Now create a new lexicon entry in english :
namespace = custom_namespace
topic = custom_topic
language = en
key = "logout_msg"
value ="You are now unlogged, see you soon."
Now create the same lexicon entry in german :
namespace = custom_namespace
topic = custom_topic
language = de
key = "logout_msg"
value ="Du bist jetzt ausgelogged, bis nächstes mal mein Freund."
Create a chunk called "logoutChunk". Content of the chunk :
[[%logout_msg? &namespace=`custom_namespace` &topic=`custom_topic` &language=`[[++current_language]]`]]
Save the chunk, create a document under each context (you need to create 1 document under the "web" context, and 1 other under the "de" context ), and call the same chunk on both documents :
It should be different languages for each subdomain now.
http://mysite.com/ <= english
http://de.mysite.com/ <= german
NOTE : There is a value "cultureKey" included in modx, but due to the few informations for the moment, I don’t know how to use it.
Sorry for my bad english