Jump to content

[solved] - Smarty tag - architecture internationalization


Recommended Posts

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=1

This 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

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

×
×
  • Create New...