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
Thread Starter
SK
(@sooskriszta)
WPML already outputs the page language code in ICL_LANGUAGE_CODE
http://wpml.org/documentation/support/wpml-coding-api/
Thread Starter
SK
(@sooskriszta)
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?
Thread Starter
SK
(@sooskriszta)
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/
Thread Starter
SK
(@sooskriszta)
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
Any updates anyone? Did anyone get it to work?
Thanks for reaching out to WPML and getting this information to us. We’ll look into it for future plugin revisions.
Thread Starter
SK
(@sooskriszta)
Does Disqus plugin have a public issue-tracker like https://core.trac.ww.wp.xz.cn/ where we can follow the progress?
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.
Thread Starter
SK
(@sooskriszta)
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.