Jump to content

Module wont translate


Recommended Posts

Hello

On site www.tradealot.dk i got a "New products" module. I want the text "New products" and "All new products" translated

 

I translated this module in the "Translation" menu under the "Intsalled modules" and picked my current theme and pressed on the danish flag.

 

I translated the field i could but it wont change?

Link to comment
Share on other sites

This is how it looks:

{*
* 2007-2011 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-2011 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 Block new products -->
<div id="new-products_block_right" class="block new_products_block">
	<h4><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blocknewproducts'}">{l s='New products' mod='blocknewproducts'}</a></h4>
	<div class="new_block_content">
	{if $new_products !== false}
		<ul class="product_images clearfix">
		{foreach from=$new_products item='product' name='newProducts'}
			{if $smarty.foreach.newProducts.index < 0}
			{/if}
		{/foreach}
		</ul>
		<dl class="products">
		{foreach from=$new_products item=newproduct name=myLoop}
		<h5 class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}" title="{$newproduct.name|escape:html:'UTF-8'}">{$newproduct.name|strip_tags|escape:html:'UTF-8'}</a></h5>
			{if $newproduct.description_short}<dd class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}">{$newproduct.description_short|strip_tags:'UTF-8'|truncate:50:'...'}</a></dd>{/if}
			<a href="{$newproduct.link}" title="{$newproduct.name|escape:html:'UTF-8'}"><img src="{$link->getImageLink($newproduct.link_rewrite, $newproduct.id_image, 'medium_default')}" height="{$mediumSize.height}" width="{$mediumSize.width}" style="margin-left:3px" alt="{$product.legend|escape:html:'UTF-8'}" /></a>

		{/foreach}
		</dl>
		
	{else}
		<p>{l s='No new products at this time' mod='blocknewproducts'}</p>
	{/if}
	</div>
</div>
<!-- /MODULE Block new products -->
Link to comment
Share on other sites

But you can it wont work on the site. The translation looks like this(the test(number) is to locate if that term would be the "New products":

<?php

global $_MODULE;
$_MODULE = array();
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_a350c817c442e14df97e5e0aa45c4a89'] = 'Nyeste vare';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_97ee43847e51bc920f083a1ae467527a'] = 'test1';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_57af4b7e82ba04c42eb3ac111310a505'] = 'test2';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_73293a024e644165e9bf48f270af63a0'] = 'test3';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_f4d1ea475eaa85102e2b4e6d95da84bd'] = 'test4';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_c888438d14855d7d96a2724ee9c306bd'] = 'test5';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_f4f70727dc34561dfde1a3c529b6205c'] = 'test6';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_e451e6943bb539d1bd804d2ede6474b5'] = 'Vis produkter';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_cc4bbebd6a8d2fb633a1dd8ceda3fc8d'] = 'test7';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_530c88f8210e022b39128e3f0409bbcf'] = 'test8';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'test9';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_b9f5c797ebbf55adccdd8539a65a0241'] = 'test11';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_53d61d1ac0507b1bd8cd99db8d64fb19'] = 'test12';
$_MODULE['<{blocknewproducts2}trade>blocknewproducts2_c9cc8cce247e49bae79f15173ce97354'] = 'Gem';

Link to comment
Share on other sites

×
×
  • Create New...