From: Siebrand Mazeland Date: Sat, 22 Aug 2009 12:12:43 +0000 (+0000) Subject: * added missing message "mwe-no_text_tracks_found" X-Git-Tag: 1.31.0-rc.0~40124 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=c3c2487a2a12fe000873c733419e04d6ee2ebe71;p=lhc%2Fweb%2Fwiklou.git * added missing message "mwe-no_text_tracks_found" * harmonise message prefix * fix typos in message keys * fix typos in messages * remove trailing whitespace Should be almost done now. Next step is to get a proper mwEmbed.i18n.php, verify and fix that, and give it to the translators. --- diff --git a/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js b/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js index 944f99ea10..a4fde39522 100644 --- a/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js +++ b/js2/mwEmbed/libAddMedia/mvAdvFirefogg.js @@ -5,7 +5,7 @@ //@@todo put all msg text into loadGM json loadGM({ - "help-sticky" : "Help (click to stick)", + "fogg-help-sticky" : "Help (click to stick)", "fogg-cg-preset" : "Preset : $1<\/strong>", "fogg-cg-quality" : "Basic quality and resolution control", "fogg-cg-meta" : "Metadata for the clip", @@ -37,48 +37,48 @@ mvAdvFirefogg.prototype = { config_groups : [ 'preset', 'range', 'quality', 'meta', 'advVideo', 'advAudio'], //list of pre-sets: //local instance encoder config: - default_local_settings:{ - 'd' : 'webvideo', - 'type' : 'select', - 'selectVal': ['webvideo'], - 'group' : "preset", - 'pSet' : { - 'custom':{ - 'descKey': 'fogg-preset-custom', - 'conf': {} - }, - 'webvideo': { - 'desc': "Web Video Theora, Vorbis 400kbs & 400px max width", - 'conf': { - 'maxSize' : 400, - 'videoBitrate' : 544, - 'audioBitrate' : 96, - 'noUpscaling' : true, - } - }, - 'savebandwith': { - 'desc': "Low Bandwith Theora, Vorbis 164kbs & 200px max size", - 'conf': { - 'maxSize' : 200, - 'videoBitrate' : 164, - 'audioBitrate' : 32, - 'samplerate' : 22050, - 'framerate' : 15, - 'channels' : 1, - 'noUpscaling' : true - } - }, - 'hqstream':{ - 'desc': "High Quality Theora, Vorbis 1080px max width", - 'conf': { - 'maxSize' : 1080, - 'videoQuality' : 6, - 'audioQuality' : 3, - 'noUpscaling' : true, - } - }, - } - }, +default_local_settings:{ + 'd' : 'webvideo', + 'type' : 'select', + 'selectVal': ['webvideo'], + 'group' : "preset", + 'pSet' : { + 'custom':{ + 'descKey': 'fogg-preset-custom', + 'conf': {} + }, + 'webvideo': { + 'desc': "Web Video Theora, Vorbis 400kbs & 400px max width", + 'conf': { + 'maxSize' : 400, + 'videoBitrate' : 544, + 'audioBitrate' : 96, + 'noUpscaling' : true, + } + }, + 'savebandwith': { + 'desc': "Low Bandwith Theora, Vorbis 164kbs & 200px max size", + 'conf': { + 'maxSize' : 200, + 'videoBitrate' : 164, + 'audioBitrate' : 32, + 'samplerate' : 22050, + 'framerate' : 15, + 'channels' : 1, + 'noUpscaling' : true + } + }, + 'hqstream':{ + 'desc': "High Quality Theora, Vorbis 1080px max width", + 'conf': { + 'maxSize' : 1080, + 'videoQuality' : 6, + 'audioQuality' : 3, + 'noUpscaling' : true, + } + }, + } +}, local_settings: {}, //core firefogg default encoder configuration @@ -86,18 +86,18 @@ mvAdvFirefogg.prototype = { default_encoder_config : { //base quality settings: 'videoQuality': { - 'd' : 5, - 't' : 'Video Quality', - 'range' : {'min':0,'max':10}, - 'type' : 'slider', - 'group' : 'quality', - 'help' : "Used to set the Visual Quality of the encoded video. (not used if you set bitrate in advanced controls below)" + 'd' : 5, + 't' : 'Video Quality', + 'range' : {'min':0,'max':10}, + 'type' : 'slider', + 'group' : 'quality', + 'help' : "Used to set the Visual Quality of the encoded video. (not used if you set bitrate in advanced controls below)" }, 'twopass':{ - 't' : "Two Pass Encoding", - 'type' : "boolean", - 'group' : "quality", - 'help' : "Two Pass Encoding enables more consitant quality by making two passes over the video file" + 't' : "Two Pass Encoding", + 'type' : "boolean", + 'group' : "quality", + 'help' : "Two Pass Encoding enables more consitant quality by making two passes over the video file" }, 'starttime':{ 't' : "Start Second", @@ -210,8 +210,8 @@ mvAdvFirefogg.prototype = { 'type' : 'select', 'selectVal' : [{'22050':'22 kHz'}, {'44100':'44 khz'}, {'48000':'48 khz'}], 'formatSelect' : function(val){ - return (Math.round(val/100)*10) + ' Hz'; - }, + return (Math.round(val/100)*10) + ' Hz'; + }, 'help' : "set output samplerate (in Hz)." }, 'noaudio':{ @@ -393,7 +393,7 @@ mvAdvFirefogg.prototype = { out+=''+ ''; //if we don't value for this: var dv = ( this.default_encoder_config[cK].d ) ? this.default_encoder_config[cK].d : ''; diff --git a/js2/mwEmbed/libAddMedia/mvBaseUploadInterface.js b/js2/mwEmbed/libAddMedia/mvBaseUploadInterface.js index 438b563b41..63c2bf838b 100644 --- a/js2/mwEmbed/libAddMedia/mvBaseUploadInterface.js +++ b/js2/mwEmbed/libAddMedia/mvBaseUploadInterface.js @@ -1,7 +1,9 @@ /** * the base Upload Interface for uploading. * - * this base uploader is optionally extended by firefogg + * this base uploader is optionally extended by Firefogg + * + * @@todo: checkme: gM 'thumbnail-more' is used; only defined in MediaWiki core. Will that work properly? */ loadGM({ "mwe-upload-transcode-in-progress" : "Transcode and upload in progress (do not close this window)", @@ -670,7 +672,7 @@ mvBaseUploadInterface.prototype = { ) //just display an empty progress window $j('#upProgressDialog').dialog('open'); - + //setup progress bar: $j('#up-progressbar').progressbar({ value:0 @@ -703,15 +705,15 @@ mvBaseUploadInterface.prototype = { * doDestCheck checks the destination */ $.fn.doDestCheck = function( opt ){ - var _this = this; - var destFile = this.selector; - //set up option defaults; + var _this = this; + var destFile = this.selector; + //set up option defaults; if(!opt.warn_target) opt.warn_target = '#wpDestFile-warning'; - - //empty target warn: + + //empty target warn: $j(opt.warn_target).empty(); - + //show loading $j(destFile).after(''); //try and get a thumb of the current file (check its destination) @@ -730,7 +732,7 @@ mvBaseUploadInterface.prototype = { //all good no file there }else{ for(var page_id in data.query.pages){ - var ntitle = ( data.query.normalized)? data.query.normalized[0].to : data.query.pages[ page_id ].title + var ntitle = ( data.query.normalized)? data.query.normalized[0].to : data.query.pages[ page_id ].title var img = data.query.pages[ page_id ].imageinfo[0]; $j('#wpDestFile-warning').html( '