Posted: March 13, 2016 at 4:22 am
|
Hi, I’ve translate in the french file /wp-content/uploads/espresso/languages/event-espresso-4-fr_FR.mo For example : Bank Draft = virement bancaire in french. What do I need to do ? Thank you very much |
Hi there, You actually set those values within Event Espresso itself. Go to Event Espresso -> Payment Methods -> Bank. You’ll find something like this – http://take.ms/DHXFP The Admin Only Description field is used first (if there is a value) if that is empty the Admin Only Name will be used. So mine currently shows ‘Bank Draft – Description’ as a payment option – http://take.ms/eMbQp Then if I remove the description – http://take.ms/nsbnj It will show the Admin Only Name, which is ‘Bank Draf – Testing’ – http://take.ms/GJ6qA |
|
|
I succed to translate Bank draft and Invoice. Thanks But now if I want to translate all the list how can I do? |
The others are translation ready strings. So you can use PoEdit and upload a new .mo file or use a translation function: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ |
|
|
It’s already translate but it’s not working look this 2 pictures. |
You’ll need to generate an .mo file from PoEdit and upload it to your server for the translation to take effect. |
|
|
I know that. I already made that look So? |
|
|
Hi Olivier, So the problem here is that when you activate EE it creates the ‘Admin Only’ payment methods that you can see in the TXN dropdown. At that point it will use any translations it currently has at that initial activation when the payment method is created and stores the strings within the database. So right now your translating the strings, but they aren’t actually used because the payment method has been created and the values are being read directly from the database. So that explains why you translations is not ‘working’, but we have another problem…. Event Espresso hides ‘Admin Only’ payment methods from view by default, meaning you can’t see these additional payment methods and you can’t alter the strings used within those payment methods without editing the database (which we advise against if possible) So we need a way for you to edit the current admin only payment methods within the database so that you can update the strings that have been saved. For that I’ve created this plugin: https://gist.github.com/Pebblo/73442872b283f9fc46be Install that plugin and activate it on your site, then go to Event Espresso -> Payment Methods. Now you’ll see more payment methods in that section as it includes all payment methods within EE. Click on the Cash payment method – http://take.ms/A21gp The ‘Admin only description’ is used first, if that is empty it uses the Admin only label field. So change the string to fit and save the payment method. Now refresh the transaction and click to apply a payment, you should see the changed text – http://take.ms/dgFUY Repeat that for all of the payment methods you want to change… Once finished, de-activate the plugin I provided above, you do not want that to be left active on the site. Important note: Do not leave this plugin activated on the site, it overrides the payment methods pulled in by EE and then replaces the current array with another that contains all the payment methods, use it to access the payment methods needed and then de-activate it. End note |
|
|
Very very good. Thanks |
You’re most welcome 🙂 |
|
The support post ‘Translate Mode of transaction’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.