WordPress: Disqus Language


Code on this post has been made into a plugin, the plugin is more complete and handles a wider range of locales.

Are you having problems to get the Disqus Comment System WordPress plugin to work with your site language (Arabic, French…). Here is the code you are looking for:

// Disqus language
add_filter( 'disqus_language_filter', 'cb_disqus_language_filter' );
function cb_disqus_language_filter() {
	return get_locale();

Drop this code in your theme functions.php file, in your custom plugin, or better yet: download and upload then install this plugin.






8 responses to “WordPress: Disqus Language”

  1. Patrick Moyano López Avatar
    Patrick Moyano López

    Can I put this plugin in spanish?


    1. Nabil Avatar

      Yes, it will automatically detect the page language.

  2. norb Avatar

    Hi, It seems to recoqnize the language right, but it doesn’t display the disqus in the language it detects. Am I doing something wrong?

    1. Nabil Avatar

      Hi, thanks for the report. I’m fixing it right now, expect a plugin update in a few hours.

  3. Arachneo Web Avatar
    Arachneo Web

    Despite the code put into the functions.php file
    Disqus remains in English even though I would like in French.
    no solution ?
    Thank you

    1. Nabil Avatar

      Please use the plugin.

  4. Karl Bylund Avatar

    Hi Nabil, unfortunately do not translates to Swedish.
    Are you friendly and check what is wrong, please!
    Disqus Comment System Version 2.85
    Disqus English Version 0.4

    1. Nabil Avatar

      I fixed the error, please update the plugin from your dashboard.

Leave a Reply

Your email address will not be published. Required fields are marked *