Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #917011

    Alex
    Participant

    I have a 2-language site so I can’t just put a MailChimp widget into the sidebar because I want English readers to subscribe for English newsletter and Russian readers to subscribe for Russian newsletter.

    My site is here:

    http://playingwriter.com/blog

    So what I can do with WPML is, I can use their multilingual text widget to put the text (code) there and then use it to translate the code into second language.

    So my question is, how can I put the shortcode or source code into text widget so that it would show a widget like this:

    http://take.ms/OQqJR

    I mean, with a headline and then a subscription form I set up via the MailChimp plugin (I have two forms).

    Thanks.


    Alex

    #978061

    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    Add custom sidebar for each page, and each sidebar contains two different widgets that represent each language. Hence, you will be using different forms for instance of sidebar and widgets.

    You can also try Widget logic plugin where you can add condition when to display a specific widget. Example, you have two Mailchimp form, and through condition that matches the language, then just match and display the applicable one.

    Thanks!

    #978478

    Alex
    Participant

    Hello,

    Thank you, I will try. Though, as I understand, I will have to manually select a sidebar for my Russian posts and pages every time I create one?

    I have another question concerning MailChimp and translations. I created English form, then added translation for Russian and changed something there. Then I put Russian form on my Russian About page – and though I can see my Russian form in the Cornerstone panel, there’s English form shown on the page:

    http://take.ms/rIygu

    Yes, the text of the page is now in English because I didn’t have time to translate it in English. So don’t let it confuse you.

    But the difference in forms is in example email: for English it is john.smith@example.com and for Russian it is antaflom@gmail.com.

    So can you check this one for me and help me figure out what’s the problem?

    Thanks!


    Alex

    #978505

    Alex
    Participant

    Also, I checked the widgets area and I think – if the abovementioned issue was fixed – the WPML translation would work.

    When I open Widgets in English, I see the English form in the selector:

    http://take.ms/djqVi

    When I open Widgets in Russian, I see the translation for that form that should be visible in Russian:

    http://take.ms/pbQzs

    So in theory, in back-end, everything works fine. But in the front-end, it doesn’t work.

    #978516

    Alex
    Participant

    Oh, no, it doesn’t work like this. I just changed the names of the widgets on Russian page in Widget and it changed on all English pages too. 🙁

    Well, I created the Russian sidebar and added the widgets with Russian names:

    http://take.ms/v7rYv

    I chose to show this sidebar in all Categories:

    http://take.ms/zDE6U

    But when I open my Russian pages, nonetheless I see the English sidebar:

    http://playingwriter.com/ru/zvezdnye-vojny-probuzhdenie-sily-kak-sozdavat-miry/

    http://playingwriter.com/ru/kniga-dzhunglej-6-ziyayushhih-treshhin/

    I’m so confused…

    #978772

    Joao
    Moderator

    Hi Alex

    Can you please provide your WP-Admin credentials so we can have a better look?

    Do not forget to mark the reply as private.

    Thanks

    Joao

    #978774

    Alex
    Participant
    This reply has been marked as private.
    #979613

    Rad
    Moderator

    Hi there,

    Yes, this kind of setup is too confusing. Hence, please do the second option, by using the widget logic plugin.

    I went ahead and installed it, then added the widgets.

    You’ll notice that I added two widgets of email form on the same sidebar. But if you’ll check the settings, there is a condition when each widget should be displayed.

    Thanks!

    #980080

    Alex
    Participant

    Hello again,

    Thank you for setting Widget Logic up. Yes, it works because I can see the different names of the widget depending on the language selected. However, the subscription form is still the same in both languages, and I think it’s the problem with how MailChimp plugin is managing WPML, or vice versa.

    To show you what I mean, here’s the screenshot of the form on English page:

    http://take.ms/CCLbU

    And here’s one on the Russian page:

    http://take.ms/IaTVV

    The pages to see it for yourself are:

    http://playingwriter.com/scrivener-for-ios-is-going-beta/

    http://playingwriter.com/ru/scrivener-for-ios-otpravlyaetsya-v-beta/

    You can see the headlines are different, but the placeholder email in the form is the same, while in the Russian form there’s a different placeholder.

    So do you have any ideas on how it can be fixed?

    Thanks.


    Alex

    #980453

    Rad
    Moderator

    Hi Alex,

    Please note that everything on WordPress is not automatically translated. You will have to either manually translate them using language files, or manually create static translation strings.

    For the widget, as I recommended before, you will have to create two FORMS. And each one represents the language.

    Please check the attached file.

    Thanks!

    #984504

    Alex
    Participant

    Hello again,

    Yes, I understand that WPML doesn’t translate automatically. I’ll try to be more specific to show you what I have a problem with.

    1. I created MailChimp forms for English

    http://take.ms/4eQpJ

    and Russian

    http://take.ms/0dfnD

    They are similar, but they have different placeholder emails so we can distinct them clearly.

    2. On Widgets screen, I added widgets with conditions as you explained me.

    For English, the page looks like this:

    http://take.ms/3B5AJ

    You can notice the screenshot is similar to what you send me. And you clearly thought that it was my mistake that I forgot to choose Russian form for the Russian (bottom) widget, right?

    Nope. See the Russian version of the page:

    http://take.ms/cKGob

    And that is the problem I have: when you’re working with English version, there’s only English version forms available. So you can set up the form for English widget. Then you switch to Russian page and you see only Russian forms available. So you can set up the form in the Russian widget.

    But when you actually visit a site, you see there’s no difference and the form in both languages is the same, being English form. I recorded a short video to show this:

    http://take.ms/osJMI

    So it’s some kind of bug here, I suppose. I hope you understand what I mean now. You can see this for yourself on my site, having credentials and all.

    Thanks.


    Alex

    #986407

    Rad
    Moderator

    Hi Alex,

    From screenshot where you can select languages on admin bar, you can actually select All languages. I went ahead and set the widget for you.

    You can check this now http://playingwriter.com/ru/blog/

    Thanks.

    #986424

    Alex
    Participant

    Hello,

    Thank you! It works, at last! You’re genius! 🙂

    Another issue was adding the subscription form to the already published page. I managed to work it out. You see, I tried to edit the form block and choose the Russian form in the forms’ list. So it went fine, but on the front-end it showed the English form.

    And now I deleted the form block and then added a new one – and it works perfectly!

    I think maybe you should add a little page explaining this and other possible issues with WPML to your KB. It would be a tremendous help for us users and would save you time in future.

    Thanks for helping out and have a great evening! (Well, it’s night in my town.)


    Alex

    #986448

    Rahul
    Moderator

    You’re welcome! Have a wonderful day, you too! 🙂