From befba7133e3274e5d8c120a10a5a5170c756903c Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 18 Aug 2009 23:23:59 +0000 Subject: [PATCH] * update messages in the actual JavaScript files; also remove trailing whitespace * update mwEmbed.i18n.php --- js2/mwEmbed/libAddMedia/mvAdvFirefogg.js | 478 +++--- .../libAddMedia/mvBaseUploadInterface.js | 530 +++---- js2/mwEmbed/libAddMedia/mvFirefogg.js | 593 ++++--- js2/mwEmbed/libAddMedia/remoteSearchDriver.js | 940 +++++------ .../searchLibs/baseRemoteSearch.js | 162 +- js2/mwEmbed/libAddMedia/simpleUploadForm.js | 98 +- js2/mwEmbed/libClipEdit/mvClipEdit.js | 456 +++--- js2/mwEmbed/libEmbedVideo/embedVideo.js | 1376 ++++++++--------- js2/mwEmbed/libSequencer/mvSequencer.js | 1182 +++++++------- .../libSequencer/mvTimedEffectsEdit.js | 174 +-- js2/mwEmbed/libTimedText/mvTextInterface.js | 268 ++-- js2/mwEmbed/mv_embed.js | 789 +++++----- js2/mwEmbed/php/languages/mwEmbed.i18n.php | 57 +- 13 files changed, 3543 insertions(+), 3560 deletions(-) diff --git a/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js b/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js index 2a3a030b69..beb1c6db60 100644 --- a/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js +++ b/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js @@ -1,18 +1,18 @@ /* -* Adds advanced firefogg support (let you control and structure advanced controls over many aspects of video encoding) +* Adds advanced firefogg support (let you control and structure advanced controls over many aspects of video encoding) */ //@@todo put all msg text into loadGM json loadGM({ - "help-sticky": "Help (Click to Stick)", + "help-sticky": "Help (click to stick)", "fogg-cg-preset": "Preset: $1", - "fogg-cg-quality": "Basic Quality and Resolution Control", - "fogg-cg-meta": "Meta Data for the Clip", - "fogg-cg-range" : "Encoding Range", - "fogg-cg-advVideo": "Advanced Video Encoding Controls", - "fogg-cg-advAudio": "Advanced Audio Encoding Controls", - "fogg-preset-custom": "Custom Settings" + "fogg-cg-quality": "Basic quality and resolution control", + "fogg-cg-meta": "Metadata for the clip", + "fogg-cg-range" : "Encoding range", + "fogg-cg-advVideo": "Advanced video encoding controls", + "fogg-cg-advAudio": "Advanced audio encoding controls", + "fogg-preset-custom": "Custom settings" }); var mvAdvFirefogg = function( iObj ){ @@ -21,25 +21,25 @@ var mvAdvFirefogg = function( iObj ){ var default_mvAdvFirefogg_config = { //which config groups to include 'config_groups' : ['preset', 'range', 'quality', 'meta', 'advVideo', 'advAudio'], - + //if you want to load any custom presets must follow the mvAdvFirefogg.presetConf json outline below - 'custom_presets' : {}, - + 'custom_presets' : {}, + //any firefog config properties that may need to be excluded from options 'exclude_settings' : [], - - //the control container (where we put all the controls) + + //the control container (where we put all the controls) 'target_control_container':false } -mvAdvFirefogg.prototype = { - //the global groupings and titles for for configuration options : - config_groups : [ 'preset', 'range', 'quality', 'meta', 'advVideo', 'advAudio'], - //list of pre-sets: +mvAdvFirefogg.prototype = { + //the global groupings and titles for for configuration options : + config_groups : [ 'preset', 'range', 'quality', 'meta', 'advVideo', 'advAudio'], + //list of pre-sets: //local instance encoder config: default_local_settings:{ 'd' : 'webvideo', - 'type' : 'select', + 'type' : 'select', 'selectVal': ['webvideo'], 'group' : "preset", 'pSet' : { @@ -50,42 +50,42 @@ mvAdvFirefogg.prototype = { 'webvideo': { 'desc': "Web Video Theora, Vorbis 400kbs & 400px max width", 'conf': { - 'maxSize' : 400, + 'maxSize' : 400, 'videoBitrate' : 544, 'audioBitrate' : 96, - 'noUpscaling' : true, + 'noUpscaling' : true, } }, 'savebandwith': { 'desc': "Low Bandwith Theora, Vorbis 164kbs & 200px max size", 'conf': { - 'maxSize' : 200, + 'maxSize' : 200, 'videoBitrate' : 164, 'audioBitrate' : 32, 'samplerate' : 22050, 'framerate' : 15, - 'channels' : 1, + 'channels' : 1, 'noUpscaling' : true } }, 'hqstream':{ 'desc': "High Quality Theora, Vorbis 1080px max width", 'conf': { - 'maxSize' : 1080, + 'maxSize' : 1080, 'videoQuality' : 6, 'audioQuality' : 3, - 'noUpscaling' : true, + 'noUpscaling' : true, } }, - } - }, + } + }, local_settings: {}, - + //core firefogg default encoder configuration //see encoder options here: http://www.firefogg.org/dev/index.html - default_encoder_config : { + default_encoder_config : { //base quality settings: - 'videoQuality': { + 'videoQuality': { 'd' : 5, 't' : 'Video Quality', 'range' : {'min':0,'max':10}, @@ -99,13 +99,13 @@ mvAdvFirefogg.prototype = { 'group' : "quality", 'help' : "Two Pass Encoding enables more consitant quality by making two passes over the video file" }, - 'starttime':{ + 'starttime':{ 't' : "Start Second", 'type' : "float", 'group' : "range", 'help' : "Only encode from time in seconds" }, - 'endtime':{ + 'endtime':{ 't' : "End Second", 'type' : "float", 'group' : "range", @@ -139,7 +139,7 @@ mvAdvFirefogg.prototype = { 't' : 'Video Width', 'range' : {'min':0,'max':1080}, 'step' : 4, - 'type' : 'slider', + 'type' : 'slider', 'group' : "quality", 'help' : "Resize to given width." }, @@ -147,17 +147,17 @@ mvAdvFirefogg.prototype = { 't' : 'Video Height', 'range' : {'min':0,'max':1080}, 'step' : 4, - 'type' : "slider", + 'type' : "slider", 'group' : "quality", 'help' : "Resize to given height" - }, + }, //advanced Video control configs: 'videoBitrate':{ 't' : 'Video Bitrate', - 'range' : {'min':1, 'max':16778}, + 'range' : {'min':1, 'max':16778}, 'type' : "slider", 'group' : "advVideo", - 'help' : "Video Bitrate sets the encoding bitrate for video in (kb/s)" + 'help' : "Video Bitrate sets the encoding bitrate for video in (kb/s)" } , 'framerate':{ 't' : 'Framerate', @@ -166,11 +166,11 @@ mvAdvFirefogg.prototype = { 'type' : "select", 'group' : "advVideo", 'help' : "The video Framerate. More about Framerate" - }, + }, 'aspect':{ 't' : 'Aspect Ratio', 'd' : '4:3', - 'type' : "select", + 'type' : "select", 'selectVal' : ['4:3', '16:9'], 'group' : "advVideo", 'help' : "The video aspect ratio can be fraction 4:3 or 16:9. More about aspect ratios" @@ -184,7 +184,7 @@ mvAdvFirefogg.prototype = { 'group' : 'advVideo', 'help' : "The keyframe interval in frames. Note: Most codecs force keyframes if the difference between frames is greater than keyframe encode size. More about keyframes" }, - 'denoise':{ + 'denoise':{ 'type' : "boolean", 't' : "Denoise Filter", 'group' : 'advVideo', @@ -196,8 +196,8 @@ mvAdvFirefogg.prototype = { 'group' : 'advVideo', 'help' : "disable video in the output" }, - - //advanced Audio control Config: + + //advanced Audio control Config: 'audioBitrate':{ 't' : "Audio Bitrate", 'range' : {'min':32,'max':500}, @@ -215,12 +215,12 @@ mvAdvFirefogg.prototype = { 'help' : "set output samplerate (in Hz)." }, 'noaudio':{ - 't' : "No Audio", + 't' : "No Audio", 'type' : 'boolean', 'group' : 'advAudio', 'help' : "disable audio in the output" }, - + //meta tags: 'title':{ 't' : "Title", @@ -270,15 +270,15 @@ mvAdvFirefogg.prototype = { 'group' : 'meta', 'help' : "Contact link" } - }, - init:function( iObj ){ + }, + init:function( iObj ){ //setup a "supported" iObj: for(var i in iObj){ if( typeof default_mvAdvFirefogg_config [i] != 'undefined' ){ - this[i] = iObj[i]; - } + this[i] = iObj[i]; + } } - //inherit the base mvFirefogg class: + //inherit the base mvFirefogg class: var myFogg = new mvFirefogg( iObj ); for(var i in myFogg){ if( typeof this[i] != 'undefined'){ @@ -286,29 +286,29 @@ mvAdvFirefogg.prototype = { }else{ this[ i ] = myFogg[i]; } - } + } }, setupForm:function(){ - //call base firefogg form setup - basefogg_setupForm(); - + //call base firefogg form setup + basefogg_setupForm(); + //gennerate the control html - this.doControlHTML(); - - //setup control bindings: - this.doControlBindings(); - + this.doControlHTML(); + + //setup control bindings: + this.doControlBindings(); + }, doControlHTML: function(){ js_log("adv doControlHTML"); var _this = this; - //load presets from cookie: + //load presets from cookie: this.loadEncSettings(); - - //add base control buttons: + + //add base control buttons: this.basefogg_doControlHTML(); - - //build the config group outpouts + + //build the config group outpouts var gdout =''; $j.each(this.config_groups, function(inx, group_key){ gdout+= '
'+ @@ -319,51 +319,51 @@ mvAdvFirefogg.prototype = { //output the special prset output if(group_key=='preset'){ gdout += _this.proccessPresetControl(); - } - for(var cK in _this.default_encoder_config){ + } + for(var cK in _this.default_encoder_config){ var cConf = _this.default_encoder_config[cK]; if(cConf.group == group_key){ - gdout+= _this.proccessCkControlHTML( cK ); + gdout+= _this.proccessCkControlHTML( cK ); } } gdout+=''; - gdout+= '
' + + gdout+= '' + ''; - - }); - //add the control container: - if(!this.target_control_container){ + + }); + //add the control container: + if(!this.target_control_container){ this.target_control_container = this.selector + ' .control_container'; //set the target contorl container to height - $j(this.selector).append( '

' ); + $j(this.selector).append( '

' ); } //hide the container and add the output $j(this.target_control_container).hide(); $j(this.target_control_container).html( gdout ); - + }, - //custom advanced target rewrites: - getTargetHtml:function(target){ - if( target=='target_btn_select_file' || - target=='target_btn_select_new_file'|| + //custom advanced target rewrites: + getTargetHtml:function(target){ + if( target=='target_btn_select_file' || + target=='target_btn_select_new_file'|| target=='target_btn_save_local_file'){ - var icon = (target=='target_btn_save_local_file')?'ui-icon-video':'ui-icon-folder-open'; + var icon = (target=='target_btn_save_local_file')?'ui-icon-video':'ui-icon-folder-open'; return '' + + target +'" href="#">' + gM( 'fogg-' + target.substring(11) ) + ''; - }else if( target=='target_btn_select_url'){ + }else if( target=='target_btn_select_url'){ //return the btnHtml: return $j.btnHtml( gM( 'fogg-' + target.substring(11) ), target, 'link'); - - }else if( target=='target_use_latest_fox' || - target=='target_please_install' || + + }else if( target=='target_use_latest_fox' || + target=='target_please_install' || target == 'target_passthrough_mode'){ return '
' + - '

'+ + target + '">' + + '

'+ gM( 'fogg-' + target.substring(7)) +'

'+ - '
'; + ''; }else if( target == 'target_input_file_name'){ return '

'; @@ -372,16 +372,16 @@ mvAdvFirefogg.prototype = { return this.basefogg_getTargetHtml(target); } }, - proccessPresetControl:function(){ + proccessPresetControl:function(){ var out=''; var _this = this; - js_log('proccessPresetControl::'); + js_log('proccessPresetControl::'); if(typeof this.local_settings.pSet!= 'undefined' ){ - out+= ''; $j.each(this.local_settings.pSet, function(pKey, pSet){ var pDesc = (pSet.descKey) ? gM(pSet.descKey) : pSet.desc; - var sel = (_this.local_settings.d == pKey)?' selected':''; - out+=''; + var sel = (_this.local_settings.d == pKey)?' selected':''; + out+=''; }); out+=''; } @@ -391,14 +391,14 @@ mvAdvFirefogg.prototype = { var cConf = this.default_encoder_config[cK]; var out =''; out+=''+ - '