Commit 61cb650c authored by Francois Cartegnie's avatar Francois Cartegnie

luahttp intf: Make use of gettext

parent fb3be334
...@@ -1137,6 +1137,20 @@ modules/visualization/visual/fft.c ...@@ -1137,6 +1137,20 @@ modules/visualization/visual/fft.c
modules/visualization/visual/fft.h modules/visualization/visual/fft.h
modules/visualization/visual/visual.c modules/visualization/visual/visual.c
modules/visualization/visual/visual.h modules/visualization/visual/visual.h
share/lua/http/index.html
share/lua/http/dialogs/batch_window.html
share/lua/http/dialogs/browse_window.html
share/lua/http/dialogs/create_stream.html
share/lua/http/dialogs/equalizer_window.html
share/lua/http/dialogs/error_window.html
share/lua/http/dialogs/mosaic_window.html
share/lua/http/dialogs/offset_window.html
share/lua/http/dialogs/stream_config_window.html
share/lua/http/dialogs/stream_window.html
share/lua/http/mobile_browse.html
share/lua/http/mobile_equalizer.html
share/lua/http/mobile.html
share/lua/http/mobile_view.html
# Qt4 .ui files # Qt4 .ui files
# uncomment (and prepend $builddir} if you want to generate a proper vlc.pot # uncomment (and prepend $builddir} if you want to generate a proper vlc.pot
......
-- make xgettext fetch strings from html code
function gettext(text) print(vlc.gettext._(text)) end
local _G = _G local _G = _G
module("custom",package.seeall) module("custom",package.seeall)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
width: 600, width: 600,
modal: true, modal: true,
buttons:{ buttons:{
"Send":function(){ "<?vlc gettext("Send") ?>":function(){
var cmds = $('#batchCommand').val().split("\n"); var cmds = $('#batchCommand').val().split("\n");
for(var i=0;i<cmds.length;i++){ for(var i=0;i<cmds.length;i++){
cmds[i] = cmds[i].replace(/^#.*$/,'\n'); cmds[i] = cmds[i].replace(/^#.*$/,'\n');
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
sendVLMCmd(cmds); sendVLMCmd(cmds);
$(this).dialog('close'); $(this).dialog('close');
}, },
"Cancel":function(){ "<?vlc gettext("Cancel") ?>":function(){
$(this).dialog('close'); $(this).dialog('close');
} }
} }
...@@ -23,9 +23,10 @@ ...@@ -23,9 +23,10 @@
}) })
//]]> //]]>
</script> </script>
<div id="window_batch" title="VLM Batch Commands"> <div id="window_batch" title="<?vlc gettext("VLM Batch Commands") ?>">
<textarea id="batchCommand" cols="50" rows="16"> <textarea id="batchCommand" cols="50" rows="16">
#paste your VLM commands here <?vlc gettext("#paste your VLM commands here") ?>
#separate commands with a new line or a semi-colon
<?vlc gettext("#separate commands with a new line or a semi-colon") ?>
</textarea> </textarea>
</div> </div>
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
modal: true, modal: true,
resizable: false, resizable: false,
buttons: { buttons: {
"Open":function(){ "<?vlc gettext("Open") ?>":function(){
$('li.ui-selected','#browse_elements').each(function(){ $('li.ui-selected','#browse_elements').each(function(){
$(this).dblclick(); $(this).dblclick();
}); });
}, },
"Enqueue": function() { "<?vlc gettext("Enqueue") ?>": function() {
$('li.ui-selected','#browse_elements').each(function(){ $('li.ui-selected','#browse_elements').each(function(){
var path = this.getAttribute('opendir') ? this.getAttribute('opendir') : this.getAttribute('openfile'); var path = this.getAttribute('opendir') ? this.getAttribute('opendir') : this.getAttribute('openfile');
switch(browse_target){ switch(browse_target){
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
}); });
$(this).dialog("close"); $(this).dialog("close");
}, },
"Cancel" : function(){ "<?vlc gettext("Cancel") ?>" : function(){
$(this).dialog("close") $(this).dialog("close")
} }
} }
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
//]]> //]]>
</script> </script>
<div id="window_browse" title="Media Browser"> <div id="window_browse" title="<?vlc gettext("Media Browser") ?>">
<div style="height:500px;overflow: scroll;"> <div style="height:500px;overflow: scroll;">
<ol id='browse_elements' selectable="selectable"> <ol id='browse_elements' selectable="selectable">
<li>Play List</li> <li><?vlc gettext("Play List") ?></li>
</ol> </ol>
</div> </div>
</div> </div>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
width:800, width:800,
modal: true, modal: true,
buttons:{ buttons:{
"Create":function(){ "<?vlc gettext("Create") ?>":function(){
var e = false; var e = false;
$('input',$(this)).removeClass('ui-state-error'); $('input',$(this)).removeClass('ui-state-error');
$('#stream_error_container').css({ $('#stream_error_container').css({
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
$(this).dialog('close'); $(this).dialog('close');
} }
}, },
"Cancel":function(){ "<?vlc gettext("Cancel") ?>":function(){
$(this).dialog('close'); $(this).dialog('close');
} }
} }
...@@ -132,11 +132,11 @@ ...@@ -132,11 +132,11 @@
} }
//]]> //]]>
</script> </script>
<div id="window_create_stream" title="Create Stream"> <div id="window_create_stream" title="<?vlc gettext("Create Stream") ?>">
<table width="100%"> <table width="100%">
<tr> <tr>
<td style="text-align:right" valign="top"> <td style="text-align:right" valign="top">
<h5>Stream Name</h5> <h5><?vlc gettext("Stream Name") ?></h5>
</td> </td>
<td colspan="5" valign="top"> <td colspan="5" valign="top">
<input type="text" name="stream_name" id="stream_name" value=""/> <input type="text" name="stream_name" id="stream_name" value=""/>
...@@ -144,20 +144,20 @@ ...@@ -144,20 +144,20 @@
</tr> </tr>
<tr> <tr>
<th colspan="2" valign="top"> <th colspan="2" valign="top">
<h5>Video</h5> <h5><?vlc gettext("Video") ?></h5>
</th> </th>
<th colspan="2" valign="top"> <th colspan="2" valign="top">
<h5>Audio</h5> <h5><?vlc gettext("Audio") ?></h5>
</th> </th>
<th colspan="2" valign="top"> <th colspan="2" valign="top">
<h5>Subtitles</h5> <h5><?vlc gettext("Subtitles") ?></h5>
</th> </th>
<th colspan="2" valign="top"> <th colspan="2" valign="top">
<h5>Output</h5> <h5><?vlc gettext("Output") ?></h5>
</th> </th>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Video Codec</td> <td style="text-align:right" valign="top"><?vlc gettext("Video Codec") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_vcodec" id="stream_vcodec"> <select name="stream_vcodec" id="stream_vcodec">
<option value="FLV1">FLV1</option> <option value="FLV1">FLV1</option>
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
<option value="theo">theo</option> <option value="theo">theo</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Audio Codec</td> <td style="text-align:right" valign="top"><?vlc gettext("Audio Codec") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_acodec" id="stream_acodec"> <select name="stream_acodec" id="stream_acodec">
<option value="mp3">mp3</option> <option value="mp3">mp3</option>
...@@ -190,18 +190,18 @@ ...@@ -190,18 +190,18 @@
<option value="fl32">fl32</option> <option value="fl32">fl32</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Subtitle Codec</td> <td style="text-align:right" valign="top"><?vlc gettext("Subtitle Codec") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_scodec" id="stream_scodec"> <select name="stream_scodec" id="stream_scodec">
<option value="">none</option> <option value=""><?vlc gettext("none") ?></option>
<option value="dvbs">dvbs</option> <option value="dvbs">dvbs</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Output Method</td> <td style="text-align:right" valign="top"><?vlc gettext("Output Method") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_out_method" id="stream_out_method"> <select name="stream_out_method" id="stream_out_method">
<option value="http">HTTP</option> <option value="http">HTTP</option>
<option value="file">File</option> <option value="file"><?vlc gettext("File") ?></option>
<option value="mmsh">MMSH</option> <option value="mmsh">MMSH</option>
<option value="rtp">RTP</option> <option value="rtp">RTP</option>
<option value="udp">UDP</option> <option value="udp">UDP</option>
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Video Bit Rate</td> <td style="text-align:right" valign="top"><?vlc gettext("Video Bit Rate") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_vb" id="stream_vb"> <select name="stream_vb" id="stream_vb">
<option value="4096">4096</option> <option value="4096">4096</option>
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
<option value="16">16</option> <option value="16">16</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Audio Bit Rate</td> <td style="text-align:right" valign="top"><?vlc gettext("Audio Bit Rate") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_ab" id="stream_ab"> <select name="stream_ab" id="stream_ab">
<option value="512">512</option> <option value="512">512</option>
...@@ -242,11 +242,11 @@ ...@@ -242,11 +242,11 @@
<option value="16">16</option> <option value="16">16</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Overlay</td> <td style="text-align:right" valign="top"><?vlc gettext("Overlay") ?></td>
<td valign="top"> <td valign="top">
<input type="checkbox" name="stream_soverlay" id="stream_soverlay" value="1" /> <input type="checkbox" name="stream_soverlay" id="stream_soverlay" value="1" />
</td> </td>
<td style="text-align:right" valign="top">Multiplexer</td> <td style="text-align:right" valign="top"><?vlc gettext("Multiplexer") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_out_mux" id="stream_out_mux"> <select name="stream_out_mux" id="stream_out_mux">
<option value="ts">MPEG TS</option> <option value="ts">MPEG TS</option>
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Video FPS</td> <td style="text-align:right" valign="top"><?vlc gettext("Video FPS") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_fps" id="stream_fps"> <select name="stream_fps" id="stream_fps">
<option value="300">300</option> <option value="300">300</option>
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
<option value="24">24</option> <option value="24">24</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Audio Sample Rate</td> <td style="text-align:right" valign="top"><?vlc gettext("Audio Sample Rate") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_samplerate" id="stream_samplerate"> <select name="stream_samplerate" id="stream_samplerate">
<option value="192000">192 KHz</option> <option value="192000">192 KHz</option>
...@@ -294,13 +294,13 @@ ...@@ -294,13 +294,13 @@
</select> </select>
</td> </td>
<td colspan="2" valign="top">&nbsp;</td> <td colspan="2" valign="top">&nbsp;</td>
<td style="text-align:right" valign="top">MUX Options</td> <td style="text-align:right" valign="top"><?vlc gettext("MUX Options") ?></td>
<td valign="top"> <td valign="top">
<input type="text" name="stream_out_mux_opts" id="stream_out_mux_opts" value="{mux=flv}" /> <input type="text" name="stream_out_mux_opts" id="stream_out_mux_opts" value="{mux=flv}" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Video Scale</td> <td style="text-align:right" valign="top"><?vlc gettext("Video Scale") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_scale" id="stream_scale"> <select name="stream_scale" id="stream_scale">
<option value="0.25">25%</option> <option value="0.25">25%</option>
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
<option value="2">200%</option> <option value="2">200%</option>
</select> </select>
</td> </td>
<td style="text-align:right" valign="top">Audio Channels</td> <td style="text-align:right" valign="top"><?vlc gettext("Audio Channels") ?></td>
<td valign="top"> <td valign="top">
<select name="stream_channels" id="stream_channels" > <select name="stream_channels" id="stream_channels" >
<option value="1">1</option> <option value="1">1</option>
...@@ -327,15 +327,15 @@ ...@@ -327,15 +327,15 @@
<div id="output_options"> <div id="output_options">
<table> <table>
<tr> <tr>
<td style="text-align:right" valign="top">Output Port</td> <td style="text-align:right" valign="top"><?vlc gettext("Output Port") ?></td>
<td valign="top"><input type="text" name="stream_out_port" id="stream_out_port" value="8081" /></td> <td valign="top"><input type="text" name="stream_out_port" id="stream_out_port" value="8081" /></td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Output Destination</td> <td style="text-align:right" valign="top"><?vlc gettext("Output Destination") ?></td>
<td><input type="text" name="stream_out_dest" id="stream_out_dest" value="0.0.0.0" /></td> <td><input type="text" name="stream_out_dest" id="stream_out_dest" value="0.0.0.0" /></td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Output File</td> <td style="text-align:right" valign="top"><?vlc gettext("Output File") ?></td>
<td valign="top"><input type="text" name="stream_out_file" id="stream_out_file" value="stream.flv" /></td> <td valign="top"><input type="text" name="stream_out_file" id="stream_out_file" value="stream.flv" /></td>
</tr> </tr>
</table> </table>
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td valign="top" style="text-align:right">Deinterlace</td> <td valign="top" style="text-align:right"><?vlc gettext("Deinterlace") ?></td>
<td valign="top"> <td valign="top">
<input type="checkbox" name="stream_deinterlace" id="stream_deinterlace" value="1" /> <input type="checkbox" name="stream_deinterlace" id="stream_deinterlace" value="1" />
</td> </td>
...@@ -352,34 +352,34 @@ ...@@ -352,34 +352,34 @@
</tr> </tr>
<tr> <tr>
<td style="text-align:right" colspan="2" valign="top"> <td style="text-align:right" colspan="2" valign="top">
Input Media <?vlc gettext("Input Media") ?>
</td> </td>
<td colspan="6" valign="top"> <td colspan="6" valign="top">
<input type="text" name="stream_input" id="stream_input" value="" size="50" /> <input type="text" name="stream_input" id="stream_input" value="" size="50" />
<div id="button_input" class="button icon ui-widget ui-state-default" title="Media File" opendialog="window_browse"><span class="ui-icon ui-icon-eject"></span></div> <div id="button_input" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Media File") ?>" opendialog="window_browse"><span class="ui-icon ui-icon-eject"></span></div>
<div id="button_in_screen" class="button icon ui-widget ui-state-default" title="Capture Screen" ><span class="ui-icon ui-icon-contact"></span></div> <div id="button_in_screen" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Capture Screen") ?>" ><span class="ui-icon ui-icon-contact"></span></div>
</td> </td>
</tr> </tr>
</table> </table>
<div class="ui-widget" id="stream_error_container" style="display:none;visibility: hidden;"> <div class="ui-widget" id="stream_error_container" style="display:none;visibility: hidden;">
<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
<strong>Error:</strong> <span id="stream_error_message">Sample ui-state-error style.</span></p> <strong><?vlc gettext("Error:") ?></strong> <span id="stream_error_message"><?vlc gettext("Sample ui-state-error style.") ?></span></p>
</div> </div>
</div> </div>
</div> </div>
<div id="net_options" style="display:none;visibility: hidden;"> <div id="net_options" style="display:none;visibility: hidden;">
<table> <table>
<tr> <tr>
<td style="text-align:right" valign="top">Output Port</td> <td style="text-align:right" valign="top"><?vlc gettext("Output Port") ?></td>
<td valign="top"><input type="text" name="stream_out_port_" id="stream_out_port_" value="8081" /></td> <td valign="top"><input type="text" name="stream_out_port_" id="stream_out_port_" value="8081" /></td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Output Destination</td> <td style="text-align:right" valign="top"><?vlc gettext("Output Destination") ?></td>
<td valign="top"><input type="text" name="stream_out_dest_" id="stream_out_dest_" value="0.0.0.0" /></td> <td valign="top"><input type="text" name="stream_out_dest_" id="stream_out_dest_" value="0.0.0.0" /></td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" valign="top">Output File</td> <td style="text-align:right" valign="top"><?vlc gettext("Output File") ?></td>
<td valign="top"><input type="text" name="stream_out_file_" id="stream_out_file_" value="stream.flv" /></td> <td valign="top"><input type="text" name="stream_out_file_" id="stream_out_file_" value="stream.flv" /></td>
</tr> </tr>
</table> </table>
...@@ -387,7 +387,7 @@ ...@@ -387,7 +387,7 @@
<div id="file_options" style="display:none;visibility: hidden;"> <div id="file_options" style="display:none;visibility: hidden;">
<table> <table>
<tr> <tr>
<td style="text-align:right" valign="top">File Name</td> <td style="text-align:right" valign="top"><?vlc gettext("File Name") ?></td>
<td valign="top"><input type="text" name="stream_out_filename_" id="stream_out_filename_"/></td> <td valign="top"><input type="text" name="stream_out_filename_" id="stream_out_filename_"/></td>
</tr> </tr>
</table> </table>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
width: 500, width: 500,
resizable: false, resizable: false,
buttons:{ buttons:{
"Reset":function(){ "<?vlc gettext("Reset") ?>":function(){
$('.eqBand').each(function(){ $('.eqBand').each(function(){
$(this).slider('value',0); $(this).slider('value',0);
sendEQCmd({ sendEQCmd({
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
}); });
}, },
"Close":function(){ "<?vlc gettext("Close") ?>":function(){
$(this).dialog("close"); $(this).dialog("close");
} }
} }
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
}); });
//]]> //]]>
</script> </script>
<div id="window_equalizer" title="Graphical Equalizer"> <div id="window_equalizer" title="<?vlc gettext("Graphical Equalizer") ?>">
<div style="margin: 5px 5px 5px 5px;"> <div style="margin: 5px 5px 5px 5px;">
<div>Preamp: <span id="preamp_txt">0dB</span></div> <div><?vlc gettext("Preamp:") ?> <span id="preamp_txt">0dB</span></div>
</div> </div>
<div style="margin: 5px 5px 10px 5px;"> <div style="margin: 5px 5px 10px 5px;">
<div id="preamp" style="font-size: 18px;"></div> <div id="preamp" style="font-size: 18px;"></div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
width:400, width:400,
modal: true, modal: true,
buttons:{ buttons:{
"Close":function(){ "<?vlc gettext("Close") ?>":function(){
$('#error_container').empty(); $('#error_container').empty();
$(this).dialog('close'); $(this).dialog('close');
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}); });
}) })
</script> </script>
<div id="window_error" title="Error!"> <div id="window_error" title="<?vlc gettext("Error!") ?>">
<div class="ui-state-error"><div class="ui-icon ui-icon-alert"></div></div> <div class="ui-state-error"><div class="ui-icon ui-icon-alert"></div></div>
<div id="error_container" class="ui-state-error"></div> <div id="error_container" class="ui-state-error"></div>
</div> </div>
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
minHeight: 500, minHeight: 500,
modal: true, modal: true,
buttons: { buttons: {
"Create": function() { "<?vlc gettext("Create") ?>": function() {
$(this).dialog("close"); $(this).dialog("close");
}, },
"Cancel" : function(){ "<?vlc gettext("Cancel") ?>" : function(){
$(this).dialog("close") $(this).dialog("close")
} }
} }
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
var cols = Number($('#mosaic_cols').val()); var cols = Number($('#mosaic_cols').val());
var n = 0; var n = 0;
$('#mosaic_tiles').empty() $('#mosaic_tiles').empty()
$('#mosaic_tiles').append('<tr><td colspan="99"><h3 style="margin:0px;cursor:move; font-weight:normal" class="ui-widget-header">Mosaic Tiles</h3></td></tr>'); $('#mosaic_tiles').append('<tr><td colspan="99"><h3 style="margin:0px;cursor:move; font-weight:normal" class="ui-widget-header"><?vlc gettext("Mosaic Tiles") ?></h3></td></tr>');
for(var i=0;i<rows;i++){ for(var i=0;i<rows;i++){
$('#mosaic_tiles').append('<tr>'); $('#mosaic_tiles').append('<tr>');
for(var j=0;j<cols;j++){ for(var j=0;j<cols;j++){
...@@ -90,49 +90,49 @@ ...@@ -90,49 +90,49 @@
//]]> //]]>
</script> </script>
<div id="window_mosaic" title="Create Mosaic"> <div id="window_mosaic" title="<?vlc gettext("Create Mosaic") ?>">
<table id="mosaic_options"> <table id="mosaic_options">
<tr> <tr>
<td style="text-align:right">Rows:</td> <td style="text-align:right"><?vlc gettext("Rows:") ?></td>
<td> <td>
<input type="text" name="mosaic_rows" id="mosaic_rows" size="3" value="2"/> <input type="text" name="mosaic_rows" id="mosaic_rows" size="3" value="2"/>
</td> </td>
<td style="text-align:right">x offset</td> <td style="text-align:right"><?vlc gettext("x offset") ?></td>
<td> <td>
<input type="text" name="mosaic_xoff" id="mosaic_xoff" size="3" value="0" disabled="disabled"/> <input type="text" name="mosaic_xoff" id="mosaic_xoff" size="3" value="0" disabled="disabled"/>
</td> </td>
<td style="text-align:right">row border</td> <td style="text-align:right"><?vlc gettext("row border") ?></td>
<td> <td>
<input type="text" name="mosaic_rbord" id="mosaic_rbord" size="3" value="5"/> <input type="text" name="mosaic_rbord" id="mosaic_rbord" size="3" value="5"/>
</td> </td>
<td style="text-align:right">width</td> <td style="text-align:right"><?vlc gettext("width") ?></td>
<td> <td>
<input type="text" name="mosaic_width" id="mosaic_width" size="3" value="100" disabled="disabled"/> <input type="text" name="mosaic_width" id="mosaic_width" size="3" value="100" disabled="disabled"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right">Columns:</td> <td style="text-align:right"><?vlc gettext("Columns:") ?></td>
<td> <td>
<input type="text" name="mosaic_cols" id="mosaic_cols" size="3" value="2"/> <input type="text" name="mosaic_cols" id="mosaic_cols" size="3" value="2"/>
</td> </td>
<td style="text-align:right">y offset</td> <td style="text-align:right"><?vlc gettext("y offset") ?></td>
<td> <td>
<input type="text" name="mosaic_yoff" id="mosaic_yoff" size="3" value="0" disabled="disabled"/> <input type="text" name="mosaic_yoff" id="mosaic_yoff" size="3" value="0" disabled="disabled"/>
</td> </td>
<td style="text-align:right">column border</td> <td style="text-align:right"><?vlc gettext("column border") ?></td>
<td> <td>
<input type="text" name="mosaic_cbord" id="mosaic_cbord" size="3" value="5"/> <input type="text" name="mosaic_cbord" id="mosaic_cbord" size="3" value="5"/>
</td> </td>
<td style="text-align:right">height</td> <td style="text-align:right"><?vlc gettext("height") ?></td>
<td> <td>
<input type="text" name="mosaic_height" id="mosaic_height" size="3" value="100" disabled="disabled"/> <input type="text" name="mosaic_height" id="mosaic_height" size="3" value="100" disabled="disabled"/>
</td> </td>
</tr> </tr>
</table> </table>
<div id="mosaic_bg" class="ui-widget-content" style="background: #3333FF;width:400px; height:300px;text-align: center; vertical-align: middle;"> <div id="mosaic_bg" class="ui-widget-content" style="background: #3333FF;width:400px; height:300px;text-align: center; vertical-align: middle;">
<h3 style="margin:0px;font-weight:normal" class="ui-widget-header">Background</h3> <h3 style="margin:0px;font-weight:normal" class="ui-widget-header"><?vlc gettext("Background") ?></h3>
<table id="mosaic_tiles" class="ui-widget-content" cellpadding="0" cellspacing="0"> <table id="mosaic_tiles" class="ui-widget-content" cellpadding="0" cellspacing="0">
<tr><td colspan="99"><h3 style="margin:0px;cursor:move; font-weight:normal" class="ui-widget-header">Mosaic Tiles</h3></td></tr> <tr><td colspan="99"><h3 style="margin:0px;cursor:move; font-weight:normal" class="ui-widget-header"><?vlc gettext("Mosaic Tiles") ?></h3></td></tr>
<tr> <tr>
<td class="mosaic"></td> <td class="mosaic"></td>
<td class="mosaic"></td> <td class="mosaic"></td>
......
...@@ -64,16 +64,16 @@ ...@@ -64,16 +64,16 @@
}); });
//]]> //]]>
</script> </script>
<div id="window_offset" title="Track Synchronisation"> <div id="window_offset" title="<?vlc gettext("Track Synchronisation") ?>">
<div>Playback Rate</div> <div><?vlc gettext("Playback Rate") ?></div>
<div id="rateSlider" title="Playback Rate"></div> <div id="rateSlider" title="<?vlc gettext("Playback Rate") ?>"></div>
<div id="currentRate" class="dynamic">1x</div> <div id="currentRate" class="dynamic">1x</div>
<br/> <br/>
<div>Audio Delay</div> <div><?vlc gettext("Audio Delay") ?></div>
<div id="audioSlider" title="Audio Delay"></div> <div id="audioSlider" title="<?vlc gettext("Audio Delay") ?>"></div>
<div id="currentAudioDelay" class="dynamic">0s</div> <div id="currentAudioDelay" class="dynamic">0s</div>
<br/> <br/>
<div>Subtitle Delay</div> <div><?vlc gettext("Subtitle Delay") ?></div>
<div id="subtitleSlider" title="Subtitle Delay"></div> <div id="subtitleSlider" title="<?vlc gettext("Subtitle Delay") ?>"></div>
<div id="currentSubtitleDelay" class="dynamic">0s</div> <div id="currentSubtitleDelay" class="dynamic">0s</div>
</div> </div>
...@@ -5,35 +5,35 @@ ...@@ -5,35 +5,35 @@
width:400, width:400,
modal: true, modal: true,
buttons:{ buttons:{
"Okay":function(){ "<?vlc gettext("Okay") ?>":function(){
$('#player').empty(); $('#player').empty();
$('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val()); $('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf"); flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
$(this).dialog('close'); $(this).dialog('close');
}, },
"Cancel":function(){ "<?vlc gettext("Cancel") ?>":function(){
$(this).dialog('close'); $(this).dialog('close');
} }
} }
}); });
}) })
</script> </script>
<div id="window_stream_config" title="Stream Input Configuration"> <div id="window_stream_config" title="<?vlc gettext("Stream Input Configuration") ?>">
<table> <table>
<tr> <tr>
<td>Protocol</td> <td><?vlc gettext("Protocol") ?></td>
<td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td> <td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td>
</tr> </tr>
<tr> <tr>
<td>Host</td> <td><?vlc gettext("Host") ?></td>
<td><input type="text" name="stream_host" id="stream_host" value="" /></td> <td><input type="text" name="stream_host" id="stream_host" value="" /></td>
</tr> </tr>
<tr> <tr>
<td>Port</td> <td><?vlc gettext("Port") ?></td>
<td><input type="text" name="stream_port" id="stream_port" value="8081" /></td> <td><input type="text" name="stream_port" id="stream_port" value="8081" /></td>
</tr> </tr>
<tr> <tr>
<td>File</td> <td><?vlc gettext("File") ?></td>
<td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td> <td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td>
</tr> </tr>
</table> </table>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
minWidth: 600, minWidth: 600,
minHeight: 430, minHeight: 430,
buttons:{ buttons:{
"Close":function(){ "<?vlc gettext("Close") ?>":function(){
$(this).dialog("close"); $(this).dialog("close");
} }
} }
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
width:400, width:400,
modal: true, modal: true,
buttons:{ buttons:{
"Okay":function(){ "<?vlc gettext("Okay") ?>":function(){
$(this).dialog('close'); $(this).dialog('close');
} }
} }
...@@ -55,44 +55,44 @@ ...@@ -55,44 +55,44 @@
<div id="stream_status_" style="visibility:hidden;display:none;"> <div id="stream_status_" style="visibility:hidden;display:none;">
<h3><a href="#" id="stream_title_"></a></h3> <h3><a href="#" id="stream_title_"></a></h3>
<div> <div>
<div id="button_stream_stop_" class="button icon ui-widget ui-state-default" title="Stop"><span class="ui-icon ui-icon-stop"></span></div> <div id="button_stream_stop_" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Stop") ?>"><span class="ui-icon ui-icon-stop"></span></div>
<div id="button_stream_play_" class="button icon ui-widget ui-state-default" title="Play"><span class="ui-icon ui-icon-play"></span></div> <div id="button_stream_play_" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Play") ?>"><span class="ui-icon ui-icon-play"></span></div>
<div id="button_stream_loop_" class="button icon ui-widget ui-state-default" title="Loop"><span class="ui-icon ui-icon-refresh"></span></div> <div id="button_stream_loop_" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Loop") ?>"><span class="ui-icon ui-icon-refresh"></span></div>
<div id="button_stream_delete_" class="button icon ui-widget ui-state-default" title="Remove Stream"><span class="ui-icon ui-icon-trash"></span></div> <div id="button_stream_delete_" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Remove Stream") ?>"><span class="ui-icon ui-icon-trash"></span></div>
<div>Title: <span id="stream_file_"></span></div> <div>Title: <span id="stream_file_"></span></div>
<div style="width: 260px; margin: 5px 0px 10px 0px;"> <div style="width: 260px; margin: 5px 0px 10px 0px;">
<div id="stream_pos_"></div> <div id="stream_pos_"></div>
Time: <span id="stream_current_time_">00:00:00</span> / <span id="stream_total_time_">00:00:00</span> <?vlc gettext("Time:") ?> <span id="stream_current_time_">00:00:00</span> / <span id="stream_total_time_">00:00:00</span>
</div> </div>
</div> </div>
</div> </div>
<div id="window_streams" title="Manage Streams"> <div id="window_streams" title="<?vlc gettext("Manage Streams") ?>">
<div id="button_create_stream" class="button icon ui-widget ui-state-default" title="Create New Stream" opendialog="window_create_stream"><span class="ui-icon ui-icon-plus"></span></div> <div id="button_create_stream" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Create New Stream") ?>" opendialog="window_create_stream"><span class="ui-icon ui-icon-plus"></span></div>
<div id="button_create_mosaic" class="button icon ui-widget ui-state-default" title="Create Mosaic" opendialog="window_create_mosaiac"><span class="ui-icon ui-icon-calculator"></span></div> <div id="button_create_mosaic" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Create Mosaic") ?>" opendialog="window_create_mosaiac"><span class="ui-icon ui-icon-calculator"></span></div>
<div id="button_clear_streams" class="button icon ui-widget ui-state-default" title="Delete All Streams"><span class="ui-icon ui-icon-trash"></span></div> <div id="button_clear_streams" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Delete All Streams") ?>"><span class="ui-icon ui-icon-trash"></span></div>
<div id="button_config_streams" class="button icon ui-widget ui-state-default" title="Configure Stream Defaults"><span class="ui-icon ui-icon-wrench"></span></div> <div id="button_config_streams" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Configure Stream Defaults") ?>"><span class="ui-icon ui-icon-wrench"></span></div>
<div id="button_refresh_streams" class="button ui-widget ui-state-default ui-corner-all" title="Refresh Streams"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></div> <div id="button_refresh_streams" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Refresh Streams") ?>"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></div>
<div id="stream_info"> <div id="stream_info">
</div> </div>
</div> </div>
<div id="window_stream_config" title="Stream Input Configuration"> <div id="window_stream_config" title="<?vlc gettext("Stream Input Configuration") ?>">
<table> <table>
<tr> <tr>
<td>Protocol</td> <td><?vlc gettext("Protocol") ?></td>
<td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td> <td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td>
</tr> </tr>
<tr> <tr>
<td>Host</td> <td><?vlc gettext("Host") ?></td>
<td><input type="text" name="stream_host" id="stream_host" value="" /></td> <td><input type="text" name="stream_host" id="stream_host" value="" /></td>
</tr> </tr>
<tr> <tr>
<td>Port</td> <td><?vlc gettext("Port") ?></td>
<td><input type="text" name="stream_port" id="stream_port" value="8081" /></td> <td><input type="text" name="stream_port" id="stream_port" value="8081" /></td>
</tr> </tr>
<tr> <tr>
<td>File</td> <td><?vlc gettext("File") ?></td>
<td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td> <td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td>
</tr> </tr>
</table> </table>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<html> <html>
<head> <head>
<title>VLC media player - Web Interface</title> <title><?vlc gettext("VLC media player - Web Interface") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon" /> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon" />
<script type="text/javascript" src="js/common.js"></script> <script type="text/javascript" src="js/common.js"></script>
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
width:600, width:600,
modal: true, modal: true,
buttons:{ buttons:{
"Yes":function(){ "<?vlc gettext("Yes") ?>":function(){
var file = $('[current="current"]','#libraryTree').length>0 ? decodeURIComponent($('[current="current"]','#libraryTree').first().attr('uri').substr(7)) : ($('.jstree-clicked','#libraryTree').length>0 ? decodeURIComponent($('.jstree-clicked','#libraryTree').first().parents().first().attr('uri').substr(7)) : ($('#plid_'+current_id).attr('uri') ? decodeURIComponent($('#plid_'+current_id).attr('uri').substr(7)) : false)); var file = $('[current="current"]','#libraryTree').length>0 ? decodeURIComponent($('[current="current"]','#libraryTree').first().attr('uri').substr(7)) : ($('.jstree-clicked','#libraryTree').length>0 ? decodeURIComponent($('.jstree-clicked','#libraryTree').first().parents().first().attr('uri').substr(7)) : ($('#plid_'+current_id).attr('uri') ? decodeURIComponent($('#plid_'+current_id).attr('uri').substr(7)) : false));
if(file){ if(file){
if($('#viewContainer').css('display')=='none'){ if($('#viewContainer').css('display')=='none'){
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
} }
$(this).dialog('close'); $(this).dialog('close');
}, },
"No":function(){ "<?vlc gettext("No") ?>":function(){
$(this).dialog('close'); $(this).dialog('close');
} }
} }
...@@ -195,25 +195,25 @@ ...@@ -195,25 +195,25 @@
<div id="mainContainer" class="centered"> <div id="mainContainer" class="centered">
<div id="controlContainer" class="ui-widget"> <div id="controlContainer" class="ui-widget">
<div class="ui-widget-header" style="text-align: left;"> <div class="ui-widget-header" style="text-align: left;">
<img src="images/vlc16x16.png" alt="VLC" width="16" height="16"/> Controls <img src="images/vlc16x16.png" alt="VLC" width="16" height="16"/><?vlc gettext("Controls") ?>
</div> </div>
<div id="controlTable" class="ui-widget-content"> <div id="controlTable" class="ui-widget-content">
<ul id="controlButtons"> <ul id="controlButtons">
<li id="buttonPrev" class="button48 ui-corner-all" title="Previous"></li> <li id="buttonPrev" class="button48 ui-corner-all" title="<?vlc gettext("Previous") ?>"></li>
<li id="buttonPlay" class="button48 ui-corner-all paused" title="Play"></li> <li id="buttonPlay" class="button48 ui-corner-all paused" title="<?vlc gettext("Play") ?>"></li>
<li id="buttonNext" class="button48 ui-corner-all" title="Next"></li> <li id="buttonNext" class="button48 ui-corner-all" title="<?vlc gettext("Next") ?>"></li>
<li id="buttonOpen" class="button48 ui-corner-all" title="Open Media"></li> <li id="buttonOpen" class="button48 ui-corner-all" title="<?vlc gettext("Open Media") ?>"></li>
<li id="buttonStop" class="button48 ui-corner-all" title="Stop"></li> <li id="buttonStop" class="button48 ui-corner-all" title="<?vlc gettext("Stop") ?>"></li>
<li id="buttonFull" class="button48 ui-corner-all" title="Full Screen"></li> <li id="buttonFull" class="button48 ui-corner-all" title="<?vlc gettext("Full Screen") ?>"></li>
<li id="buttonSout" class="button48 ui-corner-all" title="Easy Stream"></li> <li id="buttonSout" class="button48 ui-corner-all" title="<?vlc gettext("Easy Stream") ?>"></li>
</ul> </ul>
<ul id="buttonszone"> <ul id="buttonszone">
<li id="buttonPlayList" class="button ui-widget ui-state-default ui-corner-all" title="Hide / Show Library"><span class="ui-icon ui-icon-note"></span></li> <li id="buttonPlayList" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Hide / Show Library") ?>"><span class="ui-icon ui-icon-note"></span></li>
<li id="buttonViewer" class="button ui-widget ui-state-default ui-corner-all" title="Hide / Show Viewer"><span class="ui-icon ui-icon-video"></span></li> <li id="buttonViewer" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Hide / Show Viewer") ?>"><span class="ui-icon ui-icon-video"></span></li>
<li id="buttonStreams" class="button ui-widget ui-state-default ui-corner-all" title="Manage Streams"><span class="ui-icon ui-icon-script"></span></li> <li id="buttonStreams" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Manage Streams") ?>"><span class="ui-icon ui-icon-script"></span></li>
<li id="buttonOffsets" class="button ui-widget ui-state-default ui-corner-all" title="Track Synchronisation"><span class="ui-icon ui-icon-transfer-e-w"></span></li> <li id="buttonOffsets" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Track Synchronisation") ?>"><span class="ui-icon ui-icon-transfer-e-w"></span></li>
<li id="buttonEqualizer" class="button ui-widget ui-state-default ui-corner-all" title="Equalizer"><span class="ui-icon ui-icon-signal"></span></li> <li id="buttonEqualizer" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Equalizer") ?>"><span class="ui-icon ui-icon-signal"></span></li>
<li id="buttonBatch" class="button ui-widget ui-state-default ui-corner-all" title="VLM Batch Commands"><span class="ui-icon ui-icon-suitcase"></span></li> <li id="buttonBatch" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("VLM Batch Commands") ?>"><span class="ui-icon ui-icon-suitcase"></span></li>
</ul> </ul>
<div id="volumesliderzone"> <div id="volumesliderzone">
<div id="volumeSlider" title="Volume"><img src="images/speaker-32.png" class="ui-slider-handle" alt="volume"/></div> <div id="volumeSlider" title="Volume"><img src="images/speaker-32.png" class="ui-slider-handle" alt="volume"/></div>
...@@ -224,32 +224,32 @@ ...@@ -224,32 +224,32 @@
</div> </div>
<div id="mediaTitle" class="dynamic"></div> <div id="mediaTitle" class="dynamic"></div>
<div id="seekContainer"> <div id="seekContainer">
<div id="seekSlider" title="Seek Time"></div> <div id="seekSlider" title="<?vlc gettext("Seek Time") ?>"></div>
<div id="currentTime" class="dynamic">00:00:00</div> <div id="currentTime" class="dynamic">00:00:00</div>
<div id="totalTime" class="dynamic">00:00:00</div> <div id="totalTime" class="dynamic">00:00:00</div>
</div> </div>
</div> </div>
</div> </div>
<div id="viewContainer" class="ui-widget"> <div id="viewContainer" class="ui-widget">
<div class="ui-widget-header" style="text-align: left;"><img src="images/vlc16x16.png" alt="VLC" width="16" height="16"/> Viewer</div> <div class="ui-widget-header" style="text-align: left;"><img src="images/vlc16x16.png" alt="VLC" width="16" height="16"/><?vlc gettext("Viewer") ?></div>
<div id="mediaViewer" class="ui-widget-content"> <div id="mediaViewer" class="ui-widget-content">
<div href="http://localhost:8081/stream.flv" style="display:block; width:100%" id="player"> <div href="http://localhost:8081/stream.flv" style="display:block; width:100%" id="player">
<p>Loading flowplayer...<br/>If nothing appears, check your internet connection.</p> <p><?vlc gettext("Loading flowplayer...") ?><br/><?vlc gettext("If nothing appears, check your internet connection.") ?></p>
</div> </div>
</div> </div>
</div> </div>
<div id="libraryContainer" class="ui-widget"> <div id="libraryContainer" class="ui-widget">
<div class="ui-widget-header" style="text-align: left;"> <div class="ui-widget-header" style="text-align: left;">
<img src="images/vlc16x16.png" alt="VLC" width="16" height="16"/> Library <img src="images/vlc16x16.png" alt="VLC" width="16" height="16"/><?vlc gettext("Library") ?>
</div> </div>
<div align="left" class="ui-widget-content" style="overflow:hidden; white-space: nowrap;"> <div align="left" class="ui-widget-content" style="overflow:hidden; white-space: nowrap;">
<div id="buttonShuffle" class="button ui-widget ui-state-default ui-corner-all" title="Shuffle"><span class="ui-icon ui-icon-shuffle"></span></div> <div id="buttonShuffle" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Shuffle") ?>"><span class="ui-icon ui-icon-shuffle"></span></div>
<div id="buttonLoop" class="button ui-widget ui-state-default ui-corner-all" title="Loop"><span class="ui-icon ui-icon-refresh"></span></div> <div id="buttonLoop" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Loop") ?>"><span class="ui-icon ui-icon-refresh"></span></div>
<div id="buttonRepeat" class="button ui-widget ui-state-default ui-corner-all" title="Repeat"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span></div> <div id="buttonRepeat" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Repeat") ?>"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span></div>
<div id="buttonPlEmpty" class="button ui-widget ui-state-default ui-corner-all" title="Empty Playlist"><span class="ui-icon ui-icon-trash"></span></div> <div id="buttonPlEmpty" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Empty Playlist") ?>"><span class="ui-icon ui-icon-trash"></span></div>
<div id="buttonPlAdd" class="button ui-widget ui-state-default ui-corner-all" title="Queue Selected"><span class="ui-icon ui-icon-plus"></span></div> <div id="buttonPlAdd" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Queue Selected") ?>"><span class="ui-icon ui-icon-plus"></span></div>
<div id="buttonPlPlay" class="button ui-widget ui-state-default ui-corner-all" title="Play Selected"><span class="ui-icon ui-icon-play"></span></div> <div id="buttonPlPlay" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Play Selected") ?>"><span class="ui-icon ui-icon-play"></span></div>
<div id="buttonRefresh" class="button ui-widget ui-state-default ui-corner-all" title="Refresh List"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></div> <div id="buttonRefresh" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Refresh List") ?>"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></div>
</div> </div>
<div id="libraryTree" class="ui-widget-content"></div> <div id="libraryTree" class="ui-widget-content"></div>
</div> </div>
...@@ -261,24 +261,22 @@ ...@@ -261,24 +261,22 @@
</div> </div>
<div id="windowStreamConfirm" title="Confirm Stream Settings"> <div id="windowStreamConfirm" title="Confirm Stream Settings">
<p> <p>
By creating a stream, the <i>Main Controls</i> will operate the stream instead of the main interface. <?vlc gettext("By creating a stream, the <i>Main Controls</i> will operate the stream instead of the main interface.") ?>
The stream will be created using default settings, for more advanced configuration, or to modify the default settings, <?vlc gettext("The stream will be created using default settings, for more advanced configuration, or to modify the default settings, select the button to the right: <i>Manage Streams</i>") ?>
select the <i>Manage Streams</i> <span id="buttonStreams2" class="button ui-widget ui-state-default ui-corner-all" title="<?vlc gettext("Manage Streams") ?>"><span class="ui-icon ui-icon-script"></span></span>
<span id="buttonStreams2" class="button ui-widget ui-state-default ui-corner-all" title="Manage Streams"><span class="ui-icon ui-icon-script"></span></span>
button to the right.
</p> </p>
<p> <p>
Once the stream is created, the <i>Media Viewer</i> window will display the stream. <?vlc gettext("Once the stream is created, the <i>Media Viewer</i> window will display the stream.") ?>
Volume will be controlled by the player, and not the <i>Main Controls</i>. <?vlc gettext("Volume will be controlled by the player, and not the <i>Main Controls</i>.") ?>
</p> </p>
<p> <p>
The current playing item will be streamed. If there is no currently playing item, the first selected item from the <i>Library</i> will be the subject of the stream. <?vlc gettext("The current playing item will be streamed. If there is no currently playing item, the first selected item from the <i>Library</i> will be the subject of the stream.") ?>
</p> </p>
<p> <p>
To stop the stream and resume normal controls, click the <i>Open Stream</i> button again. <?vlc gettext("To stop the stream and resume normal controls, click the <i>Open Stream</i> button again.") ?>
</p> </p>
<p> <p>
Are you sure you wish to create the stream? <?vlc gettext("Are you sure you wish to create the stream ?") ?>
</p> </p>
</div> </div>
<?vlc <?vlc
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<html> <html>
<head> <head>
<title>VLC media player - Web Interface</title> <title><?vlc gettext("VLC media player - Web Interface") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width; user-scalable=no" /> <meta name="viewport" content="width=device-width; user-scalable=no" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon" /> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon" />
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
<img id="albumArt" src="/art" width="141px" height="130px" alt="Album Art" style="border:2px solid #000000;"/> <img id="albumArt" src="/art" width="141px" height="130px" alt="Album Art" style="border:2px solid #000000;"/>
</td> </td>
<td valign="top" width="125px" class="ui-widget-content" rowspan="2"> <td valign="top" width="125px" class="ui-widget-content" rowspan="2">
<div id="buttonOpen" class="button48 ui-corner-all" title="Open Media"></div> <div id="buttonOpen" class="button48 ui-corner-all" title="<?vlc gettext("Open Media") ?>"></div>
<div id="buttonFull" class="button48 ui-corner-all" title="Full Screen"></div> <div id="buttonFull" class="button48 ui-corner-all" title="<?vlc gettext("Full Screen") ?>"></div>
<div id="buttonEQ" class="button48 ui-corner-all" title="Equalizer"></div> <div id="buttonEQ" class="button48 ui-corner-all" title="<?vlc gettext("Equalizer") ?>"></div>
<div id="buttonSout" class="button48 ui-corner-all" title="Easy Stream"></div <div id="buttonSout" class="button48 ui-corner-all" title="<?vlc gettext("Easy Stream") ?>"></div
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -93,12 +93,12 @@ ...@@ -93,12 +93,12 @@
<tr> <tr>
<td id="controlButtons" colspan="2" valign="bottom" height="108px;" class="ui-widget-content"> <td id="controlButtons" colspan="2" valign="bottom" height="108px;" class="ui-widget-content">
<div align="center"> <div align="center">
<div id="buttonPrev" class="button48 ui-corner-all" title="Previous"></div> <div id="buttonPrev" class="button48 ui-corner-all" title="<?vlc gettext("Previous") ?>"></div>
<div id="buttonPlay" class="button48 ui-corner-all paused" title="Play"></div> <div id="buttonPlay" class="button48 ui-corner-all paused" title="<?vlc gettext("Play") ?>"></div>
<div id="buttonNext" class="button48 ui-corner-all" title="Next"></div> <div id="buttonNext" class="button48 ui-corner-all" title="<?vlc gettext("Next") ?>"></div>
<div id="buttonStop" class="button48 ui-corner-all" title="Stop"></div> <div id="buttonStop" class="button48 ui-corner-all" title="<?vlc gettext("Stop") ?>"></div>
</div> </div>
<div id="seekSlider" title="Seek Time" style="width:98%; margin-left:10px;font-size:30px;"></div> <div id="seekSlider" title="<?vlc gettext("Seek Time") ?>" style="width:98%; margin-left:10px;font-size:30px;"></div>
<table width="100%"> <table width="100%">
<tr> <tr>
<td> <td>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<html> <html>
<head> <head>
<title>VLC media player - Web Interface</title> <title><?vlc gettext("VLC media player - Web Interface") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width; user-scalable=no" /> <meta name="viewport" content="width=device-width; user-scalable=no" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon" /> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon" />
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
</script> </script>
</head> </head>
<body> <body>
<div id="window_browse" title="Media Browser"> <div id="window_browse" title="<?vlc gettext("Media Browser") ?>">
<div> <div>
<ol id='browse_elements' selectable="selectable"> <ol id='browse_elements' selectable="selectable">
<li>Play List</li> <li><?vlc gettext("Play List") ?></li>
</ol> </ol>
</div> </div>
</div> </div>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<html> <html>
<head> <head>
<title>VLC media player - Web Interface</title> <title><?vlc gettext("VLC media player - Web Interface") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width; user-scalable=no" /> <meta name="viewport" content="width=device-width; user-scalable=no" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon" /> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon" />
...@@ -57,9 +57,9 @@ ...@@ -57,9 +57,9 @@
</script> </script>
</head> </head>
<body> <body>
<div id="window_equalizer" title="Graphical Equalizer"> <div id="window_equalizer" title="<?vlc gettext("Graphical Equalizer") ?>">
<div style="margin: 5px 5px 5px 5px;"> <div style="margin: 5px 5px 5px 5px;">
<div>Preamp: <span id="preamp_txt">0dB</span></div> <div><?vlc gettext("Preamp: ") ?><span id="preamp_txt">0dB</span></div>
</div> </div>
<div style="margin: 5px 5px 10px 5px;"> <div style="margin: 5px 5px 10px 5px;">
<div id="preamp" style="font-size: 22px;"></div> <div id="preamp" style="font-size: 22px;"></div>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<html> <html>
<head> <head>
<title>VLC media player - Web Interface</title> <title><?vlc gettext("VLC media player - Web Interface") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width; user-scalable=no" /> <meta name="viewport" content="width=device-width; user-scalable=no" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>VLC media player - Flash Viewer</title> <title><?vlc gettext("VLC media player - Flash Viewer") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" /> <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
...@@ -62,9 +62,9 @@ ...@@ -62,9 +62,9 @@
<body> <body>
<div id="window_stream" class="ui-widget-content"> <div id="window_stream" class="ui-widget-content">
<h3 class="ui-widget-header">Streaming Output</h3> <h3 class="ui-widget-header"><?vlc gettext("Streaming Output") ?></h3>
<div class="ui-widget-content"> <div class="ui-widget-content">
<div id="button_stream_config" class="button icon ui-widget ui-state-default" title="Configure" opendialog="window_stream_config"><span class="ui-icon ui-icon-wrench"></span></div> <div id="button_stream_config" class="button icon ui-widget ui-state-default" title="<?vlc gettext("Configure") ?>" opendialog="window_stream_config"><span class="ui-icon ui-icon-wrench"></span></div>
<div align="center"> <div align="center">
<div href="http://localhost:8081/stream.flv" style="display:block;width:720px;height:500px" id="player"></div> <div href="http://localhost:8081/stream.flv" style="display:block;width:720px;height:500px" id="player"></div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment