SirDiegoSama Posted October 1, 2011 Share Posted October 1, 2011 Hi, I added the blockcms module to my prestashop website and configured it to show 3 page links in the footer block. One link is to contact-form.php page and it works greatly (it is correctly shown in both languages available). This is the related line in the blockcms.tpl file: <li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> I removed all the other links (New products etc..) and I put there other two links to a couple of pages form CMS "Home" category (About us and Terms and conditions). I wrote them this way: <li class="item"><a href="http://pageURL" title="{l s='About us' mod='blockcms'}">{l s='About us' mod='blockcms'}</a></li> <li class="item"><a href="http://pageURL" title="{l s='Terms and Conditions' mod='blockcms'}">{l s='Terms and Conditions' mod='blockcms'}</a></li> They work, but if I switch the language, only the page will be translated, while the link title in the footer doesn't change to the selected language as the "Contact us" link does. I also found the translation page in the blockcms folder which has this line (I suppose) to translate the "Contact us" text: $_MODULE['<{blockcms}prestashop>blockcms_02d4482d332e1aef3437cd61c9bcc624'] = 'Contattaci'; Should I create a new line to translate the other two titles? What do the numbers and letters (red ones) in that line represent? Hope someone can help me! Thank you! Link to comment Share on other sites More sharing options...
webLion Posted April 21, 2015 Share Posted April 21, 2015 Hi, Im having a similar problem, although im using the blockpermanentlinks module (on a PS 1.6.11 inst.). My goal is to place links to newly created CMS Pages in the top-header of the page, I have tried several different ways of getting the link, which all have worked, the link is there, functioning great. But the translation does not happen when i switch between language options.Any clue on how to solve this would be greatly appreciated. The code im using to call the links in blockpermanentlinks-header.tpl is; <ul id="header_links"> <li id="header_link_contact"><a href="{$link->getPageLink('contact', true)|escape:'html'}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li> <li><a href="{$link->getPageLink('cms.php?id_cms=9', true)|escape:'html'}" title="{l s='CMSpagename1' mod='blockpermanentlinks'}">{l s='CMSpagename1' mod='blockpermanentlinks'}</a></li> <li><a href="{$link->getPageLink('cms.php?id_cms=3', true)|escape:'html'}" title="{l s='CMSpagename2' mod='blockpermanentlinks'}">{l s='CMSpagename2' mod='blockpermanentlinks'}</a></li> </ul> Link to comment Share on other sites More sharing options...
electriz Posted April 21, 2015 Share Posted April 21, 2015 Did you check if new strings (CMSpagename1, CMSpagename2) are visible in Localization > Translations > Installed modules translations for target language? 1 Link to comment Share on other sites More sharing options...
webLion Posted April 22, 2015 Share Posted April 22, 2015 (edited) Thank you for the reply electriz!I was under the impression that the button name would be translated automatically using the title name field of the CMS page itself. But that did not work. You were right the newly added strings could be translated directly from the localization -> translation-> installed modules -> blockpermanentlinks section, and there they were, ready to be translated. It works great now! Edited April 22, 2015 by MiguelLeon (see edit history) 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