Feature request: Multi-language
I'm currently using another extension to provide multi-language translation of snippets for the interface. It does this by looking at the user_language variable settings in path.php and matching it to the field for that language. It would be so useful if this also provided such a feature. It would only be needed for text input and textarea fields.
Replies
Low 20 Jan 2010 16:18
If you're using a path.php variable to obtain the language, you can probably already create multi-language items. Just create multiple variables for each snippet of text, for example:
{prefix_group_var1_en} and {prefix_group_var1_nl} (both text inputs or textareas) and turn off early parsing for those.
Then, in your template, use the path.php variable to get the right one: {prefix_group_var1_{user_language}}
Does that make sense?
robin 20 Jan 2010 18:05
Makes perfect sense. Thanks :)