PHP Classes

Wordpress Disqus Language Fix: Correct Disqus WordPress widget locale language

Recommend this page to a friend!
  Info   View files Documentation   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 87 All time: 9,987 This week: 560Up
Version License PHP version Categories
disquswpglue 1.5GNU General Publi...5.0Localization, PHP 5, Blogs


This class can correct Disqus WordPress widget locale language.

It can take the current WordPress locale language and correct it to match the right locale language used by Disqus if necessary.

The class may also map some WordPress locale languages to the closest language used by Disqus.

Innovation Award
PHP Programming Innovation award nominee
May 2015
Number 5

Prize: One subscription to the PDF edition of the PHP Architect magazine
Many Wordpress blog installations use Disqus as their system to let the users comment on the posts.

Disqus supports localization by adapting the texts according to the current language used by Wordpress.

However, there are differences in the locale language identifiers used by Wordpress and Disqus.

This class can fix the problem by mapping Wordpress locale language identifiers to the respective identifiers used by Disqus.

Manuel Lemos
Picture of Alessio Felicioni
  Performance   Level  
Name: Alessio Felicioni <contact>
Classes: 5 packages by
Country: Italy Italy
Age: 42
All time rank: 3631143 in Italy Italy
Week rank: 305 Up13 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x


=== Disqus Localization Glue === Contributors: afelicioni Tags: disqus, localization, translation, language License: GPL License URI: Allows Disqus widget language to be customized using a light conversion table, according to currently used Wordpress locale setup. == Description == A raw method to let Disqus widget embedded in WordPress to use the translated string according to core software localization. Some of the key strings for locale are not the same, so this class is a sort of helper to bridge the gap between differences and allow widget to display the same or closest language in use by Wordpress. This package is also available on GitHub, have a look at for full detailed experience. == Installation == Very light plugin, easy and quick to install, no hard setup needed. 1. Upload plugin folder into the used one by your plugins, ex. `/wp-content/plugins/` 2. Activate the plugin through the \'Plugins\' menu in WordPress == Frequently Asked Questions == Q: How this plugin can be helpful? A: For example, embedding Disqus widget for german setups will happen to still display in english, since Wordpress localization key is \"de_DE\" while Disqus uses \"de\". So, this plugin will return the right key and deliver the correct customization code.

  Files folder image Files  
File Role Description
Files folder imagedisqus-wordpress-localization-glue (5 files)
Accessible without login Plain text file readme.txt Doc. Documentation

  Files folder image Files  /  disqus-wordpress-localization-glue  
File Role Description
  Plain text file disqus-wordpress-localization-glue.php Class Class source
  Accessible without login Plain text file GPL-v.2.0 Lic. License text
  Accessible without login Plain text file index.php Aux. Class source
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,987
This week:560Up