WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
Doesn't work with WPML (20 posts)

  1. OC2PS
    Member
    Posted 2 years ago #

    Please make Disqus compatible with multilingual sites. WPML developers will be happy to work with you http://wpml.org/documentation/theme-compatibility/go-global-program/

    Basically, since WPML already creates separate pages for different languages. All you need to do is, instead of setting the language of Disqus by account, you should set it by the page that Disqus is appearing on...

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. Barbulescu Catalin
    Member
    Posted 2 years ago #

    +1

  3. Tyler Hayes
    Member
    Plugin Contributor

    Posted 2 years ago #

    Disqus is already compatible with multilingual sites -- Disqus supports dozens of languages, from Afrikaans to Welsh. A few helpful links:

    - What languages does Disqus support?
    - Apply to our translation program
    - Can Disqus be loaded in different languages per-page?

    The final link above is the most relevant for other plugins like WPML. It describes how Disqus can be loaded dynamically in different languages. Essentially the WPML developers would want to output an additional JavaScript variable on the page (or inject into the disqus_config variable if it's already being output in the page since only one disqus_config is allowed per page) and use the language codes we list to dynamically render Disqus in a different language.

    Let me know if I can help clarify anything further,

    Tyler

  4. OC2PS
    Member
    Posted 2 years ago #

    WPML already outputs the page language code in ICL_LANGUAGE_CODE
    http://wpml.org/documentation/support/wpml-coding-api/

  5. OC2PS
    Member
    Posted 2 years ago #

    So, I guess the question is that since both Disqus and WPML seem to claim to be doing everything right, how do I, as a simple multilingual website owner, without much technical knowledge (the reason why I chose WordPress not Drupal or something) have Disqus working on my site in a multilingual fashion?

  6. OC2PS
    Member
    Posted 2 years ago #

    This is what WPML said when I contacted them

    Contact (Disqus plugin developers) them to see if they are interested in work on this...
    We can create a (free) account for them here, and help them make it compatible.
    They can contact us here: http://wpml.org/documentation/theme-compatibility/go-global-program/

  7. OC2PS
    Member
    Posted 2 years ago #

    The WPML guys had a look at the Disqus documentation, and feel that in the plugin, you need to add

    <?php if (defined("ICL_LANGUAGE_CODE")): //if WPML is active ?>
    var disqus_config = function () {
    this.language = "<?php echo ICL_LANGUAGE_CODE;?>";
    };
    <?php endif; ?>

    in order to make it multilingual

  8. Barbulescu Catalin
    Member
    Posted 2 years ago #

    Good job, OC2PS!

    Tyler, are you there?

  9. Luke Xie
    Member
    Posted 2 years ago #

    +1

  10. OC2PS
    Member
    Posted 2 years ago #

    Tyler?

  11. Andreas Maurer
    Member
    Posted 2 years ago #

    Any updates anyone? Did anyone get it to work?

  12. amandanudelman
    Member
    Posted 2 years ago #

    Thanks for reaching out to WPML and getting this information to us. We'll look into it for future plugin revisions.

  13. OC2PS
    Member
    Posted 2 years ago #

    @Amanda: Any updates?

  14. OC2PS
    Member
    Posted 2 years ago #

    Does Disqus plugin have a public issue-tracker like https://core.trac.wordpress.org/ where we can follow the progress?

  15. Tyler Hayes
    Member
    Plugin Contributor

    Posted 2 years ago #

    Anyone can track the plugin's development at https://github.com/disqus/disqus-wordpress/. There is an Issues feature in that repo which is where most people submit bugs. Anyone can submit pull requests to the plugin there as well.

  16. OC2PS
    Member
    Posted 2 years ago #

    https://github.com/disqus/disqus-wordpress/issues/19

    No one seems to be updating the issues tracker. This issue, for example, has not even been assigned.

  17. OC2PS
    Member
    Posted 2 years ago #

    The big shame is that someone has already worked on it and created a pull request https://github.com/disqus/disqus-wordpress/pull/20

    But no response from Disqus team....

  18. Disqus Community Support
    Member
    Posted 2 years ago #

    OC2PS et al,

    We don't typically assign issues in the repo currently. But rest assured that doesn't mean we're not paying attention!

    We don't currently have a dedicated engineer for the plugin so a few of us work on it as much as we get the chance (Disqus is a team of about 30 right now). We have an open job listing for that — "PHP Developer (Plugins & Integrations)" — at http://disqus.com/jobs so if you know anyone highly-qualified send them our way.

    I'll be taking a look at the pull requests as soon as I get the chance to devote my full attention. We definitely want the plugin to be as great is at can be so thank you for all your feedback and pull requests.

    All the best,
    Tyler

  19. micx7
    Member
    Posted 2 years ago #

    Any news at that issue? Got a client wanting to use disqus on a multilanguage blog...

  20. amandanudelman
    Member
    Posted 2 years ago #

    Hi micx7,

    We're always working to evolve our plugin, and like Tyler mentioned, we are working to hire someone to do this full-time. Until then, we will work on it whenever we can, and we appreciate your patience in the meantime.

    Also, please see the third comment in the thread (also from Tyler) to see if any of those options work for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic