loliloli Posted November 13, 2013 Share Posted November 13, 2013 (edited) Hi!I'm using Prestashop 1.5.6.0 . Check it here: http://shop.zabavu.com.ua/uk/ I'm having a problem related to the homefeatured translation with "ADD TO CART" and "VIEW". Whatever language I select for the page, I always get "ADD TO CART" and "VIEW" in english. Any idea how can I fix it? Thanks Iurii Edited November 13, 2013 by loliloli (see edit history) Link to comment Share on other sites More sharing options...
loliloli Posted November 13, 2013 Author Share Posted November 13, 2013 homefeatured.tpl file contents: {* * 2007-2012 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 2007-2012 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- MODULE Home Featured Products --> <div id="featured_products"> <h4>{l s='Featured products' mod='homefeatured'}</h4> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul > {foreach from=$products item=product name=homeFeaturedProducts} {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.iteration is div by 4} omega{/if} num-{$smarty.foreach.homeFeaturedProducts.iteration}"> <a class="product_image" href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'tm_home')}" alt="{$product.name|escape:html:'UTF-8'}" /> </a> <div class="featured_box"> <h5><a class="product_link" href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:55:'...'|escape:'htmlall':'UTF-8'}</a></h5> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}{/if} <div class="clear"></div> <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}"><span>{l s='View' mod='homefeatured'}</span></a> </div> </li> {/foreach} </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 localization > translations from first dropdown select "installed modules translations" then select flag and just translate these fields Link to comment Share on other sites More sharing options...
loliloli Posted November 13, 2013 Author Share Posted November 13, 2013 Did not work for me. In "installed modules translations" for my theme 650 I translate all the combinations "ADD TO CARD" But front page does not change Link to comment Share on other sites More sharing options...
loliloli Posted November 13, 2013 Author Share Posted November 13, 2013 (edited) If I understand correctly, I should change module homefeatured. It's correct? Screen: http://piccy.info/view3/5431923/1b0936ef93f35fd2eb18691671cf0da9/ Edited November 13, 2013 by loliloli (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 ok so another question: contents of tpl file that you paste above its a part of file: modules/homefeatured/homefeatured.tpl or themes/YOUR_THEME/modules/homefeatured/homefeatured.tpl ? Link to comment Share on other sites More sharing options...
loliloli Posted November 13, 2013 Author Share Posted November 13, 2013 Way to tpl file: themes/theme650/modules/homefeatured Link to comment Share on other sites More sharing options...
vekia Posted November 14, 2013 Share Posted November 14, 2013 ok, so it should work :/ while you're on localization > translations page you have to select your theme from second dropdown, if you will not select correct theme, it will not work. are you sure that you selected correct theme ? if so, i have no idea what's goin on there, maybe some caching problem (tried to clear cache?) Link to comment Share on other sites More sharing options...
loliloli Posted November 14, 2013 Author Share Posted November 14, 2013 I'm pretty sure that select my theme. Also I clear cache. Once again pic with my localization > translations page where you can see that ADD TO CARD translate, but not displayed on main page. http://piccy.info/view3/5437449/cccb85387280c91186e7f68d7dce075b/ So sad when all site on Ukraine and ADD TO CART on English Link to comment Share on other sites More sharing options...
Recommended Posts