hello,
i want to make a multilanguage site with three languages (en, de, fr). i read about some ways to use babel and migx, but at this moment i dont want to use this plugins. Babel writes on his page that putting resources into containers would be a better solution, but dont have a working plugin yet (
http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html).
so my idea is to split every languages in an own context and save translations under "context settings" (e.g. read more/mehr lesen/En savoir plus for a Button), because i have some chunks that i dont want to duplicate.
to set the right context i need a plugin for context routing (e.g. ContextRouter) and modified it (like getting language key as get parameter), no problem.
but i only have one single domain, i dont want to use subdomains and of coarse, i want to keep the url simple, so i dont want to use "use_alias_path" too. the problem is to get a key from the requested url to decide which context the requested resource must use (i dont want to make an overkill with database querys on the beginning).
problem: generating urls via [[~[[+id]]]] or Wayfinder
maybe i can set a "context setting" like "langKey" with value "de/" and put it before the url ([[++langKey]][[~[[+id]]]].
so my question is: are my ideas completely wrong? should i enter into a compromise? how do you solve a challenge like this?
thank you for your input and have a good night