That’s a great idea Carsten... now I’ll leave it up to you code-minded and multi-lingual folks to start the discussion!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
I’m already including a "langs" folder in my snippet folder (assets/snippets/mysnippet/langs), with a basic lang.php file that has an array of variables for replacing all of the text strings displayed by the snippet. Of course, for me, it’s in English, but it would be easy enough to translate it.
I use some form of the snippet name (such as $_docman[’whatever’] = "Whatever"; for the document manager snippet) to keep things organized. The snippet looks for a "lang" variable (I’m using cookies for language session management for multilanguage sites, it could be stored in the SESSION variable, but that requires hacking the login/logout snippet, or the URL, which also requires some hacking of various scripts, including all menu snippets), or it just uses the lang.php file as default.
It’s pretty simplistic, I know, but it works.