• Hello,

    I was wondering if it’s possible to change the language of the messages I receive when using the plugin.

    I mean, I would like to translate the sentences I get when users don’t fill out any field or the message they get once they’ve successfully subscribed.

    They would be the following sentences:

    * You must fill in Nombre.
    » You must fill in Email.
    * Success, you’ve been signed up! Please look for our confirmation email!

    Thanks.

    http://ww.wp.xz.cn/extend/plugins/mailchimp/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey dherz!

    The messages in the sign up form are produced by PO files that are included in the plugin’s package. So, in order to customize those messages, you’ll want to edit those PO files.

    Locate your PO directory here:
    wp-content > plugins > mailchimp > po

    And look for your language. Once you’ve found your language file, download a PO file editor like POedit here:
    http://www.poedit.net/

    Then, open up that .PO file using POedit. Follow the directions in that editor to change the translations for each message. Then, when you save, you should see a .MO file generated too. Make sure both the .MO and .PO files have been updated and uploaded into your plugin’s PO directory.

    If you don’t see your language, you’ll need to create a new one. The best way to do that is to create a copy of “mailchimp_i18n-en_US.po” and rename it to “mailchimp_i18n-LANG_COUNTRY.po” – fill in LANG and COUNTRY with whatever you use for WPLANG in wp-config.php. Then use POedit to edit its translations.

    If you have any questions, let us know!

    -tk

    Thread Starter dherz

    (@dherz)

    Hello there,

    Thanks a lot for the reply.

    I did follow all the steps. Downloaded POedit, put the file PO file, genereted both PO and MO, and uploaded both of them.

    And also set up define(‘WPLANG’, ‘es-ES’) in my wp-config.php. But nothing changed.

    I still get the following in English when I registered in my opt-in mailchimp form:

    “Success, you’ve been signed up! Please look for our confirmation email!”

    and…

    “* = required field”

    Any suggestions?

    Hey dherz,

    When setting that “define” in wp-config.php, have you tried using “es_ES” instead? Note the underscore in “es_ES”. Also, what’s the name of your PO and MO files?

    Thread Starter dherz

    (@dherz)

    Hi there,

    Sorry for the delay. It worked out!! Thank you much for your help.

    Now, I got two more questions:

    1. Is it possible to remove the sentence “* required field”?

    2. Right next to my Name and Email tags, in the opt-in form, there’s an asterisk. The color of Name and Email white, but the asterisk is kind of grey and does not display well (the background color of my opt-in form in dark blue). Is is possible to change the color of the asterisk?

    Thanks a lot in advance!

    Hey Dherz,

    Glad to hear. 🙂

    1. Yep! You can set that string of text to no longer be visible by adding this bit of CSS code to your stylesheet:

    #mc-indicates-required {
    display: none;
    }

    2. Yep! The asterisk has a class around is called “mc_required”. So you can set the color of just that asterisk by adding this bit of CSS:

    .mc_required{
    	color:red;
    }

    Hi guys,

    I join this conversation because my problems are quite related.

    1. First of all, I made all of your suggested steps for adding a new translation, in my case to catalan. I duplicated the es_ES, edited via Poedit, saved to ca_CA and uploaded the two files (*.po and *.mo) to my /po folder. Even, I checked if my wp-config.php was correct (it was configured to ‘ca’ and I maked up to ‘ca_CA’), I cleaned the Chrome cache.. but it stills appears the original (english) version. So frustrating. Any idea?

    2. In addition, I would know where I can change the “Email adress”, “First name” and so on. I changed the “Required field” in a PHP but I’m unable to find those ones.

    3. And finally, I provide you a link to the page I’m trying to modify http://www.lluerna.cat/contacte/ Could you tell where can I find the CSS linked to the Mail Chimp form? I need to adjust the paddings and sizes of it, in order to get similar to the other form in this page and I’m totally incapable after spending so many hours.

    Thanks for you kind support and keep in touch.

    Hey Gerardus,

    1. Any chance you could send me your .PO file to mailchimptk[at]gmail.com? That’ll allow me to try and replicate the issues you’re seeing.

    2. The Email Address and First Name, as well as the translation of any of your list fields, can be changed on the MailChimp account side of things. To do this, login to your account, then go to the Lists tab. Click on the gear/cog icon next to your list, and then click “Forms”. From there, click on the field you want to change the translation of and change the field label there. Once you’ve saved your changes, go back into your WordPress Admin area, go to your MailChimp plugin’s settings, and update your list.

    3. You should be able to make adjustments to the design of the sign up form by adding CSS to any active stylesheet on your site. Consult the source code of the forms to see which particular classes or ID’s need to be styled, then try adding that to your WordPress theme’s stylesheet. You should see that CSS reflected on your form. If not, feel free to post here with a description of what you’re looking to, as well as a snippet of the code that you’re using.

    If you have any questions in the mean time, just let us know!

    -tk

    Hey there,

    Thanks for sending those files over. In testing a bit, I was able to use those 2 files you sent over to enable Catalan messages in my local setup successfully, so we’ll want to begin to isolate what may be different about our environments which is creating two different interactions.

    Here’s the process I used to get that working:
    -Download the .po and .mo files.
    -Moved them into my plugins/mailchimp/po directory.
    -Edited the wp-config.php fiel in my main WordPress folder. Then made the changes to the define statement.

    If you’re still seeing issues, can you reply here with the line of code you’re using in your wp-config.php file?

    Also, would you be able to try generating a new .mo file from your .po file, then reuploading that into the MailChimp plugin’s PO folder? That’ll allow us to rule out any conflicts from older versions of the PO/MO files (if there were any).

    I look forward to hearing back!

    -tk

    Hi!

    I finally get it! I’ve just restart the process, slowly and step by step and it’s fixed.

    Thanks for your kind support 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Language’ is closed to new replies.