en Jump to content
  • 0
prettyface

classes\PaymentModule.php line 408

Question

Hello everybody!

 

In classes\PaymentModule.php line 408

 

I can`t find the location of the translation : $this->l('Voucher code:')

 

Where can I find the location of the *.php file with the translation?

Where does the translation of the core modules are located?

 

Prestashop ver 1.4.8.2

 

Thank you!

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

All translations can't be maded trought the Back Office->Tools->Translations

 

In the dropdown menú you can find "Module Translations" or "Front Office Translations" .

Hope this help

Share this post


Link to post
Share on other sites
  • 0

Thank you for reply.

 

Unfortunately it does`n help because I`ve searched from the Back Office already.

 

In the Back Office I`ve found only the translation for "Voucher code" for the mailalerts module.

 

And I need a translation for the base class "PaymentModuleCore" located in PaymentModule.php

 

Kind regards,

Yuriy

Share this post


Link to post
Share on other sites
  • 0

When customer finishes the order, bankwire module sends a e-mail with invoice to the client.

In the e-mail template (order_conf.html) there is {discounts} field.

This field is transformed by PaymentModule.php to the "Voucher code: SOME_CODE" phrase.

In my invoice "Voucher code:" is not translated.

 

Thank you!

Share this post


Link to post
Share on other sites
  • 0

to translate a class that is not shown in your back office translations, you need to a add the class to youradminfolder/tabs/AdminTranslations.php

 

in your case add the following line of code:

 $tabs[] = '../../classes/PaymentModule.php';

 

08.31.2012-10.03.22.png

http://screencast.com/t/yRyskVCb6

 

would produce the following back office xlation display:

08.31.2012-10.05.23.png

http://screencast.com/t/aW45fFpMg

 

Please note I did not test if this made a difference to the front office.

Share this post


Link to post
Share on other sites
  • 0

Hi! I don't found the youradminfolder/tabs/AdminTranslations.php file on PS 1.6. It should be changed to other name or file. Someone can tell us where to edit this on newer versions of PS?

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