beginning Posted December 29, 2009 Share Posted December 29, 2009 Hi,,,I have search and search + try to follow many advise with no luck at all!Few words like Cart besite log in on top of my website + Cart besite View in featured product box does not tranlate.I did go 100 times and translate in B/O and it is ok there.. I did look on lang file under moduleand all seems to be ok...What is my next step ? Where and what can I look for ?Please help !!Ps. I forgot to tell you that I have new template black and white( free ) and this does only happen when I use that. Link to comment Share on other sites More sharing options...
presta-dyr Posted December 29, 2009 Share Posted December 29, 2009 Do you have a link to the theme you use?/Kjeld Link to comment Share on other sites More sharing options...
beginning Posted December 29, 2009 Author Share Posted December 29, 2009 here it is:http://dgcraft.free.fr/blog/index.php/prestashop-themes/black-white-prestashop-theme/I´m still with my website on localserver so I cant give link to my shop yetThanks in advance Link to comment Share on other sites More sharing options...
Bruno Leveque Posted December 29, 2009 Share Posted December 29, 2009 Hi,Maybe you forgot to add "mod=module" into your translations inside the .tpl module file?Sample: {l s='My string to translate' mod='blocknewproduct'} Best regards, Link to comment Share on other sites More sharing options...
beginning Posted December 29, 2009 Author Share Posted December 29, 2009 I´m a newbie ) “ ” <!-- MODULE Block new products --> {l s='New products' mod='blocknewproducts'} {if $new_products|@count > 0} getImageLink($new_products.0.link_rewrite, $new_products.0.id_image, 'medium')}" alt="{$new_products.0.legend|escape:htmlall:'UTF-8'}" /> {if $new_products|@count > 1}getImageLink($new_products.1.link_rewrite, $new_products.1.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$new_products.1.legend|escape:htmlall:'UTF-8'}" />{/if} {$newproduct.name|strip_tags|escape:htmlall:'UTF-8'}{t text=$newproduct.description_short length='50' strip='true' encode='true'} >" src="{$img_dir}bullet.gif"/> {l s='All new products' mod='blocknewproducts'} {else} {l s='No new product at this time' mod='blocknewproducts'} {/if} <!-- /MODULE Block new products --> “ ” Link to comment Share on other sites More sharing options...
Bruno Leveque Posted December 29, 2009 Share Posted December 29, 2009 Uh... could you modify your post and add "[ code ]" and "[ /code ]" ? (with no spaces)Thanks! Link to comment Share on other sites More sharing options...
beginning Posted December 30, 2009 Author Share Posted December 30, 2009 Hi,,I did notice that " featured product box "on homepage the "Cart"in not translated.However if I click on the "View" the "Cart" is translated on next page..I hope someone can bring up some solution to this proplem...Thanks in advance Link to comment Share on other sites More sharing options...
beginning Posted December 31, 2009 Author Share Posted December 31, 2009 Hi,Im almoust sure that proplem is in this file """Home Featured Products tpl"""I did open and edit this line her:{l s='Add to cart' mod='homefeatured'}change to:{l s='cart' mod='homefeatured'}What happen is that the Cart finally translatebut the box ""Home Featured Products "" did all mix up..Here is the code so if you see some that need to be fix please reply ... THANKS“ ” <!-- MODULE Home Featured Products --> {l s='featured products' mod='homefeatured'} {if isset($products) AND $products} {assign var='liHeight' value=360} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} {foreach from=$products item=product name=homeFeaturedProducts} {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)} {$product.name|escape:htmlall:'UTF-8'|truncate:30} {$product.description_short|strip_tags|truncate:100:'...'} {displayWtPrice p=$product.price} {l s='View' mod='homefeatured'} {l s='Cart' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {else} {l s='Add to cart' mod='homefeatured'} {/if} {/foreach} {else} {l s='No featured products' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products -->“ ” Link to comment Share on other sites More sharing options...
beginning Posted January 1, 2010 Author Share Posted January 1, 2010 nobody that can help me with this ?Thanks in advance Link to comment Share on other sites More sharing options...
michal123 Posted January 11, 2010 Share Posted January 11, 2010 If it possible to translate it in "translations", check if you have set write possibility (777) in your files prestashop\translations and in lang files in modules.PS. I have the same problem in top horizontal menu with "Home" category.Michal Link to comment Share on other sites More sharing options...
motta Posted July 22, 2010 Share Posted July 22, 2010 I think your problem is similar to mine: When changing the "Add to cart" text translation in HomeFeatured Module it only changed the button from the home page, but when you browse the products, it changes the text again...So the solution took some time but it's the good one:The text translation that must be changed is in "themes/prestashop/lang" or whatever theme you're using "themes/yourtheme/lang" and edit your_language.php (eg. es.php), in line 382 (or whatever, just search for the text you want to change).That way you change the "Add to cart" text in all the pages (but home, apparently).Hopefully it will do the trick (or at least to me if i forget this info)! Cheers from Mexico! Tschüss! Link to comment Share on other sites More sharing options...
Arafat Jahan Posted November 20, 2010 Share Posted November 20, 2010 Hi,This is the problem from your theme, not your site, If your translation is ok on default theme, but not ok with Black&white;then do the following step:-1. The main problem is not get translate update on iso.php (e.g. en.php, fr.php, etc) in the theme folder modules, So go to Prestashop/themes/black&white;/modules I mean you need to go your modules folder in theme, not root module folder.2. backup the total modules folder under the theme for if any problem will come then you can replace it.3. now in modules folder you may find some module folder as same name on your root modules folder, May be only for this module your translation is not work. From modules folder in theme(NOT ROOT MODULES FOLDER) open each module folder e.g. "homefeatured" here you will find your language php file like your iso_code.php e.g. en.php(english), fr.php(freanch). Find your language PHP file and delete it from each module folder.4.Please note you are deleting from theme folder Not Root module folder.5. Now Refresh your browser, and it will now translate on your theme Black&white;also.6. It it works then make this post [sOLVED]Thanks,Arafat Jahan 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