rainlab / mailchimp-plugin

Provides MailChimp integration services
MIT License
11 stars 16 forks source link

Mailchimp API response messages language #34

Open dedric81 opened 4 years ago

dedric81 commented 4 years ago

Anyone know if is possible translate error messages from English (default) to another language? I need to traslate errors in Italian. thx

bennothommo commented 4 years ago

@dedric81 Which error messages are you referring to? If you mean the messages in the component, you would need to override the components/signup/results.htm partial within your theme. You may follow these instructions in order to do this.

dedric81 commented 4 years ago

Sorry, I mean messagges of mailchimp api, not only errors.

Exemple: "Sorry there was an error: 400: myemail@email.com is already a list member. Use PUT to insert or update list members._

https://mailchimp.com/developer/guides/error-glossary/

bennothommo commented 4 years ago

@dedric81 I don't believe you can change the error language from Mailchimp directly. Translating those would require the plugin to intercept those errors and then provide a translatable message, as opposed to simply passing through the error from Mailchimp.