I have a hacked solution that does produce reasonable results. Have a look here.
The implementation is pretty trivial. For example to create a translated property description, create two custom fields, one for each language.
In the view template or wherever the description is to be dispplayed, wrap each custom field in a SPAN, DIV or other element that has the lang attribute set to the language of the field content (e.g. lang="es-ES").
You just need to add a little jQuery to your skin to remove all the elements that have their language attribute set and that don't match the page language.
/* jQuery("[lang][lang!='"+ jQuery("html[lang]").attr('lang')+ "']").remove(); */
There's an overhead as both descriptions have to be passed to client, but it works pretty well. |