hsyong Posted October 12, 2009 Share Posted October 12, 2009 Hi,I added some links in the header.tpl file. Example:<a href="http://www.somedomain.com">{l s='Some text'}</a>When I change to French, it still displays as "Some text" How do I make the text change to French (or other language) when the user changes the language?Can I add to the \themes\mytheme\lang\fr.php file?ThanksPS: I use French as example because the default installation comes with French language.I hope there is no need to use the BO to change the database, as I prefer the theme to be portable to other server and run without needing to add the words in the BO again. 7 Link to comment Share on other sites More sharing options...
mux Posted July 6, 2012 Share Posted July 6, 2012 oh is there any solution????/ Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 6, 2012 Share Posted July 6, 2012 Hi mux, If you add the text to the file as indicated above and follow the correct syntax, hsyong's suggestion above should work just fine. -Mike Link to comment Share on other sites More sharing options...
mux Posted July 7, 2012 Share Posted July 7, 2012 Thanks Mike!!! It helps Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 9, 2012 Share Posted July 9, 2012 Great, I'm glad I could help! I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
mux Posted July 10, 2012 Share Posted July 10, 2012 Hi All... I was able to translate custom words in my theme's tpl files, but i'm still not bale to translate custom words in module's tpl files. Any idea??? Thanks Link to comment Share on other sites More sharing options...
halennoor Posted July 10, 2012 Share Posted July 10, 2012 (edited) Hi All... I was able to translate custom words in my theme's tpl files, but i'm still not bale to translate custom words in module's tpl files. Any idea??? Thanks It really works the same way in modules except it only works after i added the module in. for instance 1. open your module tpl file..e.g. if you are inserting a new word in your homefeatured module, /homefeatured/homefeatured.tpl 2. go to the relevant section within the homefeatured.tpl and insert the line as an example e.g. {l s='OFFER GOOD FOR 24 HOURS!' mod='homefeatured'} 3. then you save the file 4. go to BO>Tools>Translations 5. Modify translation ---choose from the drop down menu Translation of installed modules 6. Choose the flag icon ( e.g. france, italian, or finnish in your case) 7. Find the module from here e.g. homefeatured and the phrase you insert should be there. 8. Enter the translation or modify as you wished--> and then 'update translation'. Test in your front office. Hope it helps Edited July 10, 2012 by halennoor (see edit history) 2 Link to comment Share on other sites More sharing options...
mux Posted July 10, 2012 Share Posted July 10, 2012 hi halennoor: You are awesome and saved my time... Thank you very much. i was depressed how to complete it. Thanks again. It works Link to comment Share on other sites More sharing options...
halennoor Posted July 10, 2012 Share Posted July 10, 2012 no worries mate Link to comment Share on other sites More sharing options...
ricardoferreira.net Posted April 24, 2013 Share Posted April 24, 2013 Thanks halennoor! Works Great! Just a detail/hint, in my case I had to make your toturial selecting the template "default" and not the template that i had installed and activated. Link to comment Share on other sites More sharing options...
Recommended Posts