yweb: live multilanguage

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@445 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
yjogol
2010-03-01 09:35:23 +00:00
parent b4aca3a5b1
commit 4f26311401
5 changed files with 128 additions and 57 deletions

View File

@@ -49,39 +49,41 @@ function init(){
{=var-set:management={=if-equal:{=func:get_request_data client_addr=}~{=ini-get:/var/tuxbox/config/Y-Web.conf;management_ip;{=func:get_request_data client_addr=}=}~1~=}{=if-equal:{=func:get_request_data client_addr=}~{=ini-get:/var/tuxbox/config/Y-Web.conf;management_ip2=}~1~=}=}
<body>
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>Live/Timer</h2></div>
<div class="y_menu_sec_box_head"><h2>{=L:live.heading=}</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec_section">Live</div>
<div class="y_menu_sec_section">{=L:live.live=}</div>
<div class="y_menu_sec">
<ul id="secmenu_live">
<li>
<table class="y_invisible_table" cellspacing="0" cellpadding="0" style="width:100%; padding-right:15px;margin:0"><tr>
<td><a target="work" title="LiveTV" href="Y_LiveViewFull.yhtm?mode=tv&amp;typ=live">TV</a></td>
<td align="right"><a title="LiveTV (popup)" href="javascript:go_live_popup_tv()"><img src="/images/popup.png"/></a></td>
<td><a target="work" href="Y_LiveViewFull.yhtm?mode=tv&amp;typ=live">{=L:live.tv=}</a></td>
<td align="right"><a title="{=L:live.tv_popup_desc=}LiveTV (popup)" href="javascript:go_live_popup_tv()"><img src="/images/popup.png"/></a></td>
</tr></table>
</li>
<li>
<table class="y_invisible_table" cellspacing="0" cellpadding="0" style="width:100%; padding-right:15px;margin:0"><tr>
<td><a target="work" title="LiveRadio" href="Y_LiveViewFull.yhtm?mode=radio&amp;typ=live">Radio</a></td>
<td align="right"><a title="LiveRadio (popup)" href="javascript:go_live_popup_radio()"><img src="/images/popup.png"/></a></td>
</tr></table>
</li>
<li><a target="work" title="use LiveView with 2 boxes" href="Y_Live_DoubleView.yhtm">DoubleView</a></li>
</ul>
</div>
<div class="y_menu_sec_section">Timer</div>
<div class="y_menu_sec">
<ul id="secmenu_timer">
<li><a target="work" title="organize timer" href="Y_Timer_List.yhtm">Timer</a></li>
<li><a target="work" title="View EPG" href="Y_Boxcontrol_Bouquets.yhtm">EPG</a></li>
<li>
<table class="y_invisible_table" cellspacing="0" cellpadding="0" style="width:100%; padding-right:15px;margin:0"><tr>
<td><a target="work" title="View EPG" href="Y_EPG_Plus.yhtm">EPG Plus</a></td>
<td align="right"><a title="EPG+ (popup)" href="javascript:epg_plus_popup()"><img src="/images/popup.png"/></a></td>
<td><a target="work" href="Y_LiveViewFull.yhtm?mode=radio&amp;typ=live">{=L:live.radio=}</a></td>
<td align="right"><a title="{=L:live.radio_popup_desc=}" href="javascript:go_live_popup_radio()"><img src="/images/popup.png"/></a></td>
</tr></table>
</li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" title="timer synchronisation with web tv-planer" href="Y_Tools_Timer_Sync.yhtm">Timer Sync</a></li>
<li><a target="work" title="use LiveView with 2 boxes" href="Y_Live_DoubleView.yhtm">{=L:live.double_view=}</a></li>
=}
</ul>
</div>
<div class="y_menu_sec_section">{=L:live.timer=}</div>
<div class="y_menu_sec">
<ul id="secmenu_timer">
<li><a target="work" href="Y_Timer_List.yhtm">{=L:live.timer=}</a></li>
<li><a target="work" href="Y_Boxcontrol_Bouquets.yhtm">{=L:live.epg=}</a></li>
<li>
<table class="y_invisible_table" cellspacing="0" cellpadding="0" style="width:100%; padding-right:15px;margin:0"><tr>
<td><a target="work" href="Y_EPG_Plus.yhtm">{=L:live.epg_plus=}</a></td>
<td align="right"><a title="{=L:live.epg_plus_popup_desc=}" href="javascript:epg_plus_popup()"><img src="/images/popup.png"/></a></td>
</tr></table>
</li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Tools_Timer_Sync.yhtm">{=L:live.timer_sync=}</a></li>
~=}
<!--<li><a target="work" title="recorder" href="Y_Blank.yhtm">Recorder</a></li>-->
</ul>

View File

@@ -76,93 +76,93 @@ function init()
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-Timer=}{=var-set:menu=Timer=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
{=var-set:help_url=Help-Live_Timer-Timer=}{=var-set:menu={=L:live.timer_edit.timer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form method="get" class="y_form" name="f" action="/fb/timer.dbox2">
<input type="hidden" name="action" value="{=typ=}"/>
<input name="id" type="hidden" value="{=timerId=}"/>
<table border="0" width="100%">
<tr><td colspan="2" class="y_form_header">Timer</td></tr>
<tr><td colspan="2" class="y_form_header">{=L:live.timer_edit.timer=}</td></tr>
<tr>
<td>Typ</td>
<td>{=L:live.timer_edit.type=}</td>
<td> <select name="type" onchange="onEventChange();">
{=timertype=}
</select>
</td>
</tr>
<tr><td colspan="2" class="y_form_header">Zeiten</td></tr>
<tr><td colspan="2" class="y_form_header">{=L:live.timer_edit.times=}</td></tr>
<tr>
<td>Alarm-Datum</td>
<td>{=L:live.timer_edit.alarm_date=}</td>
<td><input type="text" name="ad" value="{=alarm_mday=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="amo" value="{=alarm_mon=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="ay" value="{=alarm_year=}" size="4" maxlength="4"/>
&nbsp;Zeit&nbsp;<input type="text" name="ah" value="{=alarm_hour=}" size="2" maxlength="2"/>
&nbsp;{=L:live.timer_edit.time=}&nbsp;<input type="text" name="ah" value="{=alarm_hour=}" size="2" maxlength="2"/>
&nbsp;:&nbsp;<input type="text" name="ami" value="{=alarm_min=}" size="2" maxlength="2"/>
</td>
</tr>
<tr id="StopDateRow">
<td>Stop-Datum</td>
<td>{=L:live.timer_edit.stop_date=}</td>
<td><input type="text" name="sd" value="{=stop_mday=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="smo" value="{=stop_mon=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="sy" value="{=stop_year=}" size="4" maxlength="4"/>
&nbsp;Zeit&nbsp;<input type="text" name="sh" value="{=stop_hour=}" size="2" maxlength="2"/>
&nbsp;{=L:live.timer_edit.time=}&nbsp;<input type="text" name="sh" value="{=stop_hour=}" size="2" maxlength="2"/>
&nbsp;:&nbsp;<input type="text" name="smi" value="{=stop_min=}" size="2" maxlength="2"/>
</td>
</tr>
<tr>
<td>Wiederholung</td>
<td>{=L:live.timer_edit.repeat=}</td>
<td><select name="rep" onchange="onEventChange2();">
{=repeat=}
</select>
</td>
</tr>
<tr id="repcountRow" style="display:none;">
<td>Wiederholungen (0 = unbegrenzt)</td>
<td>{=L:live.timer_edit.repeat1=}</td>
<td><input type="text" name="repcount" id="repcount" value="{=timer_repeatCount=}" size="4" maxlength="3"/>
</td>
</tr>
<tr id="WeekdaysRow" style="display:none;">
<td>Wochentage</td>
<td><input type="text" name="wd" value="{=weekdays=}" size="7" maxlength="7"/> (Mo-So, X=Timer)
<td>{=L:live.timer_edit.weekdays=}</td>
<td><input type="text" name="wd" value="{=weekdays=}" size="7" maxlength="7"/> {=L:live.timer_edit.weekdays.format=}
</td>
</tr>
<tr id="ValuesRow" style="display:none"><td colspan="2" class="y_form_header">Werte</td></tr>
<tr id="ValuesRow" style="display:none"><td colspan="2" class="y_form_header">{=L:live.timer_edit.values=}</td></tr>
<tr id="ProgramRow" style="display:none">
<td>Programm</td>
<td>{=L:live.timer_edit.channel=}</td>
<td><select name="channel_id">
{=program_row=}
</select>
</td>
</tr>
<tr id="ApidRow" style="display:none">
<td>APIDs:</td>
<td><input type="checkbox" name="apcf" onchange="onApidDefChange();" {=if-equal:{=TIMERD_APIDS_CONF=}~y~checked="checked"=}/>Default
<input type="checkbox" name="apst" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_STD=}~y~checked="checked"=}/>Standard
<input type="checkbox" name="apal" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_ALT=}~y~checked="checked"=}/>Alternative
<input type="checkbox" name="apac" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_AC3=}~y~checked="checked"=}/>AC3
<td>{=L:live.timer_edit.apids=}:</td>
<td><input type="checkbox" name="apcf" onchange="onApidDefChange();" {=if-equal:{=TIMERD_APIDS_CONF=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.default=}
<input type="checkbox" name="apst" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_STD=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.standard=}
<input type="checkbox" name="apal" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_ALT=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.alt=}
<input type="checkbox" name="apac" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_AC3=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.ac3=}
</td>
</tr>
<tr id="StandbyRow" style="display:none">
<td>Standby</td>
<td><input type="radio" name="sbon" value="1" {=if-equal:{=standby=}~1~~checked="checked"=}/>An
<input type="radio" name="sbon" value="0" {=if-equal:{=standby=}~0~~checked="checked"=}/>Aus
<td>{=L:live.timer_edit.standby=}</td>
<td><input type="radio" name="sbon" value="1" {=if-equal:{=standby=}~1~~checked="checked"=}/>{=L:on=}
<input type="radio" name="sbon" value="0" {=if-equal:{=standby=}~0~~checked="checked"=}/>{=L:off=}
</td>
</tr>
<tr id="MessageRow" style="display:none">
<td>Nachricht</td>
<td>{=L:live.timer_edit.message=}</td>
<td><input type="text" name="msg" value="{=message=}" size="20" maxlength="30"/> ('/'=NL)
</td>
</tr>
<tr id="PluginNameRow" style="display:none">
<td>Plugin</td>
<td>{=L:live.timer_edit.plugin=}</td>
<td><input type="text" name="PluginName" value="{=pluginname=}" size="20" maxlength="30"/>
</td>
</tr>
<tr id="RecDirRow" style="display:none">
<td>Aufnahmeverzeichnis:</td>
<td>{=L:live.timer_edit.rec_dir=}:</td>
<td>
<select name="rec_dir" id="rec_dir" class="y_live_button">
<option value="{=ini-get:/var/tuxbox/config/neutrino.conf;recording_dir_0;/mnt/filme~open=}" selected="selected">{=ini-get:/var/tuxbox/config/neutrino.conf;recording_dir_0;/mnt/filme~cache=}</option>
@@ -182,8 +182,8 @@ function init()
<br/>
<!-- <input type="button" value="speichern" title="submit and save values" onclick="do_submit()"/>-->
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">speichern</button>
<button type="button" ytype="cancel" title="cancel" onclick='window.document.location.href="/Y_Timer_List.yhtm"'>abbrechen</button>
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">{=L:save=}</button>
<button type="button" ytype="cancel" title="cancel" onclick='window.document.location.href="/Y_Timer_List.yhtm"'>{=L:cancel=}</button>
</form>
</div>
</div>

View File

@@ -4,16 +4,16 @@
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-Timer=}{=var-set:menu=Timer=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
{=var-set:help_url=Help-Live_Timer-Timer=}{=var-set:menu={=L:live.timer_edit.timer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table class="timer">
<tr class="timer_header">
<td>Alarm-Zeit</td>
<td>Stop-Zeit</td>
<td>Wiederholung</td>
<td>Wiederholungen</td>
<td>Typ</td>
<td>Beschreibung</td>
<td>{=L:live.timer_edit.alarm_date=}</td>
<td>{=L:live.timer_edit.stop_date=}</td>
<td>{=L:live.timer_edit.repeat=}</td>
<td>{=L:live.timer_edit.repeat=}</td>
<td>{=L:live.timer_edit.type=}</td>
<td>{=L:live.timer_edit.description=}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

View File

@@ -247,6 +247,19 @@ tools.path=Verzeichnis
tools.command=Kommando
tools.cmd.enter_command=Auszuführendes Kommando eingeben
tools.cmd.execute_command=Kommando ausführen
=========== LIVE Menue
live.heading=Live/Timer
live.live=Live
live.tv_popup_desc=LiveTV (popup)
live.tv=TV
live.radio_popup_desc=LiveRadio (popup)
live.radio=Radio
live.double_view=DoubleView
live.timer=Time
live.epg=EPG
live.epg_plus_popup_desc=EPG+ (popup)
live.epg_plus=EPG Plus
live.timer_sync=Timer Sync
=========== LIVE
live.get_stream_info=Streaming-Informationen<br/>werden ermittelt.
live.getting_bouquets=Hole Bouquets ...
@@ -271,7 +284,28 @@ live.transcode=Transkodiermodus
live.build_vlc=... erstelle Live ...
live.select_bouquet=Bouquet auswählen - Sender werden aktualisiert
live.select_channel=Sender wechseln - nutze zap
=========== LIVE Timer Edit
live.timer_edit.timer=Timer
live.timer_edit.times=Zeiten
live.timer_edit.alarm_date=Alarm-Datum
live.timer_edit.time=Zeit
live.timer_edit.stop_date=Stop-Datum
live.timer_edit.repeat=Wiederholung
live.timer_edit.repeat1=Wiederholungen (0 = unbegrenzt)
live.timer_edit.weekdays.format=(Mo-So, X=Timer)
live.timer_edit.weekdays=Wochentage
live.timer_edit.values=Werte
live.timer_edit.channel=Programm
live.timer_edit.apids=APIDs
live.timer_edit.apids.default=Default
live.timer_edit.apids.standard=Standard
live.timer_edit.apids.alt=Alternative
live.timer_edit.apids.ac3=AC3
live.timer_edit.apids=APids
live.timer_edit.standby=Standby
live.timer_edit.plugin=Plugin
live.timer_edit.rec_dir=Aufnahmeverzeichnis
live.timer_edit.description=Beschreibung
=========== GENERAL
clear=löschen
submit=Ausführen

View File

@@ -249,7 +249,20 @@ tools.path=Path
tools.command=Command
tools.cmd.enter_command=enter command to execute
tools.cmd.execute_command=execute shell command
=========== LIVE
=========== LIVE Menue
live.heading=Live/Timer
live.live=Live
live.tv_popup_desc=LiveTV (popup)
live.tv=TV
live.radio_popup_desc=LiveRadio (popup)
live.radio=Radio
live.double_view=DoubleView
live.timer=Timer
live.epg=EPG
live.epg_plus_popup_desc=EPG+ (popup)
live.epg_plus=EPG Plus
live.timer_sync=Timer Sync
=========== LIVE tv/radio
live.get_stream_info=Getting <br/>Streaming-Informationen.
live.getting_bouquets=getting bouquets ...
live.getting_channels=getting channels ...
@@ -273,6 +286,28 @@ live.transcode=transcode mode
live.build_vlc=... build vlc control ...
live.select_bouquet=select bouquet - channels will be updated
live.select_channel=select channel - use go to zap
=========== LIVE Timer Edit
live.timer_edit.timer=Timer
live.timer_edit.times=Times
live.timer_edit.alarm_date=Alarm date
live.timer_edit.time=Time
live.timer_edit.stop_date=Stop date
live.timer_edit.repeat=Repeat
live.timer_edit.repeat1=Repeat (0 = unlimited)
live.timer_edit.weekdays.format=(Mo-Su, X=Timer)
live.timer_edit.weekdays=Weekdays
live.timer_edit.values=Values
live.timer_edit.channel=Channel
live.timer_edit.apids=APIDs
live.timer_edit.apids.default=Default
live.timer_edit.apids.standard=Standard
live.timer_edit.apids.alt=Alternative
live.timer_edit.apids.ac3=AC3
live.timer_edit.apids=APids
live.timer_edit.standby=Standby
live.timer_edit.plugin=Plugin
live.timer_edit.rec_dir=Recordind directory
live.timer_edit.description=Description
=========== GENERAL
clear=clear
submit=Submit