jaimegomez Posted February 6, 2014 Share Posted February 6, 2014 (edited) I got a problem with blockuserinfo translation. My Prestashop version is 1.5.6.1 and my template is this one http://www.templatemonster.com/demo/47522.html I've tried everything but I couldn't translate the login button. I've checked Translations ==> Installed modules translations ==> My theme, but I cannot translate it. I've disabled cache and force compilation on but nothing. Translations only display when you leave the cursor on the login and I want to translate the word. Does anyone know what to do? I'm completely stuck. Thanks. Edited February 9, 2014 by jaimegomez (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 7, 2014 Share Posted February 7, 2014 can you show contents of module .tpl file please? i suppose that it is hardcoded or it uses wrong {l s=''} function method (without mod='' definition) Link to comment Share on other sites More sharing options...
jaimegomez Posted February 7, 2014 Author Share Posted February 7, 2014 <!-- Block user information module HEADER --> <section class="blockuserinfo header-box"> {if $logged} <a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" class="logout" ><span title="{l s='Log out' mod='blockuserinfo'}">Logout</span></a> {else} <a href="{$link->getPageLink('my-account', true)|escape:'html'}" class="login" ><span title="{l s='Login' mod='blockuserinfo'}">Login</span></a> {/if} </section> <section id="header_user" class="blockuserinfo-cart header-box {if $PS_CATALOG_MODE}header_user_catalog{/if}"> {if !$PS_CATALOG_MODE} <div id="shopping_cart"> <a href="{$link->getPageLink($order_process, true)|escape:'html'}" title="{l s='View my shopping cart' mod='blockuserinfo'}" rel="nofollow"> <i class="opancart icon-chevron-sign-down"></i> <span class="shopping_cart_title">{l s='Cart' mod='blockuserinfo'}</span> <span class="ajax_cart_quantity" {if $cart_qties == 0} style="display:none"{/if}>{$cart_qties}</span> <!--span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='Product' mod='blockuserinfo'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='Products' mod='blockuserinfo'}</span--> {*<span class="price ajax_cart_total" {if $cart_qties == 0} style="display:none;"{/if}> {if $cart_qties > 0} {if $priceDisplay == 1} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)} {else} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} {/if} {/if} </span>*} <span class="ajax_cart_no_product" {if $cart_qties > 0} style="display:none;"{/if}>{l s='(empty)' mod='blockuserinfo'}</span> </a> </div> {/if} </section> Link to comment Share on other sites More sharing options...
webdev0008 Posted February 8, 2014 Share Posted February 8, 2014 Hi you need to change this {if $logged} <a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" class="logout" ><span title="{l s='Log out' mod='blockuserinfo'}">{l s='Logout' mod='blockuserinfo'}</span></a> {else} <a href="{$link->getPageLink('my-account', true)|escape:'html'}" class="login" ><span title="{l s='Login' mod='blockuserinfo'}">{l s='Login' mod='blockuserinfo'}</span></a> {/if} Link to comment Share on other sites More sharing options...
vekia Posted February 8, 2014 Share Posted February 8, 2014 strange, because language functions are properly coded (with mod='blockuserinfo'} while you translating this text (in back office > localization >translations) after save, your changes are properly saved? Link to comment Share on other sites More sharing options...
jaimegomez Posted February 9, 2014 Author Share Posted February 9, 2014 Thanks, both. Firstly I could solve everything modifying blockuserinfo.tpl as webdev0008 has indicated. Before that, when I tried to translate this module in back office the changes didn't appear in front office, even though I could save that translations. Vekia if you're interested to find out the reason and you need something, just let me know. SOLVED Link to comment Share on other sites More sharing options...
Recommended Posts