Hello there dear modx community
We went a different path with our multilingual website. We tried Babel and Lingua. Both are great but didn't provide what we ultimatively needed. We produced a plugin that saves resources as xliff and uploads the files to the crowdin plattform. There our translator can do his work and manage the process. If some translations are ready, the files are pulled automatically and are then integrated into the modx system.
The last part we need are multilingual friendly urls. Now the only way to do that I found so far would be to manipulate two core functions:
- getResourceURI() in modcontext.class.php
- findResource() in modx.class.php
together with a custom made alias-map.
I'm very reluctant to modify core functions for obvious reasons. Are there other ways to hook that deep into the system without breaking the possibility for worryfree updates? I guess it would be a plugin with one or more of the system events. But would that work? We would need [[~LINK_ID]] to produce a friendly url in the current language for example.
Hopefully somebody can point out a more sustainable road.
Sincerely yours, Adrian
[ed. note: adrian.demleitner last edited this post 11 years, 1 month ago.]