en Jump to content
  • 0
Lince

How to add expressions to a module

Question

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.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

 

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.

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

×

Important Information

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