From: ScottDowne Date: Tue, 12 Oct 2010 17:52:01 +0000 (-0400) Subject: Merge branch 'dutch' of github.com:ScottDowne/popcorn-js X-Git-Tag: v0.1~25 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5cf21ff637cbe6ce39ee5c114ee07771f6e99337;p=popcorn-js.git Merge branch 'dutch' of github.com:ScottDowne/popcorn-js Conflicts: popcorn.js --- 5cf21ff637cbe6ce39ee5c114ee07771f6e99337 diff --cc popcorn.js index 7e9a824,e6ff6d5..10e7cc2 --- a/popcorn.js +++ b/popcorn.js @@@ -780,12 -762,17 +806,23 @@@ 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 (typeof lang === "undefined") { lang="en"; } + //end L10n + var length = this.params.numberOfWords; ++ + // All data from Universal Subtitles comes from the text attribute + // so the data from that needs to enter the appropriate fields + if (typeof text === "string" && text !== "") { + this.params.src = text; + // Universal Subtitles has no target attribute, so we create a default + this.params.target = "wikidiv"; + } - - var src = this.params.src; ++ + var length = this.params.numberOfWords || 200; // Setup a default, hidden div to hold the images var target = document.createElement('div'); target.setAttribute('id', this.id);