WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Translation not works with qTranslate (13 posts)

  1. Darkooo
    Member
    Posted 2 years ago #

    Hi all,

    Anyone tried to install both - qtranslate and subscribe2? All plugins are working and translated in wordpress for my local language correctly except Subscribe2. When I try to add subscribe2-lt_LT.mo and .po files, itsn't work. When I tried disable qTranslate - then subscribe2 translated in local language normally.

    Anyone knows a decision? Thank you very much!

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @Darkooo,

    Are you using the current release or the development version of qTranslate?

    It seems the current stable release is not working too well on WordPress 3.4 looking at the qTranslate forum.

  3. Darkooo
    Member
    Posted 2 years ago #

    thanks for your answer-question.

    I'm using the development version of qTranslate, the current release isn't work correct for me and my W3.4 too :)

  4. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @Darkooo,

    Having looked on the qTranslate forum is your language field in wp-config.php empty?
    define ('WPLANG', '');

    It seems it should be and then let qTranslate handle the mo files for Subscribe2.

  5. Darkooo
    Member
    Posted 2 years ago #

    No way. I tried it (:

  6. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @Darkooo,

    Sorry, but what does your last post mean? Is that key empty or defined? If you tried it, does that mean you tried it empty and it didn't work?

    Bear in mind that these issues are coming from a conflict with a plugin I do not use so you are going to need to be more specific in your posts.

  7. Darkooo
    Member
    Posted 2 years ago #

    I tried both - empty and defined.

  8. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @Darkooo,

    Did you erase the po and mo files from the Subscribe2 location when allowing qTranslate to control the mo file?

  9. Darkooo
    Member
    Posted 2 years ago #

    Yes, I did (:

  10. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @Darkooo,

    Okay, I'm all out of ideas now. I think you'd be best asking on the qTranslate forum for help now.

  11. sandravega
    Member
    Posted 1 year ago #

    I found that Subscribe2 v8.5 doesn't load its translation .mo file when qTranslate is activated.
    I've found a kind of workaround for now which solves the problem (not very elegant)

    I've added these lines at the end of subscribe2.php, hooking the work of load the translation to the plugins_loaded hook. It works

    /* languages stuff - hack to fix qTranslate problem*/
    function subscribe2_lang_init() {
       if (function_exists('load_plugin_textdomain')) {
          load_plugin_textdomain('subscribe2', false, S2DIR);
       }
    
    }
    add_action('plugins_loaded' ,'subscribe2_lang_init');
  12. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @sandravega,

    Try out the development version, I've hooked the translation file loading to a WordPress hook now so that should work from the next version.

  13. Darkooo
    Member
    Posted 1 year ago #

    thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic