mosspower Posted April 27, 2010 Share Posted April 27, 2010 Hello,I don't have much experience in PHP and don't understand the smarty tag{l s='Contact us'}What does it mean. I think the l stands for language and s for standard. Is that so? I can't find the french labels when I switch to the locale french. Where can I find them. I neither couldn't find them in the database nor in any files.Example: URI: http://localhost/prestashop/order-slip.php?id_lang=1This will display the english text (id_lang=1), for example "canceled orders" ... I can find the label in the corresponing TPL-file, but for the id_lang=2 = french, I couldn't find any text, for example 'annulations de commandes'.Where can I find the text? I'm stuck here. Is it compiled or what?Thx for any help in advance! Link to comment Share on other sites More sharing options...
tomerg3 Posted April 27, 2010 Share Posted April 27, 2010 l is a prestashop defined function (which is used to translate strings), it is passed to smarty so it can be used in templates.s is the string that will be passed to the translation function.You define the translations based on the text you enter in the tag in the backoffice Tools->Translations->Front office translations, and click on the flag you want to translate to. Link to comment Share on other sites More sharing options...
mosspower Posted April 28, 2010 Author Share Posted April 28, 2010 Thx a lot for your explanations.One question remains. Where are those text labels saved and in what format?I neither can't find them in the database nor in any text file.Is it compiled or saved in binary characters? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 28, 2010 Share Posted April 28, 2010 They are saved in the file system, front page stuff is saved in /translations and modules are in /modules/modulename/2letteriso.php Link to comment Share on other sites More sharing options...
mosspower Posted April 28, 2010 Author Share Posted April 28, 2010 I found the needed text labels in /themes/themes-name/lang/[iso].php ...I don't know, why I couldn't find them in the first place.Thank you very much for your help and hints. Link to comment Share on other sites More sharing options...
rocky Posted April 29, 2010 Share Posted April 29, 2010 If your issue is resolved, please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts