<videotag target="inthisvideo" in="00:00:05:02" out="00:00:10:07">Steve Song</videotag>
<attribution in="00:00:05:02" out="00:00:10:07" target="container5" resourceid="villagetelcoattrib"></attribution>
<twitter in="00:00:05:02" out="00:00:10:07" title="Steve Song" source="from:stevesong" target="personaltwitter" width="238" height="120"/>
- <wiki in="00:00:05:02" out="00:00:10:07" resourceid="villagetelco" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:00:05:02" out="00:00:10:07" resourceid="villagetelco" numberOfWords="200" lang="bg" target="wikidiv"/>
<flickr in="00:00:05:02" out="00:00:10:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
<googlenews in="00:00:05:02" out="00:00:10:07" target="googlenewsdiv" topic="Village Telco"/>
Popcorn.WikiCommand = function(name, params, text, videoManager) {
Popcorn.VideoCommand.call(this, name, params, text, videoManager);
-
+ //L10n
var src = this.params.src;
+ var lang = this.params.lang;
+ if (lang === undefined) {lang="en";}
+ //end L10n
var length = this.params.numberOfWords;
// Setup a default, hidden div to hold the images
var target = document.createElement('div');
// Div is hidden by default
target.setAttribute('style', 'display:none');
// This uses jquery
- $.getJSON("http://en.wikipedia.org/w/api.php?action=parse&props=text&page=" + ( this.params.title || src.slice(src.lastIndexOf("/")+1) ) + "&format=json&callback=?", function(data){
+ $.getJSON("http://"+lang+".wikipedia.org/w/api.php?action=parse&props=text&page=" + ( this.params.title || src.slice(src.lastIndexOf("/")+1) ) + "&format=json&callback=?", function(data){
if(data) {
//make a link to the document
var link = document.createElement('a');
target.appendChild(desc);
}
});
-
+
this.target = target;
this.onIn = function() {
this.target.setAttribute('style', 'display:inline');
this.onOut = function() {
this.target.setAttribute('style', 'display:none');
};
- };
+ };
////////////////////////////////////////////////////////////////////////////
// Footnote Command
////////////////////////////////////////////////////////////////////////////