target_locked Posted September 13, 2008 Share Posted September 13, 2008 Hi there,I'd like to know how to make the info block (about-us, delivery, conditions...) support multi language.Now what I know is to modify the files:\themes\prestashop\about-us.tpl \delivery.tpl \conditions.tpl \mentions.tplBut that affect for all language (all language are same)How to make them different for different language?Thanks. Link to comment Share on other sites More sharing options...
fdesigns.co.uk Posted September 16, 2008 Share Posted September 16, 2008 Hi You can do this by modifying the file about-us.php (root folder)you need to modify the line: $smarty->display(_PS_THEME_DIR_.'about-us'.$iso.'.tpl'); rename the template file from : about-us.tpl to the language your want to support and also add another file for the other language. for instance: about-us_en.tpl (for english) about-us_fr.tpl (for french)etc...I hope this is helpful. Link to comment Share on other sites More sharing options...
fdesigns.co.uk Posted September 16, 2008 Share Posted September 16, 2008 rectification: $smarty->display(_PS_THEME_DIR_.'about-us_'.$iso.'.tpl'); thanks Link to comment Share on other sites More sharing options...
fdesigns.co.uk Posted September 16, 2008 Share Posted September 16, 2008 Forgive my sillyness!!!below is the correct post:You can do this by modifying the required file like about-us.php (root folder)you need to modify and add some code: $iso = Language::getIsoById($cookie->id_lang); $smarty->display(_PS_THEME_DIR_.'about-us_'.$iso.'.tpl'); rename the template file from : about-us.tpl to the language you want to support.and also add another file for the other language. for instance: about-us_en.tpl (for english) about-us_fr.tpl (for french)etc…I hope this is correct now.... again sorry I keep forgetting things... Link to comment Share on other sites More sharing options...
target_locked Posted September 17, 2008 Author Share Posted September 17, 2008 fdesigns,Thank you very much for the instruction. Now it support multi language.But I also would like to know how to input formatted paragraphs in the tpl file?I try to input many para but in the web, all are combined in to only one para !! And they are only displayed as plain text.Thanks, Link to comment Share on other sites More sharing options...
fdesigns.co.uk Posted September 17, 2008 Share Posted September 17, 2008 HiThe best way I can suggest is to write your text in a html editor, then get the source (html) and paste into your .tpl file. there are plenty free online editors, one of them is FCKeditor. You can also do in Dreamweaver if you got one.Or if you have some html knowledge just add tags into your text.ie: First para.... second para.... Hope this is helpful.regards.fdesigns.co.uk Link to comment Share on other sites More sharing options...
Bryan Lee Posted September 16, 2010 Share Posted September 16, 2010 Hi,In the BO/Tools/CMS, all file CMS (about us, delivery, ect..) you can write multi-lang, click on the flag for choose your language.Hope this is helpful. Link to comment Share on other sites More sharing options...
Bryan Lee Posted August 8, 2012 Share Posted August 8, 2012 Hi all, Can we please have a tutorial on adding multi- language text for the input? My question at http://www.prestashop.com/forums/topic/181485-how-to-editwrite-module-multi-lingual-in-bo/ but nobody answer. Tks 1 Link to comment Share on other sites More sharing options...
Recommended Posts