Widget is in Another Language on Webpage


#1

I used the Widgets Configurator to create a widget for my blog. The widget previews in English and appears exactly as I would expect.

However, when I paste the widget code into my Blogger blog, the widget’s follow button, “Tweet to” line, and other items appear in another language. Appears to be Indonesian. The tweets themselves remain in English.

Any idea what in either the Twitter widget code or the blog code could be causing this shift to Indonesian? The blog itself is in English. I don’t even speak Indonesian.

Blog URL is:
http://medevam.blogspot.com

Code for my widget is:
Tweets by @medevam


#2

Try with this:

document.getElementsByTagName(“html”)[0].setAttribute(“lang”, “en”);
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?‘http’:‘https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,“script”,“twitter-wjs”);


#3

Same problem for me. My twitter widget is in german I want it in Dutch


#4

Found it! It is probally a file that is overwriting your twitter script check your HTML / Blog for and change it to your language


#5

This line:

document.getElementsByTagName(“html”)[0].setAttribute(“lang”, “??”);

will set the “lang” attribute in the “html” tag, which is an appropiate way of setting the entire document language.

For dutch it would be:

document.getElementsByTagName(“html”)[0].setAttribute(“lang”, “nl”);


#6

You can see how the language selection works on the “Language” section of https://dev.twitter.com/docs/embedded-tweets (that page is for embedded tweets but it’s the same behavior for embedded timelines)


#7

#8

#9

#10