If you’re using the qTranslate plugin for WordPress and want to insert the Facebook Like button in the corresponding language I came up with a small piece of code that you can insert into, e.g., your theme’s
functions.php to get this working.
If you’re using qTranslate the current language code is stored in the variable
As you can see the
case statements inside the
switch; the default language is set to German in this example.
I really like the qTranslate plugin due to its simplicity and as you can see it’s pretty easy using it for special requirements like this one. I’ll use this on various websites and as far as I can tell the users like it that the Like button is presented in the corresponding language and not only in the standard language of the website.