I planned to use the Custom Text (text string variable loader) plugin of wazdog (Thanks!). Similars things can be done also with this.
In what ways is “LG Multi Language” better than “Custom Text”? (accept the subdomain support and the global variables)
I hadn’t seen that extension before. 😊
I guess the main difference between that and mine is that my addon translates text into a default language based on the url or subdomain. The benefit of that is the user doesn’t have to be a member and can change between languages by clicking links.
It also means that the url will be different for multi-language pages which will greatly help with SEO.
I had previously thought of the idea of being able to specify a different language to the one determined by the URL segments or subdomain:
{exp:lg_ml:translate p="my phrase" lang="it"}
and it will probably be included in the next release.
Another feature of my addon is that it works with EE’s pages module. So
<a href="http://mysite.com/my_page">http://mysite.com/my_page</a>
and
<a href="http://mysite.com/my_page/it">http://mysite.com/my_page/it</a>
will render the same page and template. Previously if you added the extra segment the pages module would see that as a different url and not render the correct page.
Cheers Leevi