In order to translate the texts written directly in the template file, for the interface or in your PHP class, you need to use the __('Your text here')
method. Magento looks for a corresponding match within all the translation CSV files.
There is nothing to be declared in XML; you simply have to create a new folder at the root of your module and create the required CSV:
Create the
[extension_path]/i18n
folder.Create
[extension_path]/i18n/en_US.csv
and add the following code:"Event time:","Event time:" "Please sign in to read more details.","Please sign in to read more details." "Read more","Read more" Create [extension_path]/i18n/en_US.csv and add the following code: "Event time:","Date de l'évènement :" "Pleasesign in to read more details.","Merci de vous inscrire pour plus de détails." "Read more","Lire la suite"