smooglerpl Posted March 16, 2015 Share Posted March 16, 2015 (edited) Hi. Why below translation doesn't work in my product-list.tpl ? Everything else on page is translated well but not this. {l s="Add to Wishlist" mod='blockwishlist'} Edited March 16, 2015 by smooglerpl (see edit history) Link to comment Share on other sites More sharing options...
SirPresta Posted March 16, 2015 Share Posted March 16, 2015 Just remove " mod='blockwishlist' " {l s="Add to Wishlist"} When you edit shop page templates like product.tpl , product-list.tpl you shoudn't use mod argument. Link to comment Share on other sites More sharing options...
smooglerpl Posted March 16, 2015 Author Share Posted March 16, 2015 It's still doesn't work. I also know that I could go to translations and translate it manually but this must work without manual translation. Link to comment Share on other sites More sharing options...
jgamio Posted March 16, 2015 Share Posted March 16, 2015 The text is not on product-list.php is on blockwishlist module Where did you change the translations BackOffice -> Locations -> Translations -> Then Select 1) installed modules translation 2) your theme 3) your language Link to comment Share on other sites More sharing options...
smooglerpl Posted March 16, 2015 Author Share Posted March 16, 2015 The text is not on product-list.php is on blockwishlist module Where did you change the translations BackOffice -> Locations -> Translations -> Then Select 1) installed modules translation 2) your theme 3) your language I don't wanna to change/create translations in BackOffice. {l s="Add to Wishlist" mod='blockwishlist'} This line should work without my manual translation because it's just translated in blockwishlist module. The problem is, that "Add to Wishlist" is not being translated, I still see English instead of Polish. Link to comment Share on other sites More sharing options...
jgamio Posted March 16, 2015 Share Posted March 16, 2015 Ok you dont want change the translation but you need at least check if exist Go to the admin and check if you dont have the translation text. Without the text the translation is not going to work Link to comment Share on other sites More sharing options...
smooglerpl Posted March 16, 2015 Author Share Posted March 16, 2015 Ok you dont want change the translation but you need at least check if exist Go to the admin and check if you dont have the translation text. Without the text the translation is not going to work If I add: {l s="Add to Wishlist"} Presta tells me that one tralnslation for product-list is missing. But if I add: {l s="Add to Wishlist" mod='blockwishlist'} Then presta tells nothing (also in modules translations) Link to comment Share on other sites More sharing options...
jgamio Posted March 16, 2015 Share Posted March 16, 2015 Ok 1) {l s="Add to Wishlist"} => You are create a new label for your theme you can put that in your language you can put {l s="Any text any language you put"} but the best is keeping on englsh and use to language in a translations 2) {l s="Add to Wishlist" mod='blockwishlist'} => Look for module translations You can fix only your language put the text as 1 but if you want keep multilanguage you must do it on backoffice if you don want dont change text but look what your backofficee say you use in case Add to Wishlist Link to comment Share on other sites More sharing options...
smooglerpl Posted March 16, 2015 Author Share Posted March 16, 2015 Sorry, I don't understand what you are exactly trying to tell me. Tell me, why in this location: www\themes\mytheme\modules\blockwishlist\blockwishlist_button.tpl line 28 following line: {l s="Add to Wishlist" mod='blockwishlist'} works. I mean "Add to Wishlist" is translated proper to "Dodaj do listy życzeń" ? But It doesn't work if I put this line into product-list.tpl ? I'm theme developer. I don't want to force users to manual translation of every stupid line of code. This should work because it works in blockwishlist_button.tpl. Link to comment Share on other sites More sharing options...
jgamio Posted March 16, 2015 Share Posted March 16, 2015 Because {l s="Add to Wishlist" mod='blockwishlist'} is in the module Prestashop look for the module translations if you put {l s="Add to Wishlist" mod='blockwishlist'} direct on the product-list.php is not going to find the translations Link to comment Share on other sites More sharing options...
smooglerpl Posted March 16, 2015 Author Share Posted March 16, 2015 Because {l s="Add to Wishlist" mod='blockwishlist'} is in the module Prestashop look for the module translations if you put {l s="Add to Wishlist" mod='blockwishlist'} direct on the product-list.php is not going to find the translations Is there any way to call module translation from product-list ? What about hooks ? Link to comment Share on other sites More sharing options...
jgamio Posted March 16, 2015 Share Posted March 16, 2015 product-list.tpl has his own translation file. on Front Office If you develop themes at some point going to need add text on your theme that is not on Prestashop. Maybe you can hook you wish buttom for the module but these is another thing 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