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/
Barbulescu Catalin
Member
Posted 1 year ago #
Tyler Hayes
Member
Plugin Contributor
Posted 1 year 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
WPML already outputs the page language code in ICL_LANGUAGE_CODE
http://wpml.org/documentation/support/wpml-coding-api/
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?
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/
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
Barbulescu Catalin
Member
Posted 1 year ago #
Good job, OC2PS!
Tyler, are you there?
Luke Xie
Member
Posted 1 year ago #
Andreas Maurer
Member
Posted 1 year ago #
Any updates anyone? Did anyone get it to work?
amandanudelman
Member
Posted 1 year ago #
Thanks for reaching out to WPML and getting this information to us. We'll look into it for future plugin revisions.
Does Disqus plugin have a public issue-tracker like https://core.trac.wordpress.org/ where we can follow the progress?
Tyler Hayes
Member
Plugin Contributor
Posted 1 year 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.
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.
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....
Disqus Community Support
Member
Posted 1 year 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
Any news at that issue? Got a client wanting to use disqus on a multilanguage blog...
amandanudelman
Member
Posted 1 year 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.