TheMacros Posted May 1, 2017 Share Posted May 1, 2017 On this page http://developers.prestashop.com/module/05-CreatingAPrestaShop17Module/06-ModuleTranslation.html written: Strings are delimited with single quotes. If a string contains single quotes, they should be escaped using a backslash (\). This is works in PS 1.6 but it didnt in 1.7 My code is {l s='We\'ll guide you through adding' mod=''} but it displays We\'ll guide you through adding How to include single quotes in translated strings? Link to comment Share on other sites More sharing options...
phinq1910 Posted May 2, 2017 Share Posted May 2, 2017 Please check again, seem still working Link to comment Share on other sites More sharing options...
TheMacros Posted May 2, 2017 Author Share Posted May 2, 2017 This is dont works with mod='mymod' but works with d='Modules.mymod' But in PS 1.6 d='Modules.mymod' not working :| Link to comment Share on other sites More sharing options...
phinq1910 Posted May 2, 2017 Share Posted May 2, 2017 on 1.6, please try use mod= Link to comment Share on other sites More sharing options...
TheMacros Posted May 2, 2017 Author Share Posted May 2, 2017 yes, but its mean I must use two diffrent templates - one for 1.6 and one for 1.7 Link to comment Share on other sites More sharing options...
phinq1910 Posted May 2, 2017 Share Posted May 2, 2017 Yes, I think you can try to check version_compare and switch to the case that you want. 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