Jump to content

Module Backward compatibility - Translation issue 1.5.x


Bluedge
 Share

Recommended Posts

HI,

I'm coding a module and testing it on all 1.5.x versions.

Trying to get full backward compatibility for prestashop 1.5.x

 

I'm having an issue with the translation code in the .tpl file.

{if !isset($we_deliver_h3) || !$we_deliver_h3}
{capture name='h3_tempvar'}{l s='We Deliver Around The World' mod='blockwedeliver'}{/capture}
{assign var='we_deliver_h3' value=$smarty.capture.h3_tempvar}
{/if}
{l s='%1$s' sprintf=$we_deliver_h3 mod='blockwedeliver'}

 

In PS version 1.5.0.9. the last line of code produce the following in the translation admin page:

%1$s' sprintf=$we_deliver_h3 mod='blockwedeliver

 

Most importantly the sprintf seems to fail on the front end displaying a hugly:

%1$s in place of the text.

 

I'm not sure why sprintf fails and how to make this work properly on all versions of PS 1.5.x

 

Note: The module works as expected in PS 1.5.4.1 and 1.5.3.1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More