I created this snippets based on my solution. After looking for some simple solution in integrating Multi Lingual site with MODx, I came up with this solution, so if somebody able to improve it, feel free to modify it and posted it in here.
Special thanks to several people in this forum that helps me a lot in the progress of understandng MODx better and giving me a lot of better idea in bringing this whole Multi Lingual thing.
Thanks to Bravado for pointing me to the right direction.
This solution might lead to modifying several snippet such as NewsListing and etc to support this Multi Lingual site. I'm working on ChildDocumentMapper snippet right now, if somebody willing to do the newslisting snippet, it will be great!
Please read the comment on the code, hope that explains, if not, feel free to figure it out by the code, it's a really simple code, you don't need to be a PHP guru to understand it.
Note: 'domain.com - MultiLingual.snippet.modx.txt' is just the configuration file, you can duplicate this if you have several site running on the same installation.
Sample:
[!MultiLingual? &ML_action=`Localization` &ML_locale=`2`!]
[!MultiLingual? &ML_action=`LocalizationImage` &ML_locale=`wendy.jpg`!]
[!MultiLingual? &ML_action=`Translation` &ML_varname=`content`!]
[!MultiLingual? &ML_action=`ListLanguage` &ML_listlangchunktpl=`domain.com - MultiLingual ListLang`!]
Have fun!
Best regards,
Wendy Novianto