-
AuthorPosts
-
May 11, 2015 at 1:13 am #270500
Hello,
I’m using Loco Translate. It works for the theme translation, but I can’t figure how to do it with your plugins. I experimented with mo/po files localisation – I tried to put them in general languages folder, in plugin root and in plugin root / lang. No one worked.
Please do not send me to KB, I read all articles, but there is no answer to my problem. Thanks in advance. S
May 11, 2015 at 1:25 am #270502Hi,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
May 11, 2015 at 1:36 am #270506This reply has been marked as private.May 11, 2015 at 2:00 am #270516Hi,
Thank you for providing your url.
Is this the form you are referring to?
http://screencast.com/t/96CuQmUAodw
Looks like it is already translated?
If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
May 11, 2015 at 2:27 am #270527Hello ThemeCo!
Kind as always. I cannot say how much I appreciate your work 🙂
Sorry for being too general. That’s exactly the form you’ve showed on screen. The translation problem occure when the error is displayed:
I tried to translate it with Loco Translator as I described in first post.
I experimented with mo/po files localisation – I tried to put them in general languages folder, in plugin root and in plugin root / lang. No one worked.
Still, no results.
May 11, 2015 at 2:48 am #270538Hi,
The error message is a response message from mailchimp while trying to add your email into your list.
Please contact mailchimp support regarding this.
http://mailchimp.com/contact/support/
Thanks.
May 11, 2015 at 2:54 am #270543But how is that possible if Loco recognizes the message?
May 11, 2015 at 7:22 pm #271198Sorry for the confusion. The message is from our plugin. But, it is readily translatable (see http://prntscr.com/747l4v). Please see the links in our Translation guide maybe you missed a step. Let us know how it goes.
Thanks.
May 12, 2015 at 2:57 am #271412I read all those articles, as well as many others. The problem is i cannot translate this particular sentence (“We’re sorry! Something went wrong. We were unable to add your email to the list. Please try again later.”) while the translation works well in admin panel:
(I translated only one sentence to see if translation works).
For your information – I intentionally fill the form with already registred email address to force the plugin to show this error.
May 13, 2015 at 5:16 pm #272992Hi there,
The coding responsible for that is this
if ( is_wp_error( $result ) ) { $response = array( 'error' => true, 'log_message' => $result->get_error_message(), 'message' => __( 'We\'re sorry! Something went wrong. We were unable to add your email to the list. Please try again later.' ) ); }
From line 117 of wp-content\plugins\x-email-mailchimp\email-integration\functions\shortcodes\subscribe.php
It should be translatable, but the problem is there is no textdomain added.
Please change it to this,
if ( is_wp_error( $result ) ) { $response = array( 'error' => true, 'log_message' => $result->get_error_message(), 'message' => __( 'We\'re sorry! Something went wrong. We were unable to add your email to the list. Please try again later.', '__x__' ) ); }
And try the translation again. I reported this bug and fix should be added from next version 🙂
Thanks!
May 16, 2015 at 12:50 am #274863We’ve got this – the case is solved. Thank you ThemeCo :))
May 16, 2015 at 12:58 am #274869You’re always welcome 😉
-
AuthorPosts