Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #270500

    Szymon
    Participant

    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

    #270502

    Paul R
    Moderator

    Hi,

    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.

    #270506

    Szymon
    Participant
    This reply has been marked as private.
    #270516

    Paul R
    Moderator

    Hi,

    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.

    #270527

    Szymon
    Participant

    Hello 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.

    #270538

    Paul R
    Moderator

    Hi,

    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.

    #270543

    Szymon
    Participant

    But how is that possible if Loco recognizes the message?

    http://postimg.org/image/edh4i0bn1/

    #271198

    Christian
    Moderator

    Sorry 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.

    #271412

    Szymon
    Participant

    I 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.

    #272992

    Rad
    Moderator

    Hi 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!

    #274863

    Szymon
    Participant

    We’ve got this – the case is solved. Thank you ThemeCo :))

    #274869

    Rad
    Moderator

    You’re always welcome 😉