How to change culture/language of the "TWTR.Widget" (type - profile)

mintudeosi
@mintudeosi Sukhminder Singh

I am not able to find the option to change the cutlure/language of the TWTR.Widget (type-profile)? I am using following code generated from the twitter website.

http://twitter.com/about/resources/widgets/widget_profile

  1. <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
  2. <script>
  3. new TWTR.Widget({
  4.   version: 2,
  5.   type: 'profile',
  6.   rpp: 4,
  7.   interval: 30000,
  8.   width: 250,
  9.   height: 300,
  10.   theme: {
  11.     shell: {
  12.       background: '#333333',
  13.       color: '#ffffff'
  14.     },
  15.     tweets: {
  16.       background: '#000000',
  17.       color: '#ffffff',
  18.       links: '#4aed05'
  19.     }
  20.   },
  21.   features: {
  22.     scrollbar: false,
  23.     loop: false,
  24.     live: false,
  25.     behavior: 'all'
  26.   }
  27. }).render().setUser('twitter').start();
  28. </script>
51 weeks 3 days ago

Replies

episod
@episod Taylor Singletary

Hi Sukhminder,

I may be wrong, but I don't believe there's a way to customize the language or locality of the widgets at this time.

51 weeks 3 days ago
mintudeosi
@mintudeosi Sukhminder Singh

thanks...but then how the twitter works on multilingual sites?

51 weeks 3 days ago
episod
@episod Taylor Singletary

Twitter can work pretty well on multilingual sites -- and a lot of our client-side products are fully multilingual-aware (like Twitter Web Intents, the Tweet Button, the Follow Button) -- the widgets that display profile tweets and such are a bit older. If you're determined, you can build equivalent functionality yourself using the REST API and localize as you see fit.

51 weeks 3 days ago
mintudeosi
@mintudeosi Sukhminder Singh

thanks Taylor...do you have any examples or references which i can refer for REST API if i try to go that path?

51 weeks 3 days ago
activecontent
@activecontent ActiveContent CMS

You could download http://widgets.twimg.com/j/2/widget.js locally and replace the fixed language parts by your own language. There are some parts that construct the html and there you can replace it (ex. reply, retweet, favorite etc etc). Upload onto your own hosting environment and call the widget (http://www.yourdomain.com/widget.js).

45 weeks 4 days ago
masiko1210
@masiko1210 iko

<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>

<script>

new TWTR.Widget({

version: 2,

type: 'profile',

rpp: 4,

interval: 30000,

width: 250,

height: 300,

theme: {

shell: {

background: '#333333',

color: '#ffffff'

},

tweets: {

background: '#000000',

color: '#ffffff',

links: '#4aed05'

}

},

features: {

scrollbar: false,

loop: false,

live: false,

behavior: 'all'

}

}).render().setUser('twitter').start();

</script>

12 weeks 3 days ago