Jump to content

How to add expressions to a module


Lince

Recommended Posts

Hello,

I found that the bank wire module is missing some expressions. Is there any tutorial explaining how to add new expressions ?

Or can anybody explain how to do it ?

 

File missing expressions for this template:

modules/ps_wirepayment/views/templates/hook/payment_return.tpl

This are the translation files:

app/Resources/translations/es-ES/ModulesWirepaymentShop.es-ES.xlf

app/Resources/translations/en-US/ModulesWirepaymentShop.en-US.xlf

Only two expressions are defined:

        <source>Your order on %s is complete.</source>
        <source>Please send us a bank wire with:</source>
 

And a few of them are missing:

      {l s='Please specify your order reference %s in the bankwire description.' sprintf=[$reference] d='Modules.Wirepayment.Shop'}<br/>
      {l s='We\'ve also sent you this information by e-mail.' d='Modules.Wirepayment.Shop'}
      {l s='Your order will be sent as soon as we receive payment.' d='Modules.Wirepayment.Shop'}

      {l s='If you have questions, comments or concerns, please contact our [1]expert customer support team[/1].' d='Modules.Wirepayment.Shop' sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']}

 

Thank you.

Link to comment
Share on other sites

Hi,

As mentioned in the URL http://forge.prestashop.com/browse/BOOM-5139, Its a bug in the PS. Also, Refer to the same URL to fix the same.

 

Solution:

Copy the file i.e.

modules/ps_wirepayment/views/templates/hook/payment_return.tpl

to 

themes/your_theme/modules/ps_wirepayment/views/templates/hook/payment_return.tpl

After that, You will then be able to translate all strings as part of your theme (International -> Translations -> Theme)

 

We have tested the same at our end & it seems to be working fine. Kindly check & verify.

Link to comment
Share on other sites

 

20 hours ago, Knowband Plugins said:

Solution:

Copy the file i.e.

modules/ps_wirepayment/views/templates/hook/payment_return.tpl

to 

themes/your_theme/modules/ps_wirepayment/views/templates/hook/payment_return.tpl

After that, You will then be able to translate all strings as part of your theme (International -> Translations -> Theme)

 

 

Thank you, works great.

Link to comment
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
×
×
  • Create New...