• Resolved MABZ

    (@mabz)


    Hi. I have just finished the translation of the Subscribe2 plugin into Basque and I was planning on sending it to the creators, but it is not working. I have read this thread, but I am bot sure it applies here:
    https://www.ads-software.com/support/topic/plugin-subscribe2-localization-problems?replies=38

    In my case, loading the .mo and .po files for the plugin into the plugin’s root directory seems to do nothing. Funny enough, even when the Subscribe2 plugin is uninstalled some text in the settings panel remains translated into Basque (things like “once a day”, “twice a day”, “bulk actions”), and I suspect it is being picked from the .mo file of WordPress (I have it installed in Basque). So, it seems like something is preventing the plugin from accessing its languales files. I have polylang installed, but deactivating it does no good; the majority of the text remains in English, with the same few strings in Basque.

    Any idea of what I could do?

    https://www.ads-software.com/plugins/subscribe2/

Viewing 11 replies - 1 through 11 (of 11 total)
  • @mabz,

    Have you got the correct lang code defined in wp-config.php and are the 2 files you created for Subscribe2 named correctly? (subscribe2-eu_ES.mo)

    Thread Starter MABZ

    (@mabz)

    Hi mattyrob,
    Thanks for your answer!
    WPLANG is defined as follows in wp-config.php: (‘WPLANG’, ‘eu’);
    Do I need to change that?

    The .mo and .po files are named correctly.

    @mabz,

    The WPLANG settings and file names need to be same. Change either so that they match and try again.

    Thread Starter MABZ

    (@mabz)

    I had installed WP in Basque, without adding the language files manually, and hadn’t noticed that they have named the .mo/.po files just eu, instead of eu_ES.
    If I change the WP .mo and po. files to eu_ES, and change the wp-config.php to match that, my WP dashboard turns into English, and Subscribe2 is still in English. If I change the Subscribe2 .mo and .po files to plain eu, then it works, but I still need to check if the Spanish version of the site works too (I haven’t had time to check that).
    I’ll keep the topic open for a couple of days while I run a few more tests and I will write about the outcomes, just in case it is helpful for anybody else.
    Thanks for your help, and for creating such a nice plugin!

    @mabz,

    Maybe the Basque version has made more changed than just the language code and *.mo files. At least you have the Subscribe2 translations working now.

    Thread Starter MABZ

    (@mabz)

    Well, the Subscribe2 translations are not working that well. I have set up 3 test subscription pages, one in each language of the site(English, Spanish and Basque):
    https://www.paisaia.com/harpidetzaproba/
    https://www.paisaia.com/pruebasuscripcion/
    https://www.paisaia.com/subscriptiontest/

    The subscription form is displayed in the correct language, but when you enter an email to subscribe, the message you get is always in Basque, no matter the language of the form. The email you get letting you know that you have requested to subscribe is always in English, except for the “action” word, which is invariably in Basque, no matter the language of the form. I have checked the .mo files, and the strings are translated into Spanish and Basque, but it doesn’t pick them.

    If you register in the webpage in Spanish, once you receive your WP password (WP emails are in the correct language) and access your dashboard, only categories in Spanish are listed for you to subscribe to (which is actually ok for me), and if you register in English, you see all categories, in Basque, Spanish and English. The choice of categories stays the same, even when you change your dashboard language setting to another.

    When you change your dashboard language, the text in the Subscribe2 section is displayed in the correct language. The problem os with the mconfirmation messages and emails sent to subscribers.

    Any idea of why this would happen?

    @mabz,

    Yes, Subscribe2 isn’t totally compatible with Polylang but it’s more compatible with that multi language solution than any of the others.

    Thread Starter MABZ

    (@mabz)

    Well, I have tried deactivating all my plugins, including Polylang, and turning my WP language to es_ES, and still the plugin doesn’t display the contents of the template tab in Spanish, as it should. Does your last reply mean that there is nothing else that can be done?

    Thread Starter MABZ

    (@mabz)

    Hi again mattyrob,

    I have managed to fix the problem of users susbcribing from the Spanish page being redirected to the Basque page once they hit the subscribe button using the page id parameter in the subscribe2 shortcode, so now they receive a message saying that the confirmation email was sent in the language they were using to subscribe.

    I have other issues, though. I publish posts in two languages, and using Polylang each post has its translation, so when you visit the blog in Spanish you read the Spanish “version”,and when you visit it in Basque, you read the Basque “version”. I was hoping that public subscribers would get only the post in the language they had used to subscribe, but they receive an email for each post published, not just the “right” one. Is there any way I can fix that?

    And even if at the beginning users who registered in a certain language and went to their WP dashboard would find only the categories in the language they had used to register, now (I am not aware of having done anything different) they see all categories in every language. What am I doing wrong?

    Thread Starter MABZ

    (@mabz)

    Sorry for having taken up so much of your time. It is wonderful to have a free plugin that allows registered subscribers to choose post categories; thanks a lot! I’ll try to deal with the language the best I can. Thanks for your help!

    @mabz,

    The email template is stored in the database so I’m not sure how PolyLang could handle that. Public Subscribers don’t choose a language for their email subscription so they will probably continue to get 2 emails.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Localization problem’ is closed to new replies.