Neilsen Posted December 4, 2019 Share Posted December 4, 2019 Hello I'm using prestashop 1.7.6 and I would like to translate my hompage. But I have noticed that the content of the hompage is created through a module called 'Itcustomhtml' in its 'SampleDataHtml.php' I want to translate it in french but I don't know how to proceed. In tpl file, it's pretty easy just need to add {l s="my word" d="Shop.Mymodule"}. But since the content is generated in an sql thetranslation is not working. Someone can help me achieved this please? This is a sample of my SampleDataHtml.php. I would like to translate the <h3> tag and <p> tag.Can someone help please? <?php /** * 2015-2018 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2015-2018 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class SampleDataHtml { public function initData($base_url) { $content_block1 = ' <div class="container"> <div class="top_bennar_sec clearfix"> <div class="col-md-6 push-md-6 hidden-sm-down"><img src="{static_block_url}modules/itcustomhtml/views/img/about-us.png" alt="" class="img-responsive" width="auto" height="auto" /></div> <div class="col-md-6 pull-md-6"> <h3 class="sec-heading">Our chef d oeuvre ... yummie!</h3> <p>Portuguese sweet bread is a bread made with milk, sugar, eggs, yeast, flour and sometimes lemon peel to produce a subtly sweet lightly textured loaf or rolls.Portuguese sweet bread is a bread made with milk, sugar, eggs, yeast, flour.</p> <ul class="top-banner-icn"> <li><svg viewbox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m183.464844 95.730469c2.628906 0 5.207031-1.070313 7.070312-2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now