diff options
Diffstat (limited to 'template/default')
33 files changed, 1793 insertions, 1681 deletions
diff --git a/template/default/about.html b/template/default/about.html index 52030cd..7cb6dcd 100644 --- a/template/default/about.html +++ b/template/default/about.html @@ -2,88 +2,106 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! About !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('About') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="about" onload="window.focus()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Authors !%></h2></td> + <td colspan="2"><h2><?% gettext('Authors') %?></h2></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Current author (VDRAdmin-AM branch): !%></h5></td> + <td class="col_label"><h5><?% gettext('Current author (VDRAdmin-AM branch):') %?></h5></td> <td class="col_value"><a href="mailto:mail@andreas.vdr-developer.org">Andreas Mair</a> (<a href="http://andreas.vdr-developer.org" target="_blank">Homepage</a>)</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Original author (VDRAdmin): !%></h5></td> + <td class="col_label"><h5><?% gettext('Original author (VDRAdmin):') %?></h5></td> <td class="col_value">Thomas Koch (<a href="http://www.linvdr.org" target="_blank">Homepage</a>)</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Translation Team !%></h2></td> + <td colspan="2"><h2><?% gettext('Translation Team') %?></h2></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Dutch: !%></h5></td> + <td class="col_label"><h5><?% gettext('Dutch:') %?></h5></td> <td class="col_value">Roel Koelewijn</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! English: !%></h5></td> + <td class="col_label"><h5><?% gettext('English:') %?></h5></td> <td class="col_value">Andreas Mair</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Finnish: !%></h5></td> + <td class="col_label"><h5><?% gettext('Finnish:') %?></h5></td> <td class="col_value">Rolf Ahrenberg</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! French: !%></h5></td> - <td class="col_value"><!-- <%! At the moment unmaintained, former translations by: !%> -->Trois Six (also at vdrportal.de), map, lobotomise, bads, Mickaël Nival</td> + <td class="col_label"><h5><?% gettext('French:') %?></h5></td> + <td class="col_value"><!-- <?% gettext('At the moment unmaintained, former translations by:') %?> -->Trois Six (also at vdrportal.de), map, lobotomise, bads, Mickaël Nival</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! German: !%></h5></td> + <td class="col_label"><h5><?% gettext('German:') %?></h5></td> <td class="col_value">Andreas Mair</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Spanish: !%></h5></td> + <td class="col_label"><h5><?% gettext('Spanish:') %?></h5></td> <td class="col_value">Rüdiger Jung</td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Russian: !%></h5></td> + <td class="col_label"><h5><?% gettext('Russian:') %?></h5></td> <td class="col_value">Oleg Roitburd and Allrussian-forum translation team</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Informations !%></h2></td> + <td colspan="2"><h2><?% gettext('Informations') %?></h2></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! VDRAdmin-AM version: !%></h5></td> - <td class="col_value"><tmpl_var myversion></td> + <td class="col_label"><h5><?% gettext('VDRAdmin-AM version:') %?></h5></td> + <td class="col_value"><?% myversion %?></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! VDR version: !%></h5></td> - <td class="col_value"><tmpl_var vdrversion></td> + <td class="col_label"><h5><?% gettext('VDR version:') %?></h5></td> + <td class="col_value"><?% vdrversion %?></td> + </tr> + <tr class="row_even"> + <td class="col_label" valign="top"><h5><?% gettext('Supported features in VDR:') %?></h5></td> + <td class="col_value"> + <?% IF features.STREAMDEV %?> + <img src="bilder/poempl_gruen.png" alt="" align="middle" border="0"/> + <?% ELSE %?> + <img src="bilder/poempl_rot.png" alt="" align="middle" border="0"/> + <?% END %?> + <?% gettext('LiveTV Streaming (<a href="http://www.vdr-wiki.de/wiki/index.php/Streamdev-plugin" target="_blank">Streamdev Plugin</a>)') %?><br /> + <?% IF features.REC_RENAME %?> + <img src="bilder/poempl_gruen.png" alt="" align="middle" border="0"/> + <?% ELSE %?> + <img src="bilder/poempl_rot.png" alt="" align="middle" border="0"/> + <?% END %?> + <?% gettext('Rename Recordings (<a href="http://www.saunalahti.fi/~rahrenbe/vdr/patches/" target="_blank">Liemikuutio Patch</a>)') %?><br /> + </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! Getting Help and Reporting Bugs !%></h2></td> + <td><h2><?% gettext('Getting Help and Reporting Bugs') %?></h2></td> </tr> <tr class="row_even"> <td> <ul> - <li><%! If you need help please first try to use the online help you'll find on some pages. You can access it by clicking <img src="bilder/help.png" alt="" />. !%></li> - <li><%! If this doesn't provide the information you need you can try to get help at <a href="http://www.vdrportal.de" target="_blank">VDR-Portal</a> if you understand German language. Please use the announcement thread if possible, search for: !%> "[ANNOUNCE] VDRAdmin-AM-<tmpl_var myversion>"</li> - <li><%! If you think you have found a bug please check that it's a new one and report it in the <a href="http://www.vdr-developer.org/mantisbt/main_page.php" target="_blank">VDRAdmin-AM BugTracking system</a>. !%></li> + <li><?% gettext('If you need help please first try to use the online help you\'ll find on some pages. You can access it by clicking <img src="bilder/help.png" alt="" />.') %?></li> + <li><?% gettext('If this doesn\'t provide the information you need you can try to get help at <a href="http://www.vdrportal.de" target="_blank">VDR-Portal</a> if you understand German language. Please use the announcement thread if possible, search for:') %?> "[ANNOUNCE] VDRAdmin-AM-<?% myversion %?>"</li> + <li><?% gettext('If you think you have found a bug please check that it\'s a new one and report it in the <a href="http://www.vdr-developer.org/mantisbt/main_page.php" target="_blank">VDRAdmin-AM BugTracking system</a>.') %?></li> + </ul> </td> </tr> </table> diff --git a/template/default/at_timer_list.html b/template/default/at_timer_list.html index 97ade6b..aa67c40 100644 --- a/template/default/at_timer_list.html +++ b/template/default/at_timer_list.html @@ -2,12 +2,12 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>"/> - <title>VDRAdmin-AM - <%! AutoTimer !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>"/> + <title>VDRAdmin-AM - <?% gettext('AutoTimer') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css"/> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css"/> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <?% IF config.AT_TOOLTIP %?> <script type="text/javascript" language="JavaScript1.2" src="infobox.js"></script> @@ -21,158 +21,163 @@ <?% FOREACH timer = at_timer_loop2; %?> - maketip("VDR-<?% timer.id %?>", "<?% timer.pattern %?>", "<%! Priority: !%> <?% timer.prio %?><br /><%! Lifetime: !%> <?% timer.lft %?>"); + maketip("VDR-<?% timer.id %?>", "<?% timer.pattern %?>", "<?% gettext('Priority:') %?> <?% timer.prio %?><br /><?% gettext('Lifetime:') %?> <?% timer.lft %?>"); <?% END %?> </script> <?% END %?> - <form action="<tmpl_var url>" method="get" name="FormName0"> + <form action="<?% url %?>" method="get" name="FormName0"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><%! AutoTimer !%></h1> + <h1><?% gettext('AutoTimer') %?></h1> </td> <td class="col_other"> - <input type="submit" class="submit" name="new_at" value="<%! New AutoTimer !%>" /> + <input type="submit" class="submit" name="new_at" value="<?% gettext('New AutoTimer') %?>" /> <input type="hidden" name="aktion" value="at_timer_new" /> </td> -<tmpl_if name="help_url"> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>"/></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>"/></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> </form> - <form action="<tmpl_var url>" method="get" name="FormName"> - <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="list hilight"> - <tr class="heading"> - <td class="col_active <tmpl_if sortbyactive>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbyactiveurl>"><%! Active !%> - <tmpl_if sortbyactive> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0"/> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_channel <tmpl_if sortbychannel>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbychannelurl>"><%! Channel !%> - <tmpl_if sortbychannel> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0"/> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_start <tmpl_if sortbystart>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbystarturl>"><%! Start !%> - <tmpl_if sortbystart> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0"/> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_stop <tmpl_if sortbystop>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbystopurl>"><%! Stop !%> - <tmpl_if sortbystop> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0"/> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_name <tmpl_if sortbypattern>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbypatternurl>"><%! Name !%> - <tmpl_if sortbypattern> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0"/> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_edit"></td> - <td class="col_delete"></td> - <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<%! Select all/none !%>"/></td> - </tr> + <div id="content"> +<?% IF at_timer_loop.size() > 0 %?> + <form action="<?% url %?>" method="get" name="FormName"> + <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> + <tr class="heading"> + <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbyactiveurl %?>"><?% gettext('Active') %?> + <?% IF sortbyactive %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> + <?% END %?> + </a> + </h2> + </td> + <td class="col_channel <?% IF sortbychannel %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbychannelurl %?>"><?% gettext('Channel') %?> + <?% IF sortbychannel %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> + <?% END %?> + </a> + </h2> + </td> + <td class="col_start <?% IF sortbystart %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbystarturl %?>"><?% gettext('Start') %?> + <?% IF sortbystart %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> + <?% END %?> + </a> + </h2> + </td> + <td class="col_stop <?% IF sortbystop %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbystopurl %?>"><?% gettext('Stop') %?> + <?% IF sortbystop %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> + <?% END %?> + </a> + </h2> + </td> + <td class="col_name <?% IF sortbypattern %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbypatternurl %?>"><?% gettext('Name') %?> + <?% IF sortbypattern %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/> + <?% END %?> + </a> + </h2> + </td> + <td class="col_edit"></td> + <td class="col_delete"></td> + <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<?% gettext('Select all/none') %?>"/></td> + </tr> -<tmpl_loop at_timer_loop> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td class="col_active <tmpl_if sortbyactive>selected</tmpl_if>"> - <div> - <tmpl_if active> - <a href="<tmpl_var toggleurl>"><img src="bilder/poempl_gruen.png" alt="" align="middle" border="0"/> <%! Yes !%></a> - <tmpl_else> - <a href="<tmpl_var toggleurl>"><img src="bilder/poempl_grau.png" alt="" align="middle" border="0"/> <%! No !%></a> - </tmpl_if> - </div> - </td> - <td class="col_channel <tmpl_if sortbychannel>selected</tmpl_if>"> - <div> - <tmpl_if channel><a href="<tmpl_var proglink>"><tmpl_var channel></a><tmpl_else>-</tmpl_if> - </div> - </td> - <td class="col_start <tmpl_if sortbystart>selected</tmpl_if>"> - <div> - <tmpl_if start><tmpl_var start><tmpl_else>-</tmpl_if> - </div> - </td> - <td class="col_stop <tmpl_if sortbystop>selected</tmpl_if>"> - <div> - <tmpl_if stop><tmpl_var stop><tmpl_else>-</tmpl_if> - </div> - </td> - <td class="col_name <tmpl_if sortbypattern>selected</tmpl_if>" <?% IF config.AT_TOOLTIP %?>onMouseOver="tip('VDR-<tmpl_var id>'); return true;" onMouseOut="untip(); return true;"<?% END %?>> - <div> - <a href="<tmpl_var modurl>" title="<%! Edit !%>"><tmpl_var pattern></a> - </div> - </td> - <td class="col_edit"> - <div> - <a href="<tmpl_var modurl>"><img src="bilder/edit.png" alt="edit" border="0" title="<%! Edit !%>"/></a> - </div> - </td> - <td class="col_delete"> - <div> - <a href="javascript:del('<%! Delete timer? !%>\n\n"<tmpl_var pattern_js>"', '<tmpl_var delurl>');"><img src="bilder/delete.png" alt="delete" border="0" title="<%! Delete !%>"/></a> - </div> - </td> - <td class="col_checkbox"> - <div> - <input type="checkbox" name="xxxx_<tmpl_var id>"/> - </div> - </td> - </tr> -</tmpl_loop> - </table> + <?% FOREACH at = at_timer_loop %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td class="col_active <?% IF at.sortbyactive %?>selected<?% END %?>"> + <div> + <?% IF at.active %?> + <a href="<?% at.toggleurl %?>"><img src="bilder/poempl_gruen.png" alt="" align="middle" border="0"/> <?% gettext('Yes') %?></a> + <?% ELSE %?> + <a href="<?% at.toggleurl %?>"><img src="bilder/poempl_grau.png" alt="" align="middle" border="0"/> <?% gettext('No') %?></a> + <?% END %?> + </div> + </td> + <td class="col_channel <?% IF at.sortbychannel %?>selected<?% END %?>"> + <div> + <?% IF at.channel %?><a href="<?% at.proglink %?>"><?% at.channel %?></a><?% ELSE %?>-<?% END %?> + </div> + </td> + <td class="col_start <?% IF at.sortbystart %?>selected<?% END %?>"> + <div> + <?% IF at.start %?><?% at.start %?><?% ELSE %?>-<?% END %?> + </div> + </td> + <td class="col_stop <?% IF at.sortbystop %?>selected<?% END %?>"> + <div> + <?% IF at.stop %?><?% at.stop %?><?% ELSE %?>-<?% END %?> + </div> + </td> + <td class="col_name <?% IF at.sortbypattern %?>selected<?% END %?>" <?% IF config.AT_TOOLTIP %?>onMouseOver="tip('VDR-<?% at.id %?>'); return true;" onMouseOut="untip(); return true;"<?% END %?>> + <div> + <a href="<?% at.modurl %?>" title="<?% gettext('Edit') %?>"><?% at.pattern %?></a> + </div> + </td> + <td class="col_edit"> + <div> + <a href="<?% at.modurl %?>"><img src="bilder/edit.png" alt="edit" border="0" title="<?% gettext('Edit') %?>"/></a> + </div> + </td> + <td class="col_delete"> + <div> + <a href="javascript:del('<?% gettext('Delete timer?') %?>\n\n"<?% at.pattern_js %?>"', '<?% at.delurl %?>');"><img src="bilder/delete.png" alt="delete" border="0" title="<?% gettext('Delete') %?>"/></a> + </div> + </td> + <td class="col_checkbox"> + <div> + <input type="checkbox" name="xxxx_<?% at.id %?>"/> + </div> + </td> + </tr> + <?% END %?> + </table> - <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons"> - <tr> - <td align="left"> - <input type="submit" class="submit" name="at_force" value="<%! Force Update !%>" /> - </td> - <td align="right"> - <input type="submit" class="submit" name="at_delete" value="<%! Delete Selected AutoTimers !%>" onclick="return mdel_old('<%! Delete all selected timers? !%>');" /> - </td> - </tr> - </table> - <input type="hidden" name="aktion" value="at_timer_aktion"/> - <input type="hidden" name="sortby" value="<tmpl_var sortby>"/> - </form> + <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons"> + <tr> + <td align="left"> + <input type="submit" class="submit" name="at_force" value="<?% gettext('Force Update') %?>" /> + </td> + <td align="right"> + <input type="submit" class="submit" name="at_delete" value="<?% gettext('Delete Selected AutoTimers') %?>" onclick="return mdel_old('<?% gettext('Delete all selected timers?') %?>');" /> + </td> + </tr> + </table> + <input type="hidden" name="aktion" value="at_timer_aktion"/> + </form> +<?% ELSE %?> + <div class="warning"><?% gettext('No AutoTimers defined!') %?></div> +<?% END %?> + </div> </body> </html> diff --git a/template/default/at_timer_new.html b/template/default/at_timer_new.html index 08339cd..d30c3d5 100644 --- a/template/default/at_timer_new.html +++ b/template/default/at_timer_new.html @@ -2,186 +2,186 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>"/> - <title>VDRAdmin-AM - <tmpl_if newtimer><%! Add New AutoTimer !%><tmpl_else><%! Edit AutoTimer !%></tmpl_if></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>"/> + <title>VDRAdmin-AM - <?% IF newtimer %?><?% gettext('Add New AutoTimer') %?><?% ELSE %?><?% gettext('Edit AutoTimer') %?><?% END %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css"/> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css"/> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <body id="at_timer_new"> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><tmpl_if newtimer><%! Add New AutoTimer !%><tmpl_else><%! Edit AutoTimer !%></tmpl_if></h1> + <h1><?% IF newtimer %?><?% gettext('Add New AutoTimer') %?><?% ELSE %?><?% gettext('Edit AutoTimer') %?><?% END %?></h1> </td> -<tmpl_if name="help_url"> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>"/></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>"/></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> <div id="content"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="row_even"> - <td class="col_label"><h5><%! AutoTimer Active: !%></h5></td> + <td class="col_label"><h5><?% gettext('AutoTimer Active:') %?></h5></td> <td class="col_value"> <?% IF active == 2 %?> - <input type="radio" name="active" value="1" id="active_yes" /><label for="active_yes"><%! Yes !%></label> - <input type="radio" name="active" value="0" id="active_no" /><label for="active_no"><%! No !%></label> - <input type="radio" name="active" value="2" id="active_oneshot" checked /><label for="active_oneshot"><%! oneshot !%></label> + <input type="radio" name="active" value="1" id="active_yes" /><label for="active_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="active" value="0" id="active_no" /><label for="active_no"><?% gettext('No') %?></label> + <input type="radio" name="active" value="2" id="active_oneshot" checked="checked" /><label for="active_oneshot"><?% gettext('oneshot') %?></label> <?% ELSE %?> - <input type="radio" name="active" value="1" id="active_yes" <tmpl_if active>checked</tmpl_if> /><label for="active_yes"><%! Yes !%></label> - <input type="radio" name="active" value="0" id="active_no" <tmpl_unless active>checked</tmpl_unless> /><label for="active_no"><%! No !%></label> - <input type="radio" name="active" value="2" id="active_oneshot" /><label for="active_oneshot"><%! oneshot !%></label> + <input type="radio" name="active" value="1" id="active_yes" <?% IF active %?>checked="checked"<?% END %?> /><label for="active_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="active" value="0" id="active_no" <?% UNLESS active %?>checked="checked"<?% END %?> /><label for="active_no"><?% gettext('No') %?></label> + <input type="radio" name="active" value="2" id="active_oneshot" /><label for="active_oneshot"><?% gettext('oneshot') %?></label> <?% END %?> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Search Patterns: !%></h5></td> + <td class="col_label"><h5><?% gettext('Search Patterns:') %?></h5></td> <td class="col_value"> - <input type="text" name="pattern" value="<tmpl_var pattern>" size="40" /> + <input type="text" name="pattern" value="<?% pattern %?>" size="40" /> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Search in: !%></h5></td> + <td class="col_label"><h5><?% gettext('Search in:') %?></h5></td> <td class="col_value"> - <input type="checkbox" name="title" value="1" id="searchin_title" <tmpl_if title>checked</tmpl_if> /><label for="searchin_title"><%! Title !%></label> - <input type="checkbox" name="subtitle" value="1" id="searchin_subtitle" <tmpl_if subtitle>checked</tmpl_if> /><label for="searchin_subtitle"><%! Subtitle !%></label> - <input type="checkbox" name="description" value="1" id="searchin_description" <tmpl_if description>checked</tmpl_if> /><label for="searchin_description"><%! Description !%></label> + <input type="checkbox" name="title" value="1" id="searchin_title" <?% IF title %?>checked="checked"<?% END %?> /><label for="searchin_title"><?% gettext('Title') %?></label> + <input type="checkbox" name="subtitle" value="1" id="searchin_subtitle" <?% IF subtitle %?>checked="checked"<?% END %?> /><label for="searchin_subtitle"><?% gettext('Subtitle') %?></label> + <input type="checkbox" name="description" value="1" id="searchin_description" <?% IF description %?>checked="checked"<?% END %?> /><label for="searchin_description"><?% gettext('Description') %?></label> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Search only on these days: !%></h5></td> + <td class="col_label"><h5><?% gettext('Search only on these days:') %?></h5></td> <td class="col_value"> - <input type="checkbox" name="wday_mon" value="1" id="wday_mon" <tmpl_if wday_mon>checked</tmpl_if> /><label for="wday_mon"><%! Monday !%></label> - <input type="checkbox" name="wday_tue" value="1" id="wday_tue" <tmpl_if wday_tue>checked</tmpl_if> /><label for="wday_tue"><%! Tuesday !%></label> - <input type="checkbox" name="wday_wed" value="1" id="wday_wed" <tmpl_if wday_wed>checked</tmpl_if> /><label for="wday_wed"><%! Wednesday !%></label> - <input type="checkbox" name="wday_thu" value="1" id="wday_thu" <tmpl_if wday_thu>checked</tmpl_if> /><label for="wday_thu"><%! Thursday !%></label> - <input type="checkbox" name="wday_fri" value="1" id="wday_fri" <tmpl_if wday_fri>checked</tmpl_if> /><label for="wday_fri"><%! Friday !%></label> - <input type="checkbox" name="wday_sat" value="1" id="wday_sat" <tmpl_if wday_sat>checked</tmpl_if> /><label for="wday_sat"><%! Saturday !%></label> - <input type="checkbox" name="wday_sun" value="1" id="wday_sun" <tmpl_if wday_sun>checked</tmpl_if> /><label for="wday_sun"><%! Sunday !%></label> + <input type="checkbox" name="wday_mon" value="1" id="wday_mon" <?% IF wday_mon %?>checked="checked"<?% END %?> /><label for="wday_mon"><?% gettext('Monday') %?></label> + <input type="checkbox" name="wday_tue" value="1" id="wday_tue" <?% IF wday_tue %?>checked="checked"<?% END %?> /><label for="wday_tue"><?% gettext('Tuesday') %?></label> + <input type="checkbox" name="wday_wed" value="1" id="wday_wed" <?% IF wday_wed %?>checked="checked"<?% END %?> /><label for="wday_wed"><?% gettext('Wednesday') %?></label> + <input type="checkbox" name="wday_thu" value="1" id="wday_thu" <?% IF wday_thu %?>checked="checked"<?% END %?> /><label for="wday_thu"><?% gettext('Thursday') %?></label> + <input type="checkbox" name="wday_fri" value="1" id="wday_fri" <?% IF wday_fri %?>checked="checked"<?% END %?> /><label for="wday_fri"><?% gettext('Friday') %?></label> + <input type="checkbox" name="wday_sat" value="1" id="wday_sat" <?% IF wday_sat %?>checked="checked"<?% END %?> /><label for="wday_sat"><?% gettext('Saturday') %?></label> + <input type="checkbox" name="wday_sun" value="1" id="wday_sun" <?% IF wday_sun %?>checked="checked"<?% END %?> /><label for="wday_sun"><?% gettext('Sunday') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Channel: !%></h5></td> + <td class="col_label"><h5><?% gettext('Channel:') %?></h5></td> <td class="col_value"> <select class="submit" name="channel"> - <option value="0"><%! all !%></option> -<tmpl_loop channels> - <option value="<tmpl_var vdr_id>" <tmpl_if cur> selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> + <option value="0"><?% gettext('all') %?></option> +<?% FOREACH chan = channels %?> + <option value="<?% chan.vdr_id %?>" <?% IF chan.cur %?>selected="selected"<?% END %?>><?% chan.name | html %?></option> +<?% END %?> </select> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Starts After: !%></h5></td> + <td class="col_label"><h5><?% gettext('Starts After:') %?></h5></td> <td class="col_value"> - <input type="text" name="starth" value="<tmpl_var starth>" size="2" maxlength="2" /> + <input type="text" name="starth" value="<?% starth %?>" size="2" maxlength="2" /> <b> : </b> - <input type="text" name="startm" value="<tmpl_var startm>" size="2" maxlength="2" /> - <%! o'clock !%> + <input type="text" name="startm" value="<?% startm %?>" size="2" maxlength="2" /> + <?% gettext('o\'clock') %?> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Ends Before: !%></h5></td> + <td class="col_label"><h5><?% gettext('Ends Before:') %?></h5></td> <td class="col_value"> - <input type="text" name="stoph" value="<tmpl_var stoph>" size="2" maxlength="2" /> + <input type="text" name="stoph" value="<?% stoph %?>" size="2" maxlength="2" /> <b> : </b> - <input type="text" name="stopm" value="<tmpl_var stopm>" size="2" maxlength="2" /> - <%! o'clock !%> + <input type="text" name="stopm" value="<?% stopm %?>" size="2" maxlength="2" /> + <?% gettext('o\'clock') %?> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Override Start/Stop Margins: !%></h5></td> + <td class="col_label"><h5><?% gettext('Override Start/Stop Margins:') %?></h5></td> <td class="col_value"> - <input type="radio" name="buffers" value="1" id="buffers_yes" <tmpl_if buffers>checked</tmpl_if> /><label for="buffers_yes"><%! Yes !%></label> - <input type="radio" name="buffers" value="0" id="buffers_no" <tmpl_unless buffers>checked</tmpl_unless> /><label for="buffers_no"><%! No !%></label> + <input type="radio" name="buffers" value="1" id="buffers_yes" <?% IF buffers %?>checked="checked"<?% END %?> /><label for="buffers_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="buffers" value="0" id="buffers_no" <?% UNLESS buffers %?>checked="checked"<?% END %?> /><label for="buffers_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Time Margin at Start: !%></h5></td> + <td class="col_label"><h5><?% gettext('Time Margin at Start:') %?></h5></td> <td class="col_value"> - <input type="text" name="bstart" value="<tmpl_var bstart>" size="2" maxlength="2" /> <%! minutes !%> + <input type="text" name="bstart" value="<?% bstart %?>" size="2" maxlength="2" /> <?% gettext('minutes') %?> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Time Margin at Stop: !%></h5></td> + <td class="col_label"><h5><?% gettext('Time Margin at Stop:') %?></h5></td> <td class="col_value"> - <input type="text" name="bstop" value="<tmpl_var bstop>" size="2" maxlength="2" /> <%! minutes !%> + <input type="text" name="bstop" value="<?% bstop %?>" size="2" maxlength="2" /> <?% gettext('minutes') %?> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Priority: !%></h5></td> + <td class="col_label"><h5><?% gettext('Priority:') %?></h5></td> <td class="col_value"> - <input type="text" name="prio" value="<tmpl_var prio>" size="2" maxlength="2" /> + <input type="text" name="prio" value="<?% prio %?>" size="2" maxlength="2" /> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Lifetime: !%></h5></td> + <td class="col_label"><h5><?% gettext('Lifetime:') %?></h5></td> <td class="col_value"> - <input type="text" name="lft" value="<tmpl_var lft>" size="2" maxlength="2" /> + <input type="text" name="lft" value="<?% lft %?>" size="2" maxlength="2" /> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><label for="episode"><%! Episode: !%></label></h5></td> + <td class="col_label"><h5><label for="episode"><?% gettext('Episode:') %?></label></h5></td> <td class="col_value"> - <input type="checkbox" name="episode" value="1" id="episode" <tmpl_if episode>checked</tmpl_if> /> + <input type="checkbox" name="episode" value="1" id="episode" <?% IF episode %?>checked="checked"<?% END %?> /> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Remember programmed timers: !%></h5></td> + <td class="col_label"><h5><?% gettext('Remember programmed timers:') %?></h5></td> <td class="col_value"> - <input type="radio" name="done" value="1" id="rem_yes" <tmpl_if done>checked</tmpl_if> /><label for="rem_yes"><%! Yes !%></label> - <input type="radio" name="done" value="0" id="rem_no" <tmpl_unless done>checked</tmpl_unless> /><label for="rem_no"><%! No !%></label> + <input type="radio" name="done" value="1" id="rem_yes" <?% IF done %?>checked="checked"<?% END %?> /><label for="rem_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="done" value="0" id="rem_no" <?% UNLESS done %?>checked="checked"<?% END %?> /><label for="rem_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Directory: !%></h5></td> + <td class="col_label"><h5><?% gettext('Directory:') %?></h5></td> <td class="col_value"> - <input type="text" name="directory" value="<tmpl_var directory>" size="40" /> + <input type="text" name="directory" value="<?% directory %?>" size="40" /> </td> </tr> </table> </div> <div id="buttons"> - <input type="submit" class="submit" name="save" value="<%! Save !%>" /> - <input type="submit" class="submit" name="test" value="<%! Test !%>" /> - <input type="submit" class="submit" name="exit" value="<%! Cancel !%>" /> + <input type="submit" class="submit" name="save" value="<?% gettext('Save') %?>" /> + <input type="submit" class="submit" name="test" value="<?% gettext('Test') %?>" /> + <input type="submit" class="submit" name="exit" value="<?% gettext('Cancel') %?>" /> </div> <input type="hidden" name="aktion" value="at_timer_aktion" /> - <input type="hidden" name="id" value="<tmpl_var id>" /> + <input type="hidden" name="id" value="<?% id %?>" /> </form> -<tmpl_if at_test> +<?% IF at_test %?> <br /> - <tmpl_if matches> + <?% IF matches %?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list"> <tr class="heading"> - <td><h2><%! Title !%></h2></td> - <td><h2><%! Subtitle !%></h2></td> - <td><h2><%! Broadcasted !%></h2></td> - <td><h2><%! Stored in !%></h2></td> + <td><h2><?% gettext('Title') %?></h2></td> + <td><h2><?% gettext('Subtitle') %?></h2></td> + <td><h2><?% gettext('Broadcasted') %?></h2></td> + <td><h2><?% gettext('Stored in') %?></h2></td> </tr> - <tmpl_loop matches> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td><tmpl_var otitle></td> - <td><tmpl_var subtitle></td> - <td><tmpl_var date>, <tmpl_var start> - <tmpl_var stop> (<tmpl_var channel>)</td> - <td><tmpl_var title></td> + <?% FOREACH match = matches %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td><?% match.otitle %?></td> + <td><?% match.subtitle %?></td> + <td><?% match.date %?>, <?% match.start %?> - <?% match.stop %?> (<?% match.channel %?>)</td> + <td><?% match.title %?></td> </tr> - </tmpl_loop> + <?% END %?> </table> - <tmpl_else> - <div class="warning"><%! No matches found! !%></div> - </tmpl_if> -</tmpl_if> + <?% ELSE %?> + <div class="warning"><?% gettext('No matches found!') %?></div> + <?% END %?> +<?% END %?> </body> </html> diff --git a/template/default/config.html b/template/default/config.html index d097577..03f47db 100644 --- a/template/default/config.html +++ b/template/default/config.html @@ -1,12 +1,12 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Configuration !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Configuration') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <script type="text/javascript" language="JavaScript"> <!-- @@ -20,399 +20,416 @@ </head> <body id="config"> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <input type="hidden" name="new_tab" value="<?% active_tab %?>"/> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><%! Configuration !%></h1> + <h1><?% gettext('Configuration') %?></h1> </td> -<tmpl_if name="help_url"> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>" /></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>" /></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! General Settings !%></h2></td> + <td colspan="2"><h2><?% gettext('General Settings') %?></h2></td> </tr> -<!-- Only one template, so no need to chose - <tr class="row_odd"> - <td class="col_label"><h5><%! Template: !%></h5></td> +<?% tr_class = "row_odd" %?> +<?% IF TEMPLATELIST.size() > 1 %?> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Template:') %?></h5></td> <td class="col_value"> <select class="submit" name="TEMPLATE"> -<tmpl_loop name="TEMPLATELIST"> - <option value="<tmpl_var name>" <tmpl_if aktemplate> selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> +<?% FOREACH template = TEMPLATELIST %?> + <option value="<?% template.name %?>" <?% IF template.aktemplate %?>selected="selected"<?% END %?>><?% template.name %?></option> +<?% END %?> </select> </td> </tr> ---> - <tr class="row_odd"> - <td class="col_label"><h5><%! Skin: !%></h5></td> +<?% END %?> +<?% IF SKINLIST.size() > 1 %?> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Skin:') %?></h5></td> <td class="col_value"> <select class="submit" name="SKIN"> -<tmpl_loop name="SKINLIST"> - <option value="<tmpl_var name>" <tmpl_if sel> selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> +<?% FOREACH skin = SKINLIST %?> + <option value="<?% skin.name %?>" <?% IF skin.sel %?>selected="selected"<?% END %?>><?% skin.name %?></option> +<?% END %?> </select> </td> </tr> - <tr class="row_even"> - <td class="col_label"><h5><%! Login Page: !%></h5></td> +<?% END %?> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Login Page:') %?></h5></td> <td class="col_value"> <select class="submit" name="LOGINPAGE"> -<tmpl_loop name="LOGINPAGES"> - <option value="<tmpl_var id>" <tmpl_if current> selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> +<?% FOREACH loginpage = LOGINPAGES %?> + <option value="<?% loginpage.id %?>" <?% IF loginpage.current %?>selected="selected"<?% END %?>><?% loginpage.name %?></option> +<?% END %?> </select> </td> </tr> - <tr class="row_odd"> - <td class="col_label"><h5><%! Number of channels to use: !%></h5></td> - <td class="col_value"><input type="text" name="EPG_PRUNE" value="<tmpl_var EPG_PRUNE>" size="5" maxlength="25" /></td> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Number of channels to use:') %?></h5></td> + <td class="col_value"><input type="text" name="EPG_PRUNE" value="<?% config.EPG_PRUNE %?>" size="5" maxlength="25" /></td> </tr> - <tr class="row_even"> - <td class="col_label"><h5><%! Local net (no login required): !%></h5></td> - <td class="col_value"><input type="text" name="LOCAL_NET" value="<tmpl_var LOCAL_NET>" size="20" maxlength="50" /></td> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Local net (no login required):') %?></h5></td> + <td class="col_value"><input type="text" name="LOCAL_NET" value="<?% config.LOCAL_NET %?>" size="20" maxlength="50" /></td> </tr> - <tr class="row_odd"> - <td class="col_label"><h5><%! Language: !%></h5></td> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Language:') %?></h5></td> <td class="col_value"> -<tmpl_if name="MY_LOCALES"> +<?% IF MY_LOCALES %?> <select class="submit" name="LANG"> - <tmpl_loop name="MY_LOCALES"> - <option value="<tmpl_var id>" <tmpl_if cur>selected</tmpl_if>><tmpl_var name></option> - </tmpl_loop> + <?% FOREACH locale = MY_LOCALES %?> + <option value="<?% locale.id %?>" <?% IF locale.cur %?>selected="selected"<?% END %?>><?% locale.name %?></option> + <?% END %?> </select> -<tmpl_else> - <input type="text" name="LANG" value="<tmpl_var LANG>" size="20" maxlength="50" /> -</tmpl_if> +<?% ELSE %?> + <input type="text" name="LANG" value="<?% config.LANG %?>" size="20" maxlength="50" /> +<?% END %?> + </td> + </tr> + <tr class="<?% tr_class %?>"> + <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> + <td class="col_label"><h5><?% gettext('Save settings on exit:') %?></h5></td> + <td class="col_value"> + <input type="radio" name="AUTO_SAVE_CONFIG" value="1" id="autosave_yes" <?% IF config.AUTO_SAVE_CONFIG %?>checked="checked"<?% END %?> /><label for="autosave_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="AUTO_SAVE_CONFIG" value="0" id="autosave_no" <?% UNLESS config.AUTO_SAVE_CONFIG %?>checked="checked"<?% END %?> /><label for="autosave_no"><?% gettext('No') %?></label> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! VDR !%></h2></td> + <td colspan="2"><h2><?% gettext('VDR') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Number of DVB cards: !%></h5></td> - <td class="col_value"><input type="text" name="RECORDINGS" value="<tmpl_var RECORDINGS>" size="2" /></td> + <td class="col_label"><h5><?% gettext('Number of DVB cards:') %?></h5></td> + <td class="col_value"><input type="text" name="RECORDINGS" value="<?% config.RECORDINGS %?>" size="2" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Path to recordings: !%></h5></td> - <td class="col_value"><input type="text" name="VIDEODIR" value="<tmpl_var VIDEODIR>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('Path to recordings:') %?></h5></td> + <td class="col_value"><input type="text" name="VIDEODIR" value="<?% config.VIDEODIR %?>" size="20" maxlength="256" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Path to configuration files: !%></h5></td> - <td class="col_value"><input type="text" name="VDRCONFDIR" value="<tmpl_var VDRCONFDIR>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('Path to configuration files:') %?></h5></td> + <td class="col_value"><input type="text" name="VDRCONFDIR" value="<?% config.VDRCONFDIR %?>" size="20" maxlength="256" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Path to EPG images: !%></h5></td> - <td class="col_value"><input type="text" name="EPGIMAGES" value="<tmpl_var EPGIMAGES>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('Path to EPG images:') %?></h5></td> + <td class="col_value"><input type="text" name="EPGIMAGES" value="<?% config.EPGIMAGES %?>" size="20" maxlength="256" /></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Identification !%></h2></td> + <td colspan="2"><h2><?% gettext('Identification') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Username: !%></h5></td> - <td class="col_value"><input type="text" name="USERNAME" value="<tmpl_var USERNAME>" size="12" /></td> + <td class="col_label"><h5><?% gettext('Username:') %?></h5></td> + <td class="col_value"><input type="text" name="USERNAME" value="<?% config.USERNAME %?>" size="12" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Password: !%></h5></td> - <td class="col_value"><input type="password" name="PASSWORD" value="<tmpl_var PASSWORD>" size="12" /></td> + <td class="col_label"><h5><?% gettext('Password:') %?></h5></td> + <td class="col_value"><input type="password" name="PASSWORD" value="<?% config.PASSWORD %?>" size="12" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Guest Account: !%></h5></td> + <td class="col_label"><h5><?% gettext('Guest Account:') %?></h5></td> <td class="col_value"> - <input type="radio" name="GUEST_ACCOUNT" value="1" id="guest_yes" <tmpl_if guest_account>checked</tmpl_if> /><label for="guest_yes"><%! Yes !%></label> - <input type="radio" name="GUEST_ACCOUNT" value="0" id="guest_no" <tmpl_unless guest_account>checked</tmpl_unless> /><label for="guest_no"><%! No !%></label> + <input type="radio" name="GUEST_ACCOUNT" value="1" id="guest_yes" <?% IF config.GUEST_ACCOUNT %?>checked="checked"<?% END %?> /><label for="guest_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="GUEST_ACCOUNT" value="0" id="guest_no" <?% UNLESS config.GUEST_ACCOUNT %?>checked="checked"<?% END %?> /><label for="guest_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Guest Username: !%></h5></td> - <td class="col_value"><input type="text" name="USERNAME_GUEST" value="<tmpl_var USERNAME_GUEST>" size="12" /></td> + <td class="col_label"><h5><?% gettext('Guest Username:') %?></h5></td> + <td class="col_value"><input type="text" name="USERNAME_GUEST" value="<?% config.USERNAME_GUEST %?>" size="12" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Guest Password: !%></h5></td> - <td class="col_value"><input type="password" name="PASSWORD_GUEST" value="<tmpl_var PASSWORD_GUEST>" size="12" /></td> + <td class="col_label"><h5><?% gettext('Guest Password:') %?></h5></td> + <td class="col_value"><input type="password" name="PASSWORD_GUEST" value="<?% config.PASSWORD_GUEST %?>" size="12" /></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Timeline !%></h2></td> + <td colspan="2"><h2><?% gettext('Timeline') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Hours: !%></h5></td> - <td class="col_value"><input type="text" name="ZEITRAHMEN" value="<tmpl_var ZEITRAHMEN>" size="2" /></td> + <td class="col_label"><h5><?% gettext('Hours:') %?></h5></td> + <td class="col_value"><input type="text" name="ZEITRAHMEN" value="<?% config.ZEITRAHMEN %?>" size="2" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Times: !%></h5></td> - <td class="col_value"><input type="text" name="TIMES" value="<tmpl_var TIMES>" size="20" /> <%! Also used for other EPG views! !%></td> + <td class="col_label"><h5><?% gettext('Times:') %?></h5></td> + <td class="col_value"><input type="text" name="TIMES" value="<?% config.TIMES %?>" size="20" /> <?% gettext('Also used for other EPG views!') %?></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Tooltips: !%></h5></td> + <td class="col_label"><h5><?% gettext('Tooltips:') %?></h5></td> <td class="col_value"> - <input type="radio" name="TL_TOOLTIP" value="1" id="tl_tooltip_yes" <tmpl_if tl_tooltip>checked</tmpl_if> /><label for="tl_tooltip_yes"><%! Yes !%></label> - <input type="radio" name="TL_TOOLTIP" value="0" id="tl_tooltip_no" <tmpl_unless tl_tooltip>checked</tmpl_unless> /><label for="tl_tooltip_no"><%! No !%></label> + <input type="radio" name="TL_TOOLTIP" value="1" id="tl_tooltip_yes" <?% IF config.TL_TOOLTIP %?>checked="checked"<?% END %?> /><label for="tl_tooltip_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="TL_TOOLTIP" value="0" id="tl_tooltip_no" <?% UNLESS config.TL_TOOLTIP %?>checked="checked"<?% END %?> /><label for="tl_tooltip_no"><?% gettext('No') %?></label> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! AutoTimer !%></h2></td> + <td colspan="2"><h2><?% gettext('AutoTimer') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Active: !%></h5></td> + <td class="col_label"><h5><?% gettext('Active:') %?></h5></td> <td class="col_value"> - <input type="radio" name="AT_FUNC" value="1" id="at_yes" <tmpl_if at_func>checked</tmpl_if> /><label for="at_yes"><%! Yes !%></label> - <input type="radio" name="AT_FUNC" value="0" id="at_no" <tmpl_unless at_func>checked</tmpl_unless> /><label for="at_no"><%! No !%></label> + <input type="radio" name="AT_FUNC" value="1" id="at_yes" <?% IF config.AT_FUNC %?>checked="checked"<?% END %?> /><label for="at_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="AT_FUNC" value="0" id="at_no" <?% UNLESS config.AT_FUNC %?>checked="checked"<?% END %?> /><label for="at_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Timeout: !%></h5></td> - <td class="col_value"><input type="text" name="AT_TIMEOUT" value="<tmpl_var AT_TIMEOUT>" size="4" /> <%! minutes !%></td> + <td class="col_label"><h5><?% gettext('Timeout:') %?></h5></td> + <td class="col_value"><input type="text" name="AT_TIMEOUT" value="<?% config.AT_TIMEOUT %?>" size="4" /> <?% gettext('minutes') %?></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Priority: !%></h5></td> - <td class="col_value"><input type="text" name="AT_PRIORITY" value="<tmpl_var AT_PRIORITY>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Priority:') %?></h5></td> + <td class="col_value"><input type="text" name="AT_PRIORITY" value="<?% config.AT_PRIORITY %?>" size="2" maxlength="2" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Lifetime: !%></h5></td> - <td class="col_value"><input type="text" name="AT_LIFETIME" value="<tmpl_var AT_LIFETIME>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Lifetime:') %?></h5></td> + <td class="col_value"><input type="text" name="AT_LIFETIME" value="<?% config.AT_LIFETIME %?>" size="2" maxlength="2" /></td> </tr> <!-- <tr class="row_odd"> - <td class="col_label"><h5><%! Time Margin at Start: !%></h5></td> - <td class="col_value"><input type="text" name="AT_MARGIN_BEGIN" value="<tmpl_var AT_MARGIN_BEGIN>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Time Margin at Start:') %?></h5></td> + <td class="col_value"><input type="text" name="AT_MARGIN_BEGIN" value="<?% config.AT_MARGIN_BEGIN %?>" size="2" maxlength="2" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Time Margin at Stop: !%></h5></td> - <td class="col_value"><input type="text" name="AT_MARGIN_END" value="<tmpl_var AT_MARGIN_END>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Time Margin at Stop:') %?></h5></td> + <td class="col_value"><input type="text" name="AT_MARGIN_END" value="<?% config.AT_MARGIN_END %?>" size="2" maxlength="2" /></td> </tr> --> <tr class="row_odd"> - <td class="col_label"><h5><%! Send email after programming timer: !%></h5></td> + <td class="col_label"><h5><?% gettext('Send email after programming timer:') %?></h5></td> <td class="col_value"> - <input type="radio" name="AT_SENDMAIL" value="1" id="at_sendmail_yes" <tmpl_if at_sendmail>checked</tmpl_if> /><label for="at_sendmail_yes"><%! Yes !%></label> - <input type="radio" name="AT_SENDMAIL" value="0" id="at_sendmail_no" <tmpl_unless at_sendmail>checked</tmpl_unless> /><label for="at_sendmail_no"><%! No !%></label> + <input type="radio" name="AT_SENDMAIL" value="1" id="at_sendmail_yes" <?% IF config.AT_SENDMAIL %?>checked="checked"<?% END %?> /><label for="at_sendmail_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="AT_SENDMAIL" value="0" id="at_sendmail_no" <?% UNLESS config.AT_SENDMAIL %?>checked="checked"<?% END %?> /><label for="at_sendmail_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Send email as: !%></h5></td> - <td class="col_value"><input type="text" name="MAIL_FROM" value="<tmpl_var MAIL_FROM>" size="20" maxlength="100" /></td> + <td class="col_label"><h5><?% gettext('Send email as:') %?></h5></td> + <td class="col_value"><input type="text" name="MAIL_FROM" value="<?% config.MAIL_FROM %?>" size="20" maxlength="100" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Send email to: !%></h5></td> - <td class="col_value"><input type="text" name="MAIL_TO" value="<tmpl_var MAIL_TO>" size="20" maxlength="100" /></td> + <td class="col_label"><h5><?% gettext('Send email to:') %?></h5></td> + <td class="col_value"><input type="text" name="MAIL_TO" value="<?% config.MAIL_TO %?>" size="20" maxlength="100" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Mail server: !%></h5></td> - <td class="col_value"><input type="text" name="MAIL_SERVER" value="<tmpl_var MAIL_SERVER>" size="20" maxlength="100" /></td> + <td class="col_label"><h5><?% gettext('Mail server:') %?></h5></td> + <td class="col_value"><input type="text" name="MAIL_SERVER" value="<?% config.MAIL_SERVER %?>" size="20" maxlength="100" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! SMTPAuth user: !%></h5></td> - <td class="col_value"><input type="text" name="MAIL_AUTH_USER" value="<tmpl_var MAIL_AUTH_USER>" size="20" maxlength="100" /></td> + <td class="col_label"><h5><?% gettext('SMTPAuth user:') %?></h5></td> + <td class="col_value"><input type="text" name="MAIL_AUTH_USER" value="<?% config.MAIL_AUTH_USER %?>" size="20" maxlength="100" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! SMTPAuth password: !%></h5></td> - <td class="col_value"><input type="password" name="MAIL_AUTH_PASS" value="<tmpl_var MAIL_AUTH_PASS>" size="20" maxlength="100" /></td> + <td class="col_label"><h5><?% gettext('SMTPAuth password:') %?></h5></td> + <td class="col_value"><input type="password" name="MAIL_AUTH_PASS" value="<?% config.MAIL_AUTH_PASS %?>" size="20" maxlength="100" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Tooltips: !%></h5></td> + <td class="col_label"><h5><?% gettext('Tooltips:') %?></h5></td> <td class="col_value"> - <input type="radio" name="AT_TOOLTIP" value="1" id="at_tooltip_yes" <tmpl_if at_tooltip>checked</tmpl_if> /><label for="at_tooltip_yes"><%! Yes !%></label> - <input type="radio" name="AT_TOOLTIP" value="0" id="at_tooltip_no" <tmpl_unless at_tooltip>checked</tmpl_unless> /><label for="at_tooltip_no"><%! No !%></label> + <input type="radio" name="AT_TOOLTIP" value="1" id="at_tooltip_yes" <?% IF config.AT_TOOLTIP %?>checked="checked"<?% END %?> /><label for="at_tooltip_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="AT_TOOLTIP" value="0" id="at_tooltip_no" <?% UNLESS config.AT_TOOLTIP %?>checked="checked"<?% END %?> /><label for="at_tooltip_no"><?% gettext('No') %?></label> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Timer !%></h2></td> + <td colspan="2"><h2><?% gettext('Timer') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Priority: !%></h5></td> - <td class="col_value"><input type="text" name="TM_PRIORITY" value="<tmpl_var TM_PRIORITY>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Priority:') %?></h5></td> + <td class="col_value"><input type="text" name="TM_PRIORITY" value="<?% config.TM_PRIORITY %?>" size="2" maxlength="2" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Lifetime: !%></h5></td> - <td class="col_value"><input type="text" name="TM_LIFETIME" value="<tmpl_var TM_LIFETIME>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Lifetime:') %?></h5></td> + <td class="col_value"><input type="text" name="TM_LIFETIME" value="<?% config.TM_LIFETIME %?>" size="2" maxlength="2" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Time Margin at Start: !%></h5></td> - <td class="col_value"><input type="text" name="TM_MARGIN_BEGIN" value="<tmpl_var TM_MARGIN_BEGIN>" size="3" /> <%! minutes !%></td> + <td class="col_label"><h5><?% gettext('Time Margin at Start:') %?></h5></td> + <td class="col_value"><input type="text" name="TM_MARGIN_BEGIN" value="<?% config.TM_MARGIN_BEGIN %?>" size="3" /> <?% gettext('minutes') %?></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Time Margin at Stop: !%></h5></td> - <td class="col_value"><input type="text" name="TM_MARGIN_END" value="<tmpl_var TM_MARGIN_END>" size="3" /> <%! minutes !%></td> + <td class="col_label"><h5><?% gettext('Time Margin at Stop:') %?></h5></td> + <td class="col_value"><input type="text" name="TM_MARGIN_END" value="<?% config.TM_MARGIN_END %?>" size="3" /> <?% gettext('minutes') %?></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Tooltips in timeline: !%></h5></td> + <td class="col_label"><h5><?% gettext('Tooltips in timeline:') %?></h5></td> <td class="col_value"> - <input type="radio" name="TM_TT_TIMELINE" value="1" id="tm_tl_timeline_yes" <tmpl_if tm_tt_timeline>checked</tmpl_if> /><label for="tm_tl_timeline_yes"><%! Yes !%></label> - <input type="radio" name="TM_TT_TIMELINE" value="0" id="tm_tl_timeline_no" <tmpl_unless tm_tt_timeline>checked</tmpl_unless> /><label for="tm_tl_timeline_no"><%! No !%></label> + <input type="radio" name="TM_TT_TIMELINE" value="1" id="tm_tl_timeline_yes" <?% IF config.TM_TT_TIMELINE %?>checked="checked"<?% END %?> /><label for="tm_tl_timeline_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="TM_TT_TIMELINE" value="0" id="tm_tl_timeline_no" <?% UNLESS config.TM_TT_TIMELINE %?>checked="checked"<?% END %?> /><label for="tm_tl_timeline_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Tooltips in list: !%></h5></td> + <td class="col_label"><h5><?% gettext('Tooltips in list:') %?></h5></td> <td class="col_value"> - <input type="radio" name="TM_TT_LIST" value="1" id="tm_tl_list_yes" <tmpl_if tm_tt_list>checked</tmpl_if> /><label for="tm_tl_list_yes"><%! Yes !%></label> - <input type="radio" name="TM_TT_LIST" value="0" id="tm_tl_list_no" <tmpl_unless tm_tt_list>checked</tmpl_unless> /><label for="tm_tl_list_no"><%! No !%></label> + <input type="radio" name="TM_TT_LIST" value="1" id="tm_tl_list_yes" <?% IF config.TM_TT_LIST %?>checked="checked"<?% END %?> /><label for="tm_tl_list_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="TM_TT_LIST" value="0" id="tm_tl_list_no" <?% UNLESS config.TM_TT_LIST %?>checked="checked"<?% END %?> /><label for="tm_tl_list_no"><?% gettext('No') %?></label> </td> </tr> <!-- <tr class="row_odd"> - <td class="col_label"><h5><%! Add summary to new timers: !%></h5></td> + <td class="col_label"><h5><?% gettext('Add summary to new timers:') %?></h5></td> <td class="col_value"> - <input type="radio" name="TM_ADD_SUMMARY" value="1" id="tm_add_summary_yes" <tmpl_if tm_add_summary>checked</tmpl_if> /><label for="tm_add_summary_yes"><%! Yes !%></label> - <input type="radio" name="TM_ADD_SUMMARY" value="0" id="tm_add_summary_no" <tmpl_unless tm_add_summary>checked</tmpl_unless> /><label for="tm_add_summary_no"><%! No !%></label> + <input type="radio" name="TM_ADD_SUMMARY" value="1" id="tm_add_summary_yes" <?% IF config.TM_ADD_SUMMARY %?>checked="checked"<?% END %?> /><label for="tm_add_summary_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="TM_ADD_SUMMARY" value="0" id="tm_add_summary_no" <?% UNLESS config.TM_ADD_SUMMARY %?>checked="checked"<?% END %?> /><label for="tm_add_summary_no"><?% gettext('No') %?></label> </td> </tr>--> </table> -<tmpl_if ST_FUNC> +<?% IF config.ST_FUNC %?> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Streaming !%></h2></td> + <td colspan="2"><h2><?% gettext('Streaming') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Live Streaming: !%></h5></td> + <td class="col_label"><h5><?% gettext('Live Streaming:') %?></h5></td> <td class="col_value"> - <input type="radio" name="ST_LIVE_ON" value="1" id="live_yes" <tmpl_if ST_LIVE_ON>checked</tmpl_if> /><label for="live_yes"><%! Yes !%></label> - <input type="radio" name="ST_LIVE_ON" value="0" id="live_no" <tmpl_unless ST_LIVE_ON>checked</tmpl_unless> /><label for="live_no"><%! No !%></label> + <input type="radio" name="ST_LIVE_ON" value="1" id="live_yes" <?% IF config.ST_LIVE_ON %?>checked="checked"<?% END %?> /><label for="live_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="ST_LIVE_ON" value="0" id="live_no" <?% UNLESS config.ST_LIVE_ON %?>checked="checked"<?% END %?> /><label for="live_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! HTTP Port of Streamdev (also possible 3000/ts): !%></h5></td> - <td class="col_value"><input type="text" name="ST_STREAMDEV_PORT" value="<tmpl_var ST_STREAMDEV_PORT>" size="10" /></td> + <td class="col_label"><h5><?% gettext('HTTP Port of Streamdev (also possible 3000/ts):') %?></h5></td> + <td class="col_value"><input type="text" name="ST_STREAMDEV_PORT" value="<?% config.ST_STREAMDEV_PORT %?>" size="10" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Recordings Streaming: !%></h5></td> + <td class="col_label"><h5><?% gettext('Recordings Streaming:') %?></h5></td> <td class="col_value"> - <input type="radio" name="ST_REC_ON" value="1" id="rec_yes" <tmpl_if ST_REC_ON>checked</tmpl_if> /><label for="rec_yes"><%! Yes !%></label> - <input type="radio" name="ST_REC_ON" value="0" id="rec_no" <tmpl_unless ST_REC_ON>checked</tmpl_unless> /><label for="rec_no"><%! No !%></label> + <input type="radio" name="ST_REC_ON" value="1" id="rec_yes" <?% IF config.ST_REC_ON %?>checked="checked"<?% END %?> /><label for="rec_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="ST_REC_ON" value="0" id="rec_no" <?% UNLESS config.ST_REC_ON %?>checked="checked"<?% END %?> /><label for="rec_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Path to VDR Recordings on your workstation: !%></h5></td> - <td class="col_value"><input type="text" name="ST_VIDEODIR" value="<tmpl_var ST_VIDEODIR>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('Path to VDR Recordings on your workstation:') %?></h5></td> + <td class="col_value"><input type="text" name="ST_VIDEODIR" value="<?% config.ST_VIDEODIR %?>" size="20" maxlength="256" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! MIME type for live streaming: !%></h5></td> - <td class="col_value"><input type="text" name="TV_MIMETYPE" value="<tmpl_var TV_MIMETYPE>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('MIME type for live streaming:') %?></h5></td> + <td class="col_value"><input type="text" name="TV_MIMETYPE" value="<?% config.TV_MIMETYPE %?>" size="20" maxlength="256" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Suffix for live streaming: !%></h5></td> - <td class="col_value"><input type="text" name="TV_EXT" value="<tmpl_var TV_EXT>" size="4" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('Suffix for live streaming:') %?></h5></td> + <td class="col_value"><input type="text" name="TV_EXT" value="<?% config.TV_EXT %?>" size="4" maxlength="256" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! MIME type for recordings streaming: !%></h5></td> - <td class="col_value"><input type="text" name="REC_MIMETYPE" value="<tmpl_var REC_MIMETYPE>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('MIME type for recordings streaming:') %?></h5></td> + <td class="col_value"><input type="text" name="REC_MIMETYPE" value="<?% config.REC_MIMETYPE %?>" size="20" maxlength="256" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Suffix for recordings streaming: !%></h5></td> - <td class="col_value"><input type="text" name="REC_EXT" value="<tmpl_var REC_EXT>" size="4" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('Suffix for recordings streaming:') %?></h5></td> + <td class="col_value"><input type="text" name="REC_EXT" value="<?% config.REC_EXT %?>" size="4" maxlength="256" /></td> </tr> <!-- not (yet?) supported <tr class="row_odd"> - <td class="col_label"><h5><%! Bandwidth of Streams: !%></h5></td> + <td class="col_label"><h5><?% gettext('Bandwidth of Streams:') %?></h5></td> <td class="col_value"> <select class="submit" name="STREAMTYPE"> -<tmpl_loop name="STREAMTYPELIST"> - <option value="<tmpl_var name>" <tmpl_if sel> selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> +<?% FOREACH streamtype = STREAMTYPELIST %?> + <option value="<?% streamtype.name %?>" <?% IF streamtype.sel %?>selected="selected"<?% END %?>><?% streamtype.name %?></option> +<?% END %?> </select> </td> </tr> --> </table> -</tmpl_if> +<?% END %?> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="2"><h2><%! Expert !%></h2></td> + <td colspan="2"><h2><?% gettext('Expert') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Read EPG directly using epg.data: !%></h5></td> + <td class="col_label"><h5><?% gettext('Read EPG directly using epg.data:') %?></h5></td> <td class="col_value"> - <input type="radio" name="EPG_DIRECT" value="1" id="epg_yes" <tmpl_if EPG_DIRECT>checked</tmpl_if> /><label for="epg_yes"><%! Yes !%></label> - <input type="radio" name="EPG_DIRECT" value="0" id="epg_no" <tmpl_unless EPG_DIRECT>checked</tmpl_unless> /><label for="epg_no"><%! No !%></label> + <input type="radio" name="EPG_DIRECT" value="1" id="epg_yes" <?% IF config.EPG_DIRECT %?>checked="checked"<?% END %?> /><label for="epg_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="EPG_DIRECT" value="0" id="epg_no" <?% UNLESS config.EPG_DIRECT %?>checked="checked"<?% END %?> /><label for="epg_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! epg.data filename: !%></h5></td> - <td class="col_value"><input type="text" name="EPG_FILENAME" value="<tmpl_var EPG_FILENAME>" size="20" maxlength="256" /></td> + <td class="col_label"><h5><?% gettext('epg.data filename:') %?></h5></td> + <td class="col_value"><input type="text" name="EPG_FILENAME" value="<?% config.EPG_FILENAME %?>" size="20" maxlength="256" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! VFAT: !%></h5></td> + <td class="col_label"><h5><?% gettext('VFAT:') %?></h5></td> <td class="col_value"> - <input type="radio" name="VDRVFAT" value="1" id="vfat_yes" <tmpl_if VDRVFAT>checked</tmpl_if> /><label for="vfat_yes"><%! Yes !%></label> - <input type="radio" name="VDRVFAT" value="0" id="vfat_no" <tmpl_unless VDRVFAT>checked</tmpl_unless> /><label for="vfat_no"><%! No !%></label> + <input type="radio" name="VDRVFAT" value="1" id="vfat_yes" <?% IF config.VDRVFAT %?>checked="checked"<?% END %?> /><label for="vfat_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="VDRVFAT" value="0" id="vfat_no" <?% UNLESS config.VDRVFAT %?>checked="checked"<?% END %?> /><label for="vfat_no"><?% gettext('No') %?></label> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> - <td colspan="3"><h2><%! Channel Selections !%></h2></td> + <td colspan="3"><h2><?% gettext('Channel Selections') %?></h2></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! In "Timeline"? !%></h5></td> + <td class="col_label"><h5><?% gettext('In "Timeline"?') %?></h5></td> <td class="col_value" colspan="2"> - <input type="radio" name="CHANNELS_WANTED_TIMELINE" value="1" id="tl_yes" <tmpl_if CHANNELS_WANTED_TIMELINE>checked</tmpl_if> /><label for="tl_yes"><%! Yes !%></label> - <input type="radio" name="CHANNELS_WANTED_TIMELINE" value="0" id="tl_no" <tmpl_unless CHANNELS_WANTED_TIMELINE>checked</tmpl_unless> /><label for="tl_no"><%! No !%></label> + <input type="radio" name="CHANNELS_WANTED_TIMELINE" value="1" id="tl_yes" <?% IF config.CHANNELS_WANTED_TIMELINE %?>checked="checked"<?% END %?> /><label for="tl_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="CHANNELS_WANTED_TIMELINE" value="0" id="tl_no" <?% UNLESS config.CHANNELS_WANTED_TIMELINE %?>checked="checked"<?% END %?> /><label for="tl_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! In "Channels"? !%></h5></td> + <td class="col_label"><h5><?% gettext('In "Channels"?') %?></h5></td> <td class="col_value" colspan="2"> - <input type="radio" name="CHANNELS_WANTED_PRG" value="1" id="prg_yes" <tmpl_if CHANNELS_WANTED_PRG>checked</tmpl_if> /><label for="prg_yes"><%! Yes !%></label> - <input type="radio" name="CHANNELS_WANTED_PRG" value="0" id="prg_no"<tmpl_unless CHANNELS_WANTED_PRG>checked</tmpl_unless> /><label for="prg_no"><%! No !%> </label> + <input type="radio" name="CHANNELS_WANTED_PRG" value="1" id="prg_yes" <?% IF config.CHANNELS_WANTED_PRG %?>checked="checked"<?% END %?> /><label for="prg_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="CHANNELS_WANTED_PRG" value="0" id="prg_no"<?% UNLESS config.CHANNELS_WANTED_PRG %?>checked="checked"<?% END %?> /><label for="prg_no"><?% gettext('No') %?> </label> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! In "Playing Today"? !%></h5></td> + <td class="col_label"><h5><?% gettext('In "Playing Today"?') %?></h5></td> <td class="col_value" colspan="2"> - <input type="radio" name="CHANNELS_WANTED_PRG2" value="1" id="prg2_yes" <tmpl_if CHANNELS_WANTED_PRG2>checked</tmpl_if> /><label for="prg2_yes"><%! Yes !%></label> - <input type="radio" name="CHANNELS_WANTED_PRG2" value="0" id="prg2_no"<tmpl_unless CHANNELS_WANTED_PRG2>checked</tmpl_unless> /><label for="prg2_no"><%! No !%> </label> + <input type="radio" name="CHANNELS_WANTED_PRG2" value="1" id="prg2_yes" <?% IF config.CHANNELS_WANTED_PRG2 %?>checked="checked"<?% END %?> /><label for="prg2_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="CHANNELS_WANTED_PRG2" value="0" id="prg2_no"<?% UNLESS config.CHANNELS_WANTED_PRG2 %?>checked="checked"<?% END %?> /><label for="prg2_no"><?% gettext('No') %?> </label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! In "What's On Now"? !%></h5></td> + <td class="col_label"><h5><?% gettext('In "What\'s On Now"?') %?></h5></td> <td class="col_value" colspan="2"> - <input type="radio" name="CHANNELS_WANTED_SUMMARY" value="1" id="sum_yes" <tmpl_if CHANNELS_WANTED_SUMMARY>checked</tmpl_if> /><label for="sum_yes"><%! Yes !%></label> - <input type="radio" name="CHANNELS_WANTED_SUMMARY" value="0" id="sum_no" <tmpl_unless CHANNELS_WANTED_SUMMARY>checked</tmpl_unless> /><label for="sum_no"><%! No !%></label> + <input type="radio" name="CHANNELS_WANTED_SUMMARY" value="1" id="sum_yes" <?% IF config.CHANNELS_WANTED_SUMMARY %?>checked="checked"<?% END %?> /><label for="sum_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="CHANNELS_WANTED_SUMMARY" value="0" id="sum_no" <?% UNLESS config.CHANNELS_WANTED_SUMMARY %?>checked="checked"<?% END %?> /><label for="sum_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! In "AutoTimer"? !%></h5></td> + <td class="col_label"><h5><?% gettext('In "AutoTimer"?') %?></h5></td> <td class="col_value" colspan="2"> - <input type="radio" name="CHANNELS_WANTED_AUTOTIMER" value="1" id="wat_yes" <tmpl_if CHANNELS_WANTED_AUTOTIMER>checked</tmpl_if> /><label for="wat_yes"><%! Yes !%></label> - <input type="radio" name="CHANNELS_WANTED_AUTOTIMER" value="0" id="wat_no" <tmpl_unless CHANNELS_WANTED_AUTOTIMER>checked</tmpl_unless> /><label for="wat_no"><%! No !%></label> + <input type="radio" name="CHANNELS_WANTED_AUTOTIMER" value="1" id="wat_yes" <?% IF config.CHANNELS_WANTED_AUTOTIMER %?>checked="checked"<?% END %?> /><label for="wat_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="CHANNELS_WANTED_AUTOTIMER" value="0" id="wat_no" <?% UNLESS config.CHANNELS_WANTED_AUTOTIMER %?>checked="checked"<?% END %?> /><label for="wat_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! In "Watch TV"? !%></h5></td> + <td class="col_label"><h5><?% gettext('In "Watch TV"?') %?></h5></td> <td class="col_value" colspan="2"> - <input type="radio" name="CHANNELS_WANTED_WATCHTV" value="1" id="wtv_yes" <tmpl_if CHANNELS_WANTED_WATCHTV>checked</tmpl_if> /><label for="wtv_yes"><%! Yes !%></label> - <input type="radio" name="CHANNELS_WANTED_WATCHTV" value="0" id="wtv_no" <tmpl_unless CHANNELS_WANTED_WATCHTV>checked</tmpl_unless> /><label for="wtv_no"><%! No !%></label> + <input type="radio" name="CHANNELS_WANTED_WATCHTV" value="1" id="wtv_yes" <?% IF config.CHANNELS_WANTED_WATCHTV %?>checked="checked"<?% END %?> /><label for="wtv_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="CHANNELS_WANTED_WATCHTV" value="0" id="wtv_no" <?% UNLESS config.CHANNELS_WANTED_WATCHTV %?>checked="checked"<?% END %?> /><label for="wtv_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_odd"> <td class="col_channels"> <select name="all_channels" size="8" multiple class="channels"> -<tmpl_loop name="ALL_CHANNELS"> - <option value="<tmpl_var vdr_id>"><tmpl_var name escape="html"></option> -</tmpl_loop> +<?% FOREACH chan = ALL_CHANNELS %?> + <option value="<?% chan.vdr_id %?>"><?% chan.name | html %?></option> +<?% END %?> </select> </td> <td> @@ -421,17 +438,17 @@ </td> <td class="col_wanted_channels"> <select name="selected_channels" size="8" multiple class="channels"> -<tmpl_loop name="SELECTED_CHANNELS"> - <option value="<tmpl_var vdr_id>"><tmpl_var name escape="html"></option> -</tmpl_loop> +<?% FOREACH chan = SELECTED_CHANNELS %?> + <option value="<?% chan.vdr_id %?>"><?% chan.name | html %?></option> +<?% END %?> </select> </td> </tr> </table> <div id="buttons"> - <input type="submit" class="submit" name="save" value="<%! Save !%>" /> - <input type="submit" class="submit" name="apply" value="<%! Apply !%>" /> + <input type="submit" class="submit" name="save" value="<?% gettext('Save') %?>" /> + <input type="submit" class="submit" name="apply" value="<?% gettext('Apply') %?>" /> </div> <input type="hidden" name="aktion" value="config" /> </form> diff --git a/template/default/default/cut.png b/template/default/default/cut.png Binary files differnew file mode 100644 index 0000000..7ec355a --- /dev/null +++ b/template/default/default/cut.png diff --git a/template/default/default/play.png b/template/default/default/play.png Binary files differnew file mode 100644 index 0000000..487b1c3 --- /dev/null +++ b/template/default/default/play.png diff --git a/template/default/error.html b/template/default/error.html index 6739d37..6e45956 100644 --- a/template/default/error.html +++ b/template/default/error.html @@ -2,12 +2,12 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>"/> - <title><%! Error! !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>"/> + <title><?% gettext('Error!') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css"/> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css"/> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> @@ -15,7 +15,7 @@ <div align="center"> <img src="bilder/sauerei.gif" height="230" width="177" border="0" alt="" /> <br/> - <h2><tmpl_var name="error"></h2> + <h2><?% error %?></h2> </div> </body> diff --git a/template/default/default/favicon.ico b/template/default/favicon.ico Binary files differindex a4fe6df..a4fe6df 100644 --- a/template/default/default/favicon.ico +++ b/template/default/favicon.ico diff --git a/template/default/help_at_timer_list.html b/template/default/help_at_timer_list.html index 0edc33e..129d286 100644 --- a/template/default/help_at_timer_list.html +++ b/template/default/help_at_timer_list.html @@ -2,46 +2,46 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! AutoTimer !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('AutoTimer') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="at_timer_list" class="help" onload="window.focus()"> <form onsubmit="return false;" action="help_at_timer_list.html"> <input type="hidden" name="aktion" value="show_help"/> - <input type="hidden" name="area" value="<tmpl_var area>"/> + <input type="hidden" name="area" value="<?% area %?>"/> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! AutoTimer !%></h2></td> + <td><h2><?% gettext('AutoTimer') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>Here you will find a listing of automatic timers (AutoTimer) known to VDRAdmin-AM.</p> - <p>The list shows some information on AutoTimers. You can change the list's sorting by clicking the columns heading.</p> + <?% gettext('<p>Here you will find a listing of automatic timers (AutoTimer) known to VDRAdmin-AM.</p> + <p>The list shows some information on AutoTimers. You can change the list\'s sorting by clicking the columns heading.</p> <p>For each AutoTimer you have the following options: <dl> <dt>Set its state</dt> <dd>By clicking on "Yes" or "No" in the "Active" column to toggle the activity.</dd> <dt>Quickly view its priority and lifetime</dt> - <dd>By pointing the mouse cursor to the AutoTimer's title.</dd> + <dd>By pointing the mouse cursor to the AutoTimer\'s title.</dd> <dt>Edit the AutoTimer</dt> <dd>You can edit an AutoTimer by clicking <img src="bilder/edit.png" alt="edit" />.</dd> <dt>Delete the AutoTimer</dt> <dd>To delete an AutoTimer you click <img src="bilder/delete.png" alt="delete" />.</dd> </dl> </p> - <p>Each AutoTimer's state is indicated by differently coloured images:<br /> + <p>Each AutoTimer\'s state is indicated by differently coloured images:<br /> <img src="bilder/poempl_gruen.png" alt="on" align="middle" /> AutoTimer is OK and will automatically program matching broadcasts.<br /> <img src="bilder/poempl_grau.png" alt="inactive" align="middle" /> AutoTimer is not active. </p> <p>In addition to these functions you can add a new AutoTimer by clicking <input type="submit" class="submit" value="New AutoTimer"/> at the top and you can delete a number of AutoTimers at once by checking the box in the last column of those timers and clicking <input type="submit" class="submit" value="Delete Selected AutoTimers"/>.</p> - <p>Click <input type="submit" class="submit" value="Force Update"/> to force VDRAdmin-AM to reconnect to VDR, fetch the current EPG and check for matching AutoTimers.</p> !%> + <p>Click <input type="submit" class="submit" value="Force Update"/> to force VDRAdmin-AM to reconnect to VDR, fetch the current EPG and check for matching AutoTimers.</p>') %?> </td> </tr> </table> diff --git a/template/default/help_at_timer_new.html b/template/default/help_at_timer_new.html index a747cc5..794c9d5 100644 --- a/template/default/help_at_timer_new.html +++ b/template/default/help_at_timer_new.html @@ -8,50 +8,56 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! Edit AutoTimer !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('Edit AutoTimer') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="at_timer_new" class="help" onload="window.focus()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! Edit AutoTimer !%></h2></td> + <td><h2><?% gettext('Edit AutoTimer') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>Here you can edit an automatic timer's (AutoTimer) settings.</p> - <p>AutoTimer is a key feature of VDRAdmin-AM. An AutoTimer consists of one or more search terms and some other settings, that are looked for regularly in the Electronic Program Guide (EPG). On match AutoTimer adds a timer in VDR automatically for that broadcast. That's very comfortable for irregularly broadcasted series or movies you don't want to miss.</p> !%> + <?% gettext('<p>Here you can edit an automatic timer\'s (AutoTimer) settings.</p> + <p>AutoTimer is a key feature of VDRAdmin-AM. An AutoTimer consists of one or more search terms and some other settings, that are looked for regularly in the Electronic Program Guide (EPG). On match AutoTimer adds a timer in VDR automatically for that broadcast. That\'s very comfortable for irregularly broadcasted series or movies you don\'t want to miss.</p>') %?> <dl> - <dt><%! AutoTimer Active: !%></dt> - <dd><%! Activate or deactivate this AutoTimer. Deactivated AutoTimers are still stored in the AutoTimer list so that they can be activated again, but they do not record anything meanwhile. Above that you can set this to "oneshot" so this AutoTimer only programs the (one!) next matching broadcast. !%></dd> - <dt><%! Search Patterns: !%></dt> - <dd><%! Choosing the right search items decides whether only the wanted broadcasts or broadcasts having similar names or even nothing gets recorded.<br />Case doesn't matter, "X-Files" matches anything "x-files" will match. You can set multiple search items by separating them with spaces. Only broadcasts will match if they contain <strong>all</strong> items.<br />You'd better only use letters and numbers for search items, as the EPG often miss colons, brackets and other characters.<br />Experts can also use regular expressions, but you have to get needed information from the VDRAdmin-AM sources (undocumented feature).<br /><br />You can exclude broadcasts so that they don't get recorded even if they would match an AutoTimer. Therefore you have to enter that titles into the file <i>vdradmind.bl</i>, one event a line. This file must be located in your VDRAdmin-AM's configuration folder. If this string is found either in the EPG's <u>title</u> or in <u>title~subtitle</u>, this event will not be programmed by AutoTimer. So you can disable complete episodes (for example when using "Enterprise" as Blacklist-string) or only one episode (when using "Enterprise~Azati Prime" as Blacklist-string). !%></dd> - <dt><%! Search in: !%></dt> - <dd><%! Here you can define the EPG sections where VDRAdmin-AM should look for the search pattern. !%></dd> - <dt><%! Search only on these days: !%></dt> - <dd><%! Use these checkboxes to limit searching for matching broadcasts to a set of weekdays. !%></dd> - <dt><%! Channel: !%></dt> - <dd><%! The channel to look for matching broadcasts or "all" to search in all known or wanted channels. You can define the wanted channels for AutoTimer in "Configuration". !%></dd> - <dt><%! Starts After: !%></dt> - <dd><%! A broadcast must start after the time entered here to match. The first text field is for "hour", the second for "minute". !%></dd> - <dt><%! Ends Before: !%></dt> - <dd><%! A broadcast must end before the time entered here to match. The first text field is for "hour", the second for "minute". !%></dd> - <dt><%! Priority: !%></dt> - <dd><%! An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording. !%></dd> - <dt><%! Lifetime: !%></dt> - <dd><%! The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by. !%></dd> - <dt><%! Episode: !%></dt> - <dd><%! Check this box if you want VDRAdmin-AM to append the broadcast's EPG subtitle to the recording's file name. !%></dd> - <dt><%! Remember programmed timers: !%></dt> - <dd><%! If you enable this VDRAdmin-AM will track timers it has already programmed automatically. This is useful if want to deactivate or delete timers that have been programmed automatically in the timers listing. !%></dd> - <dt><%! Directory: !%></dt> + <dt><?% gettext('AutoTimer Active:') %?></dt> + <dd><?% gettext('Activate or deactivate this AutoTimer. Deactivated AutoTimers are still stored in the AutoTimer list so that they can be activated again, but they do not record anything meanwhile. Above that you can set this to "oneshot" so this AutoTimer only programs the (one!) next matching broadcast.') %?></dd> + <dt><?% gettext('Search Patterns:') %?></dt> + <dd><?% gettext('Choosing the right search items decides whether only the wanted broadcasts or broadcasts having similar names or even nothing gets recorded.<br />Case doesn\'t matter, "X-Files" matches anything "x-files" will match. You can set multiple search items by separating them with spaces. Only broadcasts will match if they contain <strong>all</strong> items.<br />You\'d better only use letters and numbers for search items, as the EPG often miss colons, brackets and other characters.<br />Experts can also use regular expressions, but you have to get needed information from the VDRAdmin-AM sources (undocumented feature).<br /><br />You can exclude broadcasts so that they don\'t get recorded even if they would match an AutoTimer. Therefore you have to enter that titles into the file <i>vdradmind.bl</i>, one event a line. This file must be located in your VDRAdmin-AM\'s configuration folder. If this string is found either in the EPG\'s <u>title</u> or in <u>title~subtitle</u>, this event will not be programmed by AutoTimer. So you can disable complete episodes (for example when using "Enterprise" as Blacklist-string) or only one episode (when using "Enterprise~Azati Prime" as Blacklist-string).') %?></dd> + <dt><?% gettext('Search in:') %?></dt> + <dd><?% gettext('Here you can define the EPG sections where VDRAdmin-AM should look for the search pattern.') %?></dd> + <dt><?% gettext('Search only on these days:') %?></dt> + <dd><?% gettext('Use these checkboxes to limit searching for matching broadcasts to a set of weekdays.') %?></dd> + <dt><?% gettext('Channel:') %?></dt> + <dd><?% gettext('The channel to look for matching broadcasts or "all" to search in all known or wanted channels. You can define the wanted channels for AutoTimer in "Configuration".') %?></dd> + <dt><?% gettext('Starts After:') %?></dt> + <dd><?% gettext('A broadcast must start after the time entered here to match. The first text field is for "hour", the second for "minute".') %?></dd> + <dt><?% gettext('Ends Before:') %?></dt> + <dd><?% gettext('A broadcast must end before the time entered here to match. The first text field is for "hour", the second for "minute".') %?></dd> + <dt><?% gettext('Override Start/Stop Margins:') %?></dt> + <dd><?% gettext('Set this option to "yes" if all timers programed by this AutoTimer should have individual start/stop margins and enter the values in the next two text boxes.') %?> + <dt><?% gettext('Time Margin at Start:') %?></dt> + <dd><?% gettext('The number of minutes VDRAdmin-AM subtracts from the broadcasts start time found in the EPG.') %?></dd> + <dt><?% gettext('Time Margin at Stop:') %?></dt> + <dd><?% gettext('The number of minutes VDRAdmin-AM adds to the broadcasts stop time found in the EPG.') %?></dd> + <dt><?% gettext('Priority:') %?></dt> + <dd><?% gettext('An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording.') %?></dd> + <dt><?% gettext('Lifetime:') %?></dt> + <dd><?% gettext('The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by.') %?></dd> + <dt><?% gettext('Episode:') %?></dt> + <dd><?% gettext('Check this box if you want VDRAdmin-AM to append the broadcast\'s EPG subtitle to the recording\'s file name.') %?></dd> + <dt><?% gettext('Remember programmed timers:') %?></dt> + <dd><?% gettext('If you enable this VDRAdmin-AM will track timers it has already programmed automatically. This is useful if want to deactivate or delete timers that have been programmed automatically in the timers listing.') %?></dd> + <dt><?% gettext('Directory:') %?></dt> <dd> - <%! The directory this AutoTimer will place the recordings in. If the name shall contain subdirectories, these have to be delimited by '~' (since the '/' character may be part of a regular programme name).<br />VDRAdmin-AM will append the matching broadcast's title and subtitle (if the "Episode" checkbox is marked) to the directory given here.<br /><br /> + <?% gettext('The directory this AutoTimer will place the recordings in. If the name shall contain subdirectories, these have to be delimited by \'~\' (since the \'/\' character may be part of a regular programme name).<br />VDRAdmin-AM will append the matching broadcast\'s title and subtitle (if the "Episode" checkbox is marked) to the directory given here.<br /><br /> You can also use the following keywords that are replaced in the final file name by the values supplied by for example <a href="http://tvmovie2vdr.vdr-developer.org">tvm2vdr</a>: <ul> <li>%Title% - will become the title of the event.</li> @@ -64,11 +70,11 @@ <li>%Country% - will become the country of production.</li> <li>%Originaltitle% - will become the original title of the event.</li> <li>%FSK% - will become the FSK from the event.</li> - <li>%Episode% - will become the episode's title of the event.</li> + <li>%Episode% - will become the episode\'s title of the event.</li> <li>%Rating% - will become the rating of the event from the EPG provider.</li> </ul> <h4>Note:</h4> - If you use the above keywords it's in your own responsibility to supply the <strong>complete file name</strong> for the recordings! VDRAdmin-AM will not append anything to the resulting string. !%> + If you use the above keywords it\'s in your own responsibility to supply the <strong>complete file name</strong> for the recordings! VDRAdmin-AM will not append anything to the resulting string.') %?> </dd> </dl> </td> diff --git a/template/default/help_config.html b/template/default/help_config.html index bc2885d..675935b 100644 --- a/template/default/help_config.html +++ b/template/default/help_config.html @@ -5,176 +5,178 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! Configuration !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('Configuration') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="config" class="help" onload="window.focus()"> <form onsubmit="return false;" action="help_config.html"> <input type="hidden" name="aktion" value="show_help"/> - <input type="hidden" name="area" value="<tmpl_var area>"/> + <input type="hidden" name="area" value="<?% area %?>"/> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><a id="top" name="top"></a><%! Configuration !%></h2></td> + <td><h2><a id="top" name="top"></a><?% gettext('Configuration') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>Here you can change general settings and base settings for timers, AutoTimers, channel selection and streaming parameters.</p> !%> + <?% gettext('<p>Here you can change general settings and base settings for timers, AutoTimers, channel selection and streaming parameters.</p>') %?> <div class="links"> - [<a href="#general"><%! General Settings !%></a>] [<a href="#vdr"><%! VDR !%></a>] [<a href="#identification"><%! Identification !%></a>] [<a href="#timeline"><%! Timeline !%></a>] [<a href="#autotimer"><%! AutoTimer !%></a>] [<a href="#timer"><%! Timer !%></a>] [<a href="#streaming"><%! Streaming !%></a>] [<a href="#expert"><%! Expert !%></a>] [<a href="#channels"><%! Channel Selections !%></a>] + [<a href="#general"><?% gettext('General Settings') %?></a>] [<a href="#vdr"><?% gettext('VDR') %?></a>] [<a href="#identification"><?% gettext('Identification') %?></a>] [<a href="#timeline"><?% gettext('Timeline') %?></a>] [<a href="#autotimer"><?% gettext('AutoTimer') %?></a>] [<a href="#timer"><?% gettext('Timer') %?></a>] [<a href="#streaming"><?% gettext('Streaming') %?></a>] [<a href="#expert"><?% gettext('Expert') %?></a>] [<a href="#channels"><?% gettext('Channel Selections') %?></a>] </div> - <div class="group"><a id="general" name="general"></a><h3><%! General Settings !%></h3> + <div class="group"><a id="general" name="general"></a><h3><?% gettext('General Settings') %?></h3> <dl> - <dt><%! Skin: !%></dt> - <dd><%! The skin you want to use. !%></dd> - <dt><%! Login Page: !%></dt> - <dd><%! The page you want to see at first connect to VDRAdmin-AM. !%></dd> - <dt><%! Number of channels to use: !%></dt> - <dd><%! VDRAdmin-AM will load the given number of channels from VDR and present only those in any fields where channels can be selected. This also limits the EPG information VDRAdmin-AM will read so that you can use this to reduce VDRAdmin-AM's memory consumption and increase its performance. <strong>0</strong> turns this feature off and VDRAdmin-AM will use all available channels. !%></dd> - <dt><%! Local net (no login required): !%></dt> - <dd><%! Here you can specify an IP address or range that can login without providing login information. For example: "192.168.0.0/24" will include any IP starting with "192.168.0", "192.168.0.123/32" will only match "192.168.0.123". !%></dd> - <dt><%! Language: !%></dt> - <dd><%! Here you can set the localization VDRAdmin-AM should use. !%></dd> + <dt><?% gettext('Skin:') %?></dt> + <dd><?% gettext('The skin you want to use.') %?></dd> + <dt><?% gettext('Login Page:') %?></dt> + <dd><?% gettext('The page you want to see at first connect to VDRAdmin-AM.') %?></dd> + <dt><?% gettext('Number of channels to use:') %?></dt> + <dd><?% gettext('VDRAdmin-AM will load the given number of channels from VDR and present only those in any fields where channels can be selected. This also limits the EPG information VDRAdmin-AM will read so that you can use this to reduce VDRAdmin-AM\'s memory consumption and increase its performance. <strong>0</strong> turns this feature off and VDRAdmin-AM will use all available channels.') %?></dd> + <dt><?% gettext('Local net (no login required):') %?></dt> + <dd><?% gettext('Here you can specify an IP address or range that can login without providing login information. For example: "192.168.0.0/24" will include any IP starting with "192.168.0", "192.168.0.123/32" will only match "192.168.0.123".') %?></dd> + <dt><?% gettext('Language:') %?></dt> + <dd><?% gettext('Here you can set the localization VDRAdmin-AM should use.') %?></dd> + <dt><?% gettext('Save settings on exit:') %?></dt> + <dd><?% gettext('With this option the settings will be saved if VDRAdmin-AM exits. This will also save settings not available on the "Configuration" menu like interval and size in TV, sorting in the lists and current view in "What\'s on now".') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="vdr" name="vdr"></a><h3><%! VDR !%></h3> + <div class="group"><a id="vdr" name="vdr"></a><h3><?% gettext('VDR') %?></h3> <dl> - <dt><%! Number of DVB cards: !%></dt> - <dd><%! The number of DVB cards VDR can access. Depending on this value VDRAdmin-AM will calculate critical timers in the <span class="ref_menu">Timer</span> menu. !%></dd> - <dt><%! Path to recordings: !%></dt> - <dd><%! The path to VDR's recordings. It's used so that VDRAdmin-AM can locate the recordings when using <span class="ref_label">Recordings Streaming</span> and <span class="ref_file">reccmds.conf</span> in the <span class="ref_menu">Recordings</span> menu. !%></dd> - <dt><%! Path to configuration files: !%></dt> - <dd><%! The path where VDR's configuration files are located. If this directory contains the file <span class="ref_file">reccmds.conf</span> its content is shown in a selectbox in the <span class="ref_menu">Recordings</span> menu. !%></dd> - <dt><%! Path to EPG images: !%></dt> - <dd><%! The path where the EPG images are stored. !%></dd> + <dt><?% gettext('Number of DVB cards:') %?></dt> + <dd><?% gettext('The number of DVB cards VDR can access. Depending on this value VDRAdmin-AM will calculate critical timers in the <span class="ref_menu">Timer</span> menu.') %?></dd> + <dt><?% gettext('Path to recordings:') %?></dt> + <dd><?% gettext('The path to VDR\'s recordings. It\'s used so that VDRAdmin-AM can locate the recordings when using <span class="ref_label">Recordings Streaming</span> and <span class="ref_file">reccmds.conf</span> in the <span class="ref_menu">Recordings</span> menu.') %?></dd> + <dt><?% gettext('Path to configuration files:') %?></dt> + <dd><?% gettext('The path where VDR\'s configuration files are located. If this directory contains the file <span class="ref_file">reccmds.conf</span> its content is shown in a selectbox in the <span class="ref_menu">Recordings</span> menu.') %?></dd> + <dt><?% gettext('Path to EPG images:') %?></dt> + <dd><?% gettext('The path where the EPG images are stored.') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="identification" name="identification"></a><h3><%! Identification !%></h3> + <div class="group"><a id="identification" name="identification"></a><h3><?% gettext('Identification') %?></h3> <dl> - <dt><%! Username: !%></dt> - <dd><%! The username for the main user, i.e. the user having the most privileges. !%></dd> - <dt><%! Password: !%></dt> - <dd><%! The main user's password. !%></dd> - <dt><%! Guest Account: !%></dt> - <dd><%! If you want a user account having only limited privileges, this is for you. The guest user cannot modify anything, it's only allowed to view the EPG, timers, AutoTimers and recordings listings. !%></dd> - <dt><%! Guest Username: !%></dt> - <dd><%! The username for the guest user. !%></dd> - <dt><%! Guest Password: !%></dt> - <dd><%! The guest user's password. !%></dd> + <dt><?% gettext('Username:') %?></dt> + <dd><?% gettext('The username for the main user, i.e. the user having the most privileges.') %?></dd> + <dt><?% gettext('Password:') %?></dt> + <dd><?% gettext('The main user\'s password.') %?></dd> + <dt><?% gettext('Guest Account:') %?></dt> + <dd><?% gettext('If you want a user account having only limited privileges, this is for you. The guest user cannot modify anything, it\'s only allowed to view the EPG, timers, AutoTimers and recordings listings.') %?></dd> + <dt><?% gettext('Guest Username:') %?></dt> + <dd><?% gettext('The username for the guest user.') %?></dd> + <dt><?% gettext('Guest Password:') %?></dt> + <dd><?% gettext('The guest user\'s password.') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="timeline" name="timeline"></a><h3><%! Timeline !%></h3> + <div class="group"><a id="timeline" name="timeline"></a><h3><?% gettext('Timeline') %?></h3> <dl> - <dt><%! Hours: !%></dt> - <dd><%! The number of hours to show in the timeline. !%></dd> - <dt><%! Times: !%></dt> - <dd><%! A comma separated list of times in <strong>hh:mm</strong> format that appear in the selectbox placed at the top. !%></dd> - <dt><%! Tooltips: !%></dt> - <dd><%! Here you can (de-)activate the tooltips. !%></dd> + <dt><?% gettext('Hours:') %?></dt> + <dd><?% gettext('The number of hours to show in the timeline.') %?></dd> + <dt><?% gettext('Times:') %?></dt> + <dd><?% gettext('A comma separated list of times in <strong>hh:mm</strong> format that appear in the selectbox placed at the top.') %?></dd> + <dt><?% gettext('Tooltips:') %?></dt> + <dd><?% gettext('Here you can (de-)activate the tooltips.') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="autotimer" name="autotimer"></a><h3><%! AutoTimer !%></h3> + <div class="group"><a id="autotimer" name="autotimer"></a><h3><?% gettext('AutoTimer') %?></h3> <dl> - <dt><%! Active: !%></dt> - <dd><%! Activate or deactivate the AutoTimer function. !%></dd> - <dt><%! Timeout: !%></dt> - <dd><%! The interval, the the EPG data is checked for updating the AutoTimers. !%></dd> - <dt><%! Priority: !%></dt> - <dd><%! An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording. !%></dd> - <dt><%! Lifetime: !%></dt> - <dd><%! The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by. !%></dd> - <dt><%! Send email after programming timer: !%></dt> - <dd><%! VDRAdmin-AM will send an email whenever an event matches an AutoTimer and a timer has been programmed if you enable this feature. !%></dd> - <dt><%! Send email as: !%></dt> - <dd><%! Here you set the sending email address of the generated email. !%></dd> - <dt><%! Send email to: !%></dt> - <dd><%! The email address the email is sent to. !%></dd> - <dt><%! Mail server: !%></dt> - <dd><%! The outgoing mail server. !%></dd> - <dt><%! SMTPAuth user: !%></dt> - <dd><%! If you need to authenticate yourself at the outgoing mail server, you have to supply the username and the password below. Leaving this field empty will disable SMTPAuth. !%> - <dt><%! SMTPAuth password: !%></dt> - <dd><%! The password for the SMTPAuth user. !%></dd> - <dt><%! Tooltips: !%></dt> - <dd><%! Here you can (de-)activate the tooltips. !%></dd> + <dt><?% gettext('Active:') %?></dt> + <dd><?% gettext('Activate or deactivate the AutoTimer function.') %?></dd> + <dt><?% gettext('Timeout:') %?></dt> + <dd><?% gettext('The interval, the the EPG data is checked for updating the AutoTimers.') %?></dd> + <dt><?% gettext('Priority:') %?></dt> + <dd><?% gettext('An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording.') %?></dd> + <dt><?% gettext('Lifetime:') %?></dt> + <dd><?% gettext('The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by.') %?></dd> + <dt><?% gettext('Send email after programming timer:') %?></dt> + <dd><?% gettext('VDRAdmin-AM will send an email whenever an event matches an AutoTimer and a timer has been programmed if you enable this feature.') %?></dd> + <dt><?% gettext('Send email as:') %?></dt> + <dd><?% gettext('Here you set the sending email address of the generated email.') %?></dd> + <dt><?% gettext('Send email to:') %?></dt> + <dd><?% gettext('The email address the email is sent to.') %?></dd> + <dt><?% gettext('Mail server:') %?></dt> + <dd><?% gettext('The outgoing mail server.') %?></dd> + <dt><?% gettext('SMTPAuth user:') %?></dt> + <dd><?% gettext('If you need to authenticate yourself at the outgoing mail server, you have to supply the username and the password below. Leaving this field empty will disable SMTPAuth.') %?> + <dt><?% gettext('SMTPAuth password:') %?></dt> + <dd><?% gettext('The password for the SMTPAuth user.') %?></dd> + <dt><?% gettext('Tooltips:') %?></dt> + <dd><?% gettext('Here you can (de-)activate the tooltips.') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="timer" name="timer"></a><h3><%! Timer !%></h3> + <div class="group"><a id="timer" name="timer"></a><h3><?% gettext('Timer') %?></h3> <dl> - <dt><%! Priority: !%></dt> - <dd><%! An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording. !%></dd> - <dt><%! Lifetime: !%></dt> - <dd><%! The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by. !%></dd> - <dt><%! Time Margin at Start: !%></dt> - <dd><%! The number of minutes VDRAdmin-AM subtracts from the broadcasts start time found in the EPG. This value is used for timers programmed by AutoTimer and timers manually programmed when pressing "Record" in any EPG view. !%></dd> - <dt><%! Time Margin at Stop: !%></dt> - <dd><%! The number of minutes VDRAdmin-AM adds to the broadcasts stop time found in the EPG. This value is used for timers programmed by AutoTimer and timers manually programmed when pressing "Record" in any EPG view. !%></dd> - <dt><%! Tooltips in timeline: !%></dt> - <dd><%! Here you can (de-)activate the tooltips in the timeline. !%></dd> - <dt><%! Tooltips in list: !%></dt> - <dd><%! Here you can (de-)activate the tooltips in the list. !%></dd> -<!-- <dt><%! Add summary to new timers: !%></dt> - <dd><%! If you don't want VDRAdmin-AM to add the summary taken from EPG to new timers you can switch it off here. !%></dd>--> + <dt><?% gettext('Priority:') %?></dt> + <dd><?% gettext('An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording.') %?></dd> + <dt><?% gettext('Lifetime:') %?></dt> + <dd><?% gettext('The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by.') %?></dd> + <dt><?% gettext('Time Margin at Start:') %?></dt> + <dd><?% gettext('The number of minutes VDRAdmin-AM subtracts from the broadcasts start time found in the EPG. This value is used for timers programmed by AutoTimer and timers manually programmed when pressing "Record" in any EPG view.') %?></dd> + <dt><?% gettext('Time Margin at Stop:') %?></dt> + <dd><?% gettext('The number of minutes VDRAdmin-AM adds to the broadcasts stop time found in the EPG. This value is used for timers programmed by AutoTimer and timers manually programmed when pressing "Record" in any EPG view.') %?></dd> + <dt><?% gettext('Tooltips in timeline:') %?></dt> + <dd><?% gettext('Here you can (de-)activate the tooltips in the timeline.') %?></dd> + <dt><?% gettext('Tooltips in list:') %?></dt> + <dd><?% gettext('Here you can (de-)activate the tooltips in the list.') %?></dd> +<!-- <dt><?% gettext('Add summary to new timers:') %?></dt> + <dd><?% gettext('If you don\'t want VDRAdmin-AM to add the summary taken from EPG to new timers you can switch it off here.') %?></dd>--> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="streaming" name="streaming"></a><h3><%! Streaming !%></h3> + <div class="group"><a id="streaming" name="streaming"></a><h3><?% gettext('Streaming') %?></h3> <dl> - <dt><%! Live Streaming: !%></dt> - <dd><%! Enable or disable live streaming using the <a href="http://www.magoa.net/linux/">streamdev plugin</a>. You also have to set the correct <span class="ref_label">HTTP Port for Streamdev</span> below. !%></dd> - <dt><%! HTTP Port of Streamdev (also possible 3000/ts): !%></dt> - <dd><%! Here you have to set the port number your VDR's streamdev server listens for connections. Additionally you can also provide the stream type you like to use. !%></dd> - <dt><%! Recordings Streaming: !%></dt> - <dd><%! Enable or disable streaming of recordings.<br />Well actually this is no real "streaming", but you have to setup your workstation so that it can access VDR's recordings. You can use for example Samba or NFS for this. VDRAdmin-AM simply generates a playlist that contains all parts of the recording and sends this to your browser. If your browser and media player are configured correctly you will see the recording on your workstation's display. !%></dd> - <dt><%! Path to VDR Recordings on your workstation: !%></dt> - <dd><%! This is the path where your workstation can access VDR's recordings. This depends on your VDR and workstation setup, for example "\\vdr\videos" or "V:\" (on Windows) or "/mnt/videos" (on Linux). !%></dd> - <dt><%! MIME type for live streaming: !%></dt> - <dd><%! The MIME type to send when using live streaming. Defaults to "video/x-mpegurl". !%></dd> - <dt><%! Suffix for live streaming: !%></dt> - <dd><%! The suffix to use for live streaming. Defaults to "m3u". !%></dd> - <dt><%! MIME type for recordings streaming: !%></dt> - <dd><%! The MIME type to send when using recordings streaming. Defaults to "video/x-mpegurl". !%></dd> - <dt><%! Suffix for recordings streaming: !%></dt> - <dd><%! The suffix to use for recordings streaming. Defaults to "m3u". !%></dd> + <dt><?% gettext('Live Streaming:') %?></dt> + <dd><?% gettext('Enable or disable live streaming using the <a href="http://www.magoa.net/linux/">streamdev plugin</a>. You also have to set the correct <span class="ref_label">HTTP Port for Streamdev</span> below.') %?></dd> + <dt><?% gettext('HTTP Port of Streamdev (also possible 3000/ts):') %?></dt> + <dd><?% gettext('Here you have to set the port number your VDR\'s streamdev server listens for connections. Additionally you can also provide the stream type you like to use.') %?></dd> + <dt><?% gettext('Recordings Streaming:') %?></dt> + <dd><?% gettext('Enable or disable streaming of recordings.<br />Well actually this is no real "streaming", but you have to setup your workstation so that it can access VDR\'s recordings. You can use for example Samba or NFS for this. VDRAdmin-AM simply generates a playlist that contains all parts of the recording and sends this to your browser. If your browser and media player are configured correctly you will see the recording on your workstation\'s display.') %?></dd> + <dt><?% gettext('Path to VDR Recordings on your workstation:') %?></dt> + <dd><?% gettext('This is the path where your workstation can access VDR\'s recordings. This depends on your VDR and workstation setup, for example "\\vdr\videos" or "V:\" (on Windows) or "/mnt/videos" (on Linux).') %?></dd> + <dt><?% gettext('MIME type for live streaming:') %?></dt> + <dd><?% gettext('The MIME type to send when using live streaming. Defaults to "video/x-mpegurl".') %?></dd> + <dt><?% gettext('Suffix for live streaming:') %?></dt> + <dd><?% gettext('The suffix to use for live streaming. Defaults to "m3u".') %?></dd> + <dt><?% gettext('MIME type for recordings streaming:') %?></dt> + <dd><?% gettext('The MIME type to send when using recordings streaming. Defaults to "video/x-mpegurl".') %?></dd> + <dt><?% gettext('Suffix for recordings streaming:') %?></dt> + <dd><?% gettext('The suffix to use for recordings streaming. Defaults to "m3u".') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="expert" name="expert"></a><h3><%! Expert !%></h3> - <%! <p>This section is for experts <strong>only</strong>, i.e. you know what you are doing!</p> !%> + <div class="group"><a id="expert" name="expert"></a><h3><?% gettext('Expert') %?></h3> + <?% gettext('<p>This section is for experts <strong>only</strong>, i.e. you know what you are doing!</p>') %?> <dl> - <dt><%! Read EPG directly using epg.data: !%></dt> - <dd><%! Accessing VDR's EPG through VDR's SVDRPort seems to block VDR for some time. If this option is activated VDRAdmin-AM will read the <span class="ref_file">epg.data</span> file directly so that VDR doesn't get blocked. !%></dd> - <dt><%! epg.data filename: !%></dt> - <dd><%! If you've enabled the option above you need to tell VDRAdmin-AM where the <span class="ref_file">epg.data</span> file is located. !%></dd> - <dt><%! VFAT: !%></dt> - <dd><%! If you have compiled VDR with the VFAT define you have to enable this option. If this option is set to the wrong value, you may have problems with certain recordings if you want to stream them or run reccmds on them. !%></dd> + <dt><?% gettext('Read EPG directly using epg.data:') %?></dt> + <dd><?% gettext('Accessing VDR\'s EPG through VDR\'s SVDRPort seems to block VDR for some time. If this option is activated VDRAdmin-AM will read the <span class="ref_file">epg.data</span> file directly so that VDR doesn\'t get blocked.') %?></dd> + <dt><?% gettext('epg.data filename:') %?></dt> + <dd><?% gettext('If you\'ve enabled the option above you need to tell VDRAdmin-AM where the <span class="ref_file">epg.data</span> file is located.') %?></dd> + <dt><?% gettext('VFAT:') %?></dt> + <dd><?% gettext('If you have compiled VDR with the VFAT define you have to enable this option. If this option is set to the wrong value, you may have problems with certain recordings if you want to stream them or run reccmds on them.') %?></dd> </dl> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> - <div class="group"><a id="channels" name="channels"></a><h3><%! Channel Selections !%></h3> - <%! <p>If you want to limit the number of channels used in some parts of VDRAdmin-AM, this is for you!</p> + <div class="group"><a id="channels" name="channels"></a><h3><?% gettext('Channel Selections') %?></h3> + <?% gettext('<p>If you want to limit the number of channels used in some parts of VDRAdmin-AM, this is for you!</p> <p>Use the radio buttons to activate or deactivate the wanted channels in the named menu.</p> - <p>To add channels to the list of wanted channels you have to select them in the left side selectbox and click <input type="submit" class="submit" value=">>>>>"/>. If you want to remove channels from the list of wanted channels you have to select them in the right side selectbox and click <input type="submit" class="submit" value="<<<<<"/>.</p> !%> - <div class="top_link">[<a href="#top"><%! Top !%></a>]</div> + <p>To add channels to the list of wanted channels you have to select them in the left side selectbox and click <input type="submit" class="submit" value=">>>>>"/>. If you want to remove channels from the list of wanted channels you have to select them in the right side selectbox and click <input type="submit" class="submit" value="<<<<<"/>.</p>') %?> + <div class="top_link">[<a href="#top"><?% gettext('Top') %?></a>]</div> </div> </td> </tr> diff --git a/template/default/help_no.html b/template/default/help_no.html index 48e8d0f..c98f917 100644 --- a/template/default/help_no.html +++ b/template/default/help_no.html @@ -2,23 +2,23 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! No Help Available !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('No Help Available') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="no" class="help" onload="window.focus()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! No Help Available !%></h2></td> + <td><h2><?% gettext('No Help Available') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>No help available yet. For adding or changing text please contact <a href="mailto:mail@andreas.vdr-developer.org">mail@andreas.vdr-developer.org</a>.</p> !%> + <?% gettext('<p>No help available yet. For adding or changing text please contact <a href="mailto:mail@andreas.vdr-developer.org">mail@andreas.vdr-developer.org</a>.</p>') %?> </td> </tr> </table> diff --git a/template/default/help_rec_list.html b/template/default/help_rec_list.html index d507363..ba8d0c7 100644 --- a/template/default/help_rec_list.html +++ b/template/default/help_rec_list.html @@ -2,24 +2,24 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! Recordings !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('Recordings') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="rec_list" class="help" onload="window.focus()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! Recordings !%></h2></td> + <td><h2><?% gettext('Recordings') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>Here you will find a listing of recordings known to VDR. The headline will also show you VDR's total and free disk space.</p> - <p>The listing showing you some information on the recordings. You can change the list's sorting by clicking the columns heading. Above the list you'll see the navigation path. If you want to view the contents of previous folders you'll have to click on its name in that path.</p> + <?% gettext('<p>Here you will find a listing of recordings known to VDR. The headline will also show you VDR\'s total and free disk space.</p> + <p>The listing showing you some information on the recordings. You can change the list\'s sorting by clicking the columns heading. Above the list you\'ll see the navigation path. If you want to view the contents of previous folders you\'ll have to click on its name in that path.</p> <p>Each row contains this information: <dl> <dt>Date</dt> @@ -27,7 +27,7 @@ <dt>Time</dt> <dd>The time when the recording has been done. In case of folders this will show the number of <strong>new</strong> recordings the folder contains.</dd> <dt>Name</dt> - <dd>The recording's or folder's name. Click it to show the recording's summary or descend into the folder.</dd> + <dd>The recording\'s or folder\'s name. Click it to show the recording\'s summary or descend into the folder.</dd> <dt>Rename (<img src="bilder/edit.png" alt="edit" />)</dt> <dd>Rename a recording.<br /><h4>Note:</h4>This only works if VDR has the <u>RENR</u> SVDRPort command which is no core VDR feature but is available through a patch. <span class="ref_file">vdr-aio21_svdrprename.patch</span> or <span class="ref_file">enAIO-v2.2+</span> provide this command.</dd> <dt>Delete (<img src="bilder/delete.png" alt="delete" />)</dt> @@ -37,8 +37,8 @@ </dl> </p> <p>In addition to these functions you can delete a number of recordings at once by checking the box in the last but one column of those recordings and clicking <input type="submit" class="submit" value="Delete Selected Recordings"/>.</p> - <p>If you've set the path the VDR's configuration files and have entries in VDR's <span class="ref_file">reccmds.conf</span> you can run those commands for the selected recording by selecting the wanted command in the select box locate next to <span class="ref_label">Commands:</span> and pressing the <input type="submit" class="submit" value="Run"/> button.</p> - <p>Use <input type="submit" class="submit" value="Refresh"/> to force reloading of VDR's recordings listing.</p> !%> + <p>If you\'ve set the path the VDR\'s configuration files and have entries in VDR\'s <span class="ref_file">reccmds.conf</span> you can run those commands for the selected recording by selecting the wanted command in the select box locate next to <span class="ref_label">Commands:</span> and pressing the <input type="submit" class="submit" value="Run"/> button.</p> + <p>Use <input type="submit" class="submit" value="Refresh"/> to force reloading of VDR\'s recordings listing.</p>') %?> </td> </tr> </table> diff --git a/template/default/help_timer_list.html b/template/default/help_timer_list.html index a298b2d..7d8e11c 100644 --- a/template/default/help_timer_list.html +++ b/template/default/help_timer_list.html @@ -2,51 +2,51 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! Timer !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('Timer') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="timer_list" class="help" onload="window.focus()"> <form onsubmit="return false;" action="help_timer_list.html"> <input type="hidden" name="aktion" value="show_help"/> - <input type="hidden" name="area" value="<tmpl_var area>"/> + <input type="hidden" name="area" value="<?% area %?>"/> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! Timer !%></h2></td> + <td><h2><?% gettext('Timer') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>Here you will find a listing of timers known to VDR.</p> - <p>On top you will find a chart showing a day's timers graphically. This provides an quick overview on what's going on at the specified day and helps you in finding conflicting timers. Moving the mouse cursor above any timer box will display a tooltip containing the timer's title, priority, lifetime and duration.</p> - <p>Below the chart you'll find the timers list showing you some information on the timers. You can change the list's sorting by clicking the columns heading.</p> + <?% gettext('<p>Here you will find a listing of timers known to VDR.</p> + <p>On top you will find a chart showing a day\'s timers graphically. This provides an quick overview on what\'s going on at the specified day and helps you in finding conflicting timers. Moving the mouse cursor above any timer box will display a tooltip containing the timer\'s title, priority, lifetime and duration.</p> + <p>Below the chart you\'ll find the timers list showing you some information on the timers. You can change the list\'s sorting by clicking the columns heading.</p> <p>For each timer you have the following options: <dl> <dt>Set its state</dt> <dd>By clicking on "Yes", "No", "VPS" or "Auto" in the "Active" column.</dd> <dt>Quickly view its priority and lifetime</dt> - <dd>By pointing the mouse cursor to the timer's title.</dd> + <dd>By pointing the mouse cursor to the timer\'s title.</dd> <dt>View its EPG entry</dt> - <dd>Timers that have set <span class="ref_label">AutoTimer Checking</span> to "Transmission Identification" will show you the corresponding EPG entry if you click on the timer's title.</dd> + <dd>Timers that have set <span class="ref_label">AutoTimer Checking</span> to "Transmission Identification" will show you the corresponding EPG entry if you click on the timer\'s title.</dd> <dt>Edit the timer</dt> <dd>You can edit a timer by clicking <img src="bilder/edit.png" alt="edit" />.</dd> <dt>Delete the timer</dt> <dd>To delete a timer you click <img src="bilder/delete.png" alt="delete" />.</dd> </dl> </p> - <p>Each timer's state is indicated by differently coloured boxes (in the chart view) or images (in the list view):<br /> + <p>Each timer\'s state is indicated by differently coloured boxes (in the chart view) or images (in the list view):<br /> <span class="color_ok"> </span> / <img src="bilder/poempl_gruen.png" alt="on" align="middle" /> Timer is OK and will record.<br /> - <span class="color_collision"> </span> / <img src="bilder/poempl_gelb.png" alt="problem" align="middle" /> Timer conflicts with other timers. That's not critical, as long as you have enough DVB cards for the parallel recordings.<br /> + <span class="color_collision"> </span> / <img src="bilder/poempl_gelb.png" alt="problem" align="middle" /> Timer conflicts with other timers. That\'s not critical, as long as you have enough DVB cards for the parallel recordings.<br /> <span class="color_conflict"> </span> / <img src="bilder/poempl_rot.png" alt="impossible" align="middle" /> Timer is critical and will most likely <strong>not</strong> record.<br /> <span class="color_inactive"> </span> / <img src="bilder/poempl_grau.png" alt="inactive" align="middle" /> Timer is not active. </p> <p>In addition to these functions you can add a new timer by clicking <input type="submit" class="submit" value="New Timer"/> at the top and you can delete a number of timers at once by checking the box in the last column of those timers and clicking <input type="submit" class="submit" value="Delete Selected Timers"/>.</p> - <p>You can <input type="submit" class="submit" value="activate"/> and <input type="submit" class="submit" value="inactivate"/> selected timers.</p> !%> + <p>You can <input type="submit" class="submit" value="activate"/> and <input type="submit" class="submit" value="inactivate"/> selected timers.</p>') %?> </td> </tr> </table> diff --git a/template/default/help_timer_new.html b/template/default/help_timer_new.html index 20d552e..c6c85cb 100644 --- a/template/default/help_timer_new.html +++ b/template/default/help_timer_new.html @@ -5,59 +5,59 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! Edit Timer !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('Edit Timer') %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="timer_new" class="help" onload="window.focus()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="help" class="group"> <tr class="heading"> - <td><h2><%! Edit Timer !%></h2></td> + <td><h2><?% gettext('Edit Timer') %?></h2></td> </tr> <tr class="row_even"> <td> - <%! <p>Here you can edit a timer's settings.</p> !%> + <?% gettext('<p>Here you can edit a timer\'s settings.</p>') %?> <dl> - <dt><%! Timer Active: !%></dt> - <dd><%! Activate or deactivate this timer. Deactivated timers are still stored in the timer list so that they can be activated again, but they do not record anything meanwhile. !%></dd> - <dt><%! AutoTimer Checking: !%></dt> - <dd><%! Depending on how this timer has been programmed you have up to three possible settings: !%> + <dt><?% gettext('Timer Active:') %?></dt> + <dd><?% gettext('Activate or deactivate this timer. Deactivated timers are still stored in the timer list so that they can be activated again, but they do not record anything meanwhile.') %?></dd> + <dt><?% gettext('AutoTimer Checking:') %?></dt> + <dd><?% gettext('Depending on how this timer has been programmed you have up to three possible settings:') %?> <dl> - <dt><%! Transmission Identification !%></dt> - <dd><%! Monitor this timer using the identification provided in the EPG. Please note that this only works if the provided identification is a fix and unique value! This option is not available with timers programmed in VDR. !%></dd> - <dt><%! Time !%></dt> - <dd><%! Monitor this timer using the start and stop time. !%></dd> - <dt><%! off !%></dt> - <dd><%! Do not monitor this timer. !%></dd> + <dt><?% gettext('Transmission Identification') %?></dt> + <dd><?% gettext('Monitor this timer using the identification provided in the EPG. Please note that this only works if the provided identification is a fix and unique value! This option is not available with timers programmed in VDR.') %?></dd> + <dt><?% gettext('Time') %?></dt> + <dd><?% gettext('Monitor this timer using the start and stop time.') %?></dd> + <dt><?% gettext('off') %?></dt> + <dd><?% gettext('Do not monitor this timer.') %?></dd> </dl> </dd> - <dt><%! Channel: !%></dt> - <dd><%! The channel to record. !%></dd> - <dt><%! Day Of Recording: !%></dt> - <dd><%! The day when the timer should get active. You can enter the day in two formats: + <dt><?% gettext('Channel:') %?></dt> + <dd><?% gettext('The channel to record.') %?></dd> + <dt><?% gettext('Day Of Recording:') %?></dt> + <dd><?% gettext('The day when the timer should get active. You can enter the day in two formats: <ul> <li>Two digits (DD). This will use the current month and year.</li> <li>ISO norm (YYYY-MM-DD). Program your timers as far in the future as you like.</li> </ul> - In case you want to program a repeating timer you can use the seven checkboxes below the text field. Check the box for each day you want the timer to get active. !%> + In case you want to program a repeating timer you can use the seven checkboxes below the text field. Check the box for each day you want the timer to get active.') %?> </dd> - <dt><%! Start Time: !%></dt> - <dd><%! This is the time when the timer should start recording. The first text field is for "hour", the second for "minute". !%></dd> - <dt><%! End Time: !%></dt> - <dd><%! This is the time when the timer should stop recording. The first text field is for "hour", the second for "minute". !%></dd> - <dt><%! Priority: !%></dt> - <dd><%! An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording. !%></dd> - <dt><%! Lifetime: !%></dt> - <dd><%! The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by. !%></dd> - <dt><%! Title of Recording: !%></dt> - <dd><%! The <strong>file name</strong> this timer will give to a recording. If the name shall contain subdirectories, these have to be delimited by '~' (since the '/' character may be part of a regular programme name).<br /><br />The special keywords <strong>TITLE</strong> and <strong>EPISODE</strong>, if present, will be replaced by the title and episode information from the EPG data at the time of recording (if that data is available). If at the time of recording either of these cannot be determined, <strong>TITLE</strong> will default to the channel name, and <strong>EPISODE</strong> will default to a blank. !%></dd> - <dt><%! Summary: !%></dt> - <dd><%! Arbitrary text that describes the recording made by this timer. If this field is not empty, its contents will be written into the <span class="ref_file">summary.vdr</span> or <span class="ref_file">info.vdr</span> file of the recording. !%></dd> + <dt><?% gettext('Start Time:') %?></dt> + <dd><?% gettext('This is the time when the timer should start recording. The first text field is for "hour", the second for "minute".') %?></dd> + <dt><?% gettext('End Time:') %?></dt> + <dd><?% gettext('This is the time when the timer should stop recording. The first text field is for "hour", the second for "minute".') %?></dd> + <dt><?% gettext('Priority:') %?></dt> + <dd><?% gettext('An integer in the range <strong>0...99</strong>, defining the <strong>priority</strong> of this timer and of recordings created by this timer. <strong>0</strong> represents the lowest value, <strong>99</strong> the highest. The priority is used to decide which timer shall be started in case there are two or more timers with the exact same <strong>start</strong> time. The first timer in the list with the highest priority will be used.<br /><br />This value is also stored with the recording and is later used to decide which recording to remove from disk in order to free space for a new recording. If the disk runs full and a new recording needs more space, an existing recording with the lowest priority (and which has exceeded its guaranteed <strong>lifetime</strong>) will be removed.<br /><br />If all available DVB cards are currently occupied, a timer with a higher priority will interrupt the timer with the lowest priority in order to start recording.') %?></dd> + <dt><?% gettext('Lifetime:') %?></dt> + <dd><?% gettext('The <strong>guaranteed</strong> lifetime (in days) of a recording created by this timer. <strong>0</strong> means that this recording may be automatically deleted at any time by a new recording with higher priority. <strong>99</strong> means that this recording will never be automatically deleted. Any number in the range <strong>1...98</strong> means that this recording may not be automatically deleted in favour of a new recording, until the given number of days since the <strong>start</strong> time of the recording has passed by.') %?></dd> + <dt><?% gettext('Title of Recording:') %?></dt> + <dd><?% gettext('The <strong>file name</strong> this timer will give to a recording. If the name shall contain subdirectories, these have to be delimited by \'~\' (since the \'/\' character may be part of a regular programme name).<br /><br />The special keywords <strong>TITLE</strong> and <strong>EPISODE</strong>, if present, will be replaced by the title and episode information from the EPG data at the time of recording (if that data is available). If at the time of recording either of these cannot be determined, <strong>TITLE</strong> will default to the channel name, and <strong>EPISODE</strong> will default to a blank.') %?></dd> + <dt><?% gettext('Summary:') %?></dt> + <dd><?% gettext('Arbitrary text that describes the recording made by this timer. If this field is not empty, its contents will be written into the <span class="ref_file">summary.vdr</span> or <span class="ref_file">info.vdr</span> file of the recording.') %?></dd> </dl> </td> </tr> diff --git a/template/default/index.html b/template/default/index.html index ac7cf72..a88f62b 100644 --- a/template/default/index.html +++ b/template/default/index.html @@ -2,23 +2,23 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM <tmpl_var version> (<tmpl_var host>)</title> - <link href="bilder/favicon.ico" rel="shortcut icon" /> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM <?% version %?> (<?% host %?>)</title> + <link href="favicon.ico" rel="shortcut icon" /> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <frameset border="0" cols="155,*" frameborder="no" framespacing="0"> <frame name="nav" noresize src="navigation.html" /> - <frame name="main" noresize src="<tmpl_var loginpage>" /> + <frame name="main" noresize src="<?% loginpage %?>" /> <noframes> <body> - <p><%! Your Browser does not support frames! !%></p> + <p><?% gettext('Your Browser does not support frames!') %?></p> </body> </noframes> </frameset> diff --git a/template/default/navigation.html b/template/default/navigation.html index 2cbd194..e6cd932 100644 --- a/template/default/navigation.html +++ b/template/default/navigation.html @@ -1,12 +1,12 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> <title>VDRAdmin-AM</title> <link type="text/css" href="style.css" rel="stylesheet" media="screen" /> - <tmpl_if usercss> + <?% IF usercss %?> <link type="text/css" href="user.css" rel="stylesheet" media="screen" /> - </tmpl_if> + <?% END %?> <script type="text/javascript"> <!-- @@ -26,45 +26,47 @@ </div> <div class="nav_bar"> <div class="navi" id="prog_summary"> - <a href="vdradmin.pl?aktion=prog_summary" target="main"><%! What's On Now? !%></a> + <a href="vdradmin.pl?aktion=prog_summary" target="main"><?% gettext('What\'s On Now?') %?></a> </div> <div class="navi" id="prog_list2"> - <a href="vdradmin.pl?aktion=prog_list2" target="main"><%! Playing Today? !%></a> + <a href="vdradmin.pl?aktion=prog_list2" target="main"><?% gettext('Playing Today?') %?></a> </div> <div class="navi" id="prog_timeline"> - <a href="vdradmin.pl?aktion=prog_timeline" target="main"><%! Timeline !%></a> + <a href="vdradmin.pl?aktion=prog_timeline" target="main"><?% gettext('Timeline') %?></a> </div> <div class="navi" id="prog_list"> - <a href="vdradmin.pl?aktion=prog_list" target="main"><%! Channels !%></a> + <a href="vdradmin.pl?aktion=prog_list" target="main"><?% gettext('Channels') %?></a> </div> <div class="navi" id="timer_list"> - <a href="vdradmin.pl?aktion=timer_list" target="main"><%! Timer !%></a> + <a href="vdradmin.pl?aktion=timer_list" target="main"><?% gettext('Timer') %?></a> </div> +<?% IF features.AUTOTIMER %?> <div class="navi" id="at_timer_list"> - <a href="vdradmin.pl?aktion=at_timer_list" target="main"><%! AutoTimer !%></a> + <a href="vdradmin.pl?aktion=at_timer_list" target="main"><?% gettext('AutoTimer') %?></a> </div> +<?% END %?> <div class="navi" id="rec_list"> - <a href="vdradmin.pl?aktion=rec_list" target="main"><%! Recordings !%></a> + <a href="vdradmin.pl?aktion=rec_list" target="main"><?% gettext('Recordings') %?></a> </div> <div class="navi" id="rc"> - <a href="javascript:rc_open();"><%! Remote Control !%></a> + <a href="javascript:rc_open();"><?% gettext('Remote Control') %?></a> </div> <div class="navi" id="tv"> - <a href="vdradmin.pl?aktion=tv_show" target="main"><%! Watch TV !%></a> + <a href="vdradmin.pl?aktion=tv_show" target="main"><?% gettext('Watch TV') %?></a> </div> <div class="navi" id="commands"> - <a href="vdradmin.pl?aktion=vdr_cmds" target="main"><%! Commands !%></a> + <a href="vdradmin.pl?aktion=vdr_cmds" target="main"><?% gettext('Commands') %?></a> </div> <div class="navi" id="config"> - <a href="vdradmin.pl?aktion=config" target="main"><%! Configuration !%></a> + <a href="vdradmin.pl?aktion=config" target="main"><?% gettext('Configuration') %?></a> </div> <div class="navi" id="about"> - <a href="vdradmin.pl?aktion=about" target="main"><%! About !%> / <%! Help !%></a> + <a href="vdradmin.pl?aktion=about" target="main"><?% gettext('About') %?> / <?% gettext('Help') %?></a> </div> <form action="vdradmin.pl" method="get" name="FormName" target="main" class="search"> <input type="text" name="search" /><br /> - <input type="submit" name="submit" value="<%! Search !%>" /> + <input type="submit" name="submit" value="<?% gettext('Search') %?>" / <input type="hidden" name="aktion" value="prog_summary" /> </form> </div> diff --git a/template/default/noauth.html b/template/default/noauth.html index cdfc3f9..2d52b5e 100644 --- a/template/default/noauth.html +++ b/template/default/noauth.html @@ -1,17 +1,17 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><%! Authorization Required !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% gettext('Authorization Required') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <body id="noauth"> - <h1><%! Authorization Required !%></h1> - <p><%! This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g. bad password), or your browser doesn't understand how to supply the credentials required. !%></p> + <h1><?% gettext('Authorization Required') %?></h1> + <p><?% gettext('This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g. bad password), or your browser doesn\'t understand how to supply the credentials required.') %?></p> </body> </html> diff --git a/template/default/noperm.html b/template/default/noperm.html index fdb2289..5d3674a 100644 --- a/template/default/noperm.html +++ b/template/default/noperm.html @@ -1,17 +1,19 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><tmpl_var title></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% title %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css"/> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css"/> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <body id="noperm"> - <h1><tmpl_var h1></h1> - <p><tmpl_var error></p> + <div class="error"> + <h1><?% h1 %?></h1> + <?% error %?> + </div> </body> </html> diff --git a/template/default/prog_detail.html b/template/default/prog_detail.html index f78935a..f35e94f 100644 --- a/template/default/prog_detail.html +++ b/template/default/prog_detail.html @@ -2,20 +2,20 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title><tmpl_var title></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title><?% title %?></title> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> </head> <body id="prog_detail" onload="window.focus()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="group"> <tr class="heading"> <td class="col_content"> - <span class="channel_name"><tmpl_var channel_name></span><tmpl_if date><span class="date_long"><tmpl_var date></span><span class="time_duration"><span class="time_start"><tmpl_var start></span> - <span class="time_stop"><tmpl_var stop></span></span><tmpl_if vps><span class="time_vps"><%! VPS !%> <tmpl_var vps></span></tmpl_if></tmpl_if> + <span class="channel_name"><?% channel_name %?></span><?% IF date %?><span class="date_long"><?% date %?></span><span class="time_duration"><span class="time_start"><?% start %?></span> - <span class="time_stop"><?% stop %?></span></span><?% IF vps %?><span class="time_vps"><?% gettext('VPS') %?> <?% vps %?></span><?% END %?><?% END %?> </td> </tr> <tr class="row_even"> @@ -24,68 +24,54 @@ <tr> <td class="col_buttons"> <span class="action close"> - <a href="javascript:window.close()"><img src="bilder/close.png" border="0" alt="<%! close !%>" onmouseover="window.status='<%! close !%>';return true" title="<%! close !%>" /></a> + <a href="javascript:window.close()"><img src="bilder/close.png" border="0" alt="<?% gettext('close') %?>" onmouseover="window.status='<?% gettext('close') %?>';return true" title="<?% gettext('close') %?>" /></a> </span> - <tmpl_if date> - <tmpl_if switchurl> + <?% IF date %?> + <?% IF switchurl %?> <span class="action switch"> - <a href="javascript:callurl('<tmpl_var switchurl>')"><img src="bilder/view.png" border="0" alt="<%! view !%>" onmouseover="window.status='<%! view !%>';return true" title="<%! view !%>" /></a> + <a href="javascript:callurl('<?% switchurl %?>')"><img src="bilder/view.png" border="0" alt="<?% gettext('view') %?>" onmouseover="window.status='<?% gettext('view') %?>';return true" title="<?% gettext('view') %?>" /></a> </span> - </tmpl_if> - <tmpl_if recurl> + <?% END %?> + <?% IF recurl %?> <span class="action record"> - <a href="javascript:void(opener.location.href='<tmpl_var recurl>');window.close()"><img src="bilder/rec_button.png" border="0" alt="<%! record !%>" onmouseover="window.status='<%! record !%>';return true" title="<%! record !%>" /></a> + <a href="javascript:void(opener.location.href='<?% recurl %?>');window.close()"><img src="bilder/rec_button.png" border="0" alt="<?% gettext('record') %?>" onmouseover="window.status='<?% gettext('record') %?>';return true" title="<?% gettext('record') %?>" /></a> </span> - </tmpl_if> + <?% END %?> <span class="action repeatings"> - <a href="vdradmin.pl?search=<tmpl_var find_title>&aktion=prog_summary&submit=go11" target="main"><img src="bilder/find.png" border="0" alt="<%! search !%>" onmouseover="window.status='<%! search !%>';return true" title="<%! search !%>" /></a> + <a href="vdradmin.pl?search=<?% find_title %?>&aktion=prog_summary&submit=go11" target="main"><img src="bilder/find.png" border="0" alt="<?% gettext('search') %?>" onmouseover="window.status='<?% gettext('search') %?>';return true" title="<?% gettext('search') %?>" /></a> </span> - </tmpl_if> - <tmpl_if imdburl> + <?% END %?> + <?% IF imdburl %?> <span class="action imdb"> - <a href="<tmpl_var imdburl>" target="_blank" title="<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='IMDb';return true" title="IMDb" /></a> + <a href="<?% imdburl %?>" target="_blank" title="<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='IMDb';return true" title="IMDb" /></a> </span> - </tmpl_if> + <?% END %?> </td> <td class="col_epg"> - <div class="epg_title"><tmpl_var title></div> - <tmpl_if subtitle> - <div class="epg_subtitle"><tmpl_var subtitle></div> - </tmpl_if> - <div class="epg_summary"><tmpl_var text></div> - <tmpl_if video> + <div class="epg_title"><?% title %?></div> + <?% IF subtitle %?> + <div class="epg_subtitle"><?% subtitle %?></div> + <?% END %?> + <div class="epg_summary"><?% text %?></div> + <?% IF video %?> <div class="epg_video"> - <h4><%! Video tracks: !%></h4> - <tmpl_var video> - <!-- - <tmpl_loop videox> - <h5><%! Language: !%></h5> <tmpl_var lang> <h5><%! Format: !%></h5> <tmpl_var format><br /> - </tmpl_loop> - --> + <h4><?% gettext('Video tracks:') %?></h4> + <?% video %?> </div> - </tmpl_if> - <tmpl_if audio> + <?% END %?> + <?% IF audio %?> <div class="epg_audio"> - <h4><%! Audio tracks: !%></h4> - <tmpl_var audio> - <!-- - <tmpl_loop audiox> - <h5><%! Language: !%></h5> <tmpl_var lang> - <tmpl_if descr> - <h5><%! Description: !%></h5> <tmpl_var descr> - </tmpl_if> - <br /> - </tmpl_loop> - --> + <h4><?% gettext('Audio tracks:') %?></h4> + <?% audio %?> </div> - </tmpl_if> - <tmpl_if epgimages> + <?% END %?> + <?% IF epgimages %?> <div class="epg_images"> - <tmpl_loop epgimages> - <img src="<tmpl_var image>" alt=""/> - </tmpl_loop> + <?% FOREACH ei = epgimages %?> + <img src="<?% ei.image %?>" alt=""/> + <?% END %?> </div> - </tmpl_if> + <?% END %?> </td> </tr> </table> diff --git a/template/default/prog_list.html b/template/default/prog_list.html index 5bbdd3c..b8308fe 100644 --- a/template/default/prog_list.html +++ b/template/default/prog_list.html @@ -2,34 +2,41 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Channels !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Channels') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript" src="library.js"></script> </head> <body id="prog_list"> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> +<?% IF progname %?> <h1> - <a href="javascript:callurl('<tmpl_var switchurl>');" title="<%! TV select !%>"><tmpl_var progname></a> -<tmpl_if stream_live_on> - <span class="action stream"><a href="<tmpl_var streamurl>" title="<%! Stream !%>"><img src="bilder/stream.png" border="0" alt="<%! Stream !%>" onmouseover="window.status='<%! Stream !%>';return true" title="<%! Stream !%>" /></a></span> -</tmpl_if> + <a href="javascript:callurl('<?% switchurl %?>');" title="<?% gettext('TV select') %?>"><?% progname %?></a> + <?% IF stream_live_on %?> + <span class="action stream"><a href="<?% streamurl %?>" title="<?% gettext('Stream') %?>"><img src="bilder/stream.png" border="0" alt="<?% gettext('Stream') %?>" onmouseover="window.status='<?% gettext('Stream') %?>';return true" title="<?% gettext('Stream') %?>" /></a></span> + <?% END %?> </h1> +<?% ELSE %?> + +<?% END %?> </td> - <td class="col_other"><%! Channel: !%> - <select name="vdr_id" class="submit" onchange="window.open('<tmpl_var url>?aktion=prog_list&vdr_id=' + this.options[this.selectedIndex].value,'main')"> -<tmpl_loop chanloop> - <option value="<tmpl_var vdr_id>" <tmpl_if current>selected</tmpl_if>><tmpl_var name escape="html"></option> -</tmpl_loop> + <td class="col_other"> +<?% IF chanloop.size() > 0 %?> + <?% gettext('Channel:') %?> + <select name="vdr_id" class="submit" onchange="window.open('<?% url %?>?aktion=prog_list&vdr_id=' + this.options[this.selectedIndex].value,'main')"> + <?% FOREACH chan = chanloop %?> + <option value="<?% chan.vdr_id %?>" <?% IF chan.current %?>selected="selected"<?% END %?>><?% chan.name | html %?></option> + <?% END %?> </select> - <input type="submit" class="submit" name="submit" value="<%! Go! !%>" /> + <input type="submit" class="submit" name="submit" value="<?% gettext('Go!') %?>" /> +<?% END %?> </td> </tr> </table> @@ -37,57 +44,61 @@ </form> <div id="content"> -<tmpl_loop loop> - <tmpl_if newd> - <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> - <tr class="heading"> - <td colspan="2"> - <span class="channel_name"><tmpl_var progname></span> - <span class="date_long"><tmpl_var longdate></span> - </td> - <td class="col_navi"><tmpl_if prev_channel><a href="<tmpl_var prev_channel>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /></tmpl_if><tmpl_if next_channel><a href="<tmpl_var next_channel>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /></tmpl_if></td> - </tr> - <tmpl_else> - <tmpl_unless endd> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td class="col_duration"> - <a name="<tmpl_var anchor>"><tmpl_var emit> - <tmpl_var duration></a> - </td> - <td class="col_title"> - <div class="epg_title"> - <tmpl_if infurl> - <a href="javascript:popup('<tmpl_var infurl>');" title="<%! More Information !%>"> - </tmpl_if> - <tmpl_var title> - <tmpl_if infurl> - </a> - </tmpl_if> - </div> - <tmpl_if subtitle> - <div class="epg_subtitle"><tmpl_var subtitle></div> - <tmpl_else> - <br /> - </tmpl_if> - </td> - <td class="col_buttons"> - <span class="action repeatings"><a href="vdradmin.pl?search=<tmpl_var find_title>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<%! Search for other show times !%>" onmouseover="window.status='<%! Search for other show times !%>';return true" title="<%! Search for other show times !%>" /></a></span> - <tmpl_if infurl> - <span class="action info"><a href="javascript:popup('<tmpl_var infurl>');" title="<%! More Information !%>"><img src="bilder/info_button.png" border="0" alt="info" /></a></span> - <tmpl_else> - <span class="action info"><img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<%! No Information !%>" /></span> - </tmpl_if> - <span class="action record"><a href="<tmpl_var recurl>"><img src="bilder/rec_button.png" border="0" alt="record" title="<%! Record !%>" /></a></span> - <tmpl_if imdburl> - <span class="action imdb"><a href="<tmpl_var imdburl>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>';return true" title="<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>" /></a></span> - </tmpl_if> - </td> - </tr> - </tmpl_unless> - </tmpl_if> - <tmpl_if endd> - </table> - </tmpl_if> -</tmpl_loop> +<?% IF loop.size() > 0 %?> + <?% FOREACH bc = loop %?> + <?% IF bc.newd %?> + <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> + <tr class="heading"> + <td colspan="2"> + <span class="channel_name"><?% bc.progname %?></span> + <span class="date_long"><?% bc.longdate %?></span> + </td> + <td class="col_navi"><?% IF bc.prev_channel %?><a href="<?% bc.prev_channel %?>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /><?% END %?><?% IF bc.next_channel %?><a href="<?% bc.next_channel %?>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /><?% END %?></td> + </tr> + <?% ELSE %?> + <?% UNLESS bc.endd %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td class="col_duration"> + <a name="<?% bc.anchor %?>"><?% bc.emit %?> - <?% bc.duration %?></a> + </td> + <td class="col_title"> + <div class="epg_title"> + <?% IF bc.infurl %?> + <a href="javascript:popup('<?% bc.infurl %?>');" title="<?% gettext('More Information') %?>"> + <?% END %?> + <?% bc.title %?> + <?% IF bc.infurl %?> + </a> + <?% END %?> + </div> + <?% IF bc.subtitle %?> + <div class="epg_subtitle"><?% bc.subtitle %?></div> + <?% ELSE %?> + <br /> + <?% END %?> + </td> + <td class="col_buttons"> + <span class="action repeatings"><a href="vdradmin.pl?search=<?% bc.find_title %?>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<?% gettext('Search for other show times') %?>" onmouseover="window.status='<?% gettext('Search for other show times') %?>';return true" title="<?% gettext('Search for other show times') %?>" /></a></span> + <?% IF bc.infurl %?> + <span class="action info"><a href="javascript:popup('<?% bc.infurl %?>');" title="<?% gettext('More Information') %?>"><img src="bilder/info_button.png" border="0" alt="info" /></a></span> + <?% ELSE %?> + <span class="action info"><img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<?% gettext('No Information') %?>" /></span> + <?% END %?> + <span class="action record"><a href="<?% bc.recurl %?>"><img src="bilder/rec_button.png" border="0" alt="record" title="<?% gettext('Record') %?>" /></a></span> + <?% IF bc.imdburl %?> + <span class="action imdb"><a href="<?% bc.imdburl %?>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>';return true" title="<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>" /></a></span> + <?% END %?> + </td> + </tr> + <?% END %?> + <?% END %?> + <?% IF bc.endd %?> + </table> + <?% END %?> + <?% END %?> +<?% ELSE %?> + <div class="warning"><?% gettext('No EPG information available') %?></div> +<?% END %?> </div> </body> diff --git a/template/default/prog_list2.html b/template/default/prog_list2.html index c247819..0a15582 100644 --- a/template/default/prog_list2.html +++ b/template/default/prog_list2.html @@ -2,12 +2,12 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Playing Today !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Playing Today') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <script type="text/javascript" language="JavaScript1.2"> <!-- @@ -21,86 +21,92 @@ </head> <body id="prog_list"> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><tmpl_var title></h1> - <%! starting at !%> - <input type="text" size="5" maxlength="5" value="<tmpl_var now>" name="time"/> - <%! o'clock !%> + <h1><?% title %?></h1> + <?% gettext('starting at') %?> + <input type="text" size="5" maxlength="5" value="<?% now %?>" name="time"/> + <?% gettext('o\'clock') %?> </td> <td class="col_navi"> - <tmpl_if prevdayurl><a href="<tmpl_var prevdayurl>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /></tmpl_if> - <select name="days" size="1" onchange="window.open(this.options[this.selectedIndex].value,'main')"> <tmpl_loop days> - <option value="<tmpl_var id>" <tmpl_if sel>selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> +<?% IF days.size() > 0 %?> + <?% IF prevdayurl %?><a href="<?% prevdayurl %?>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /><?% END %?> + <select name="days" size="1" onchange="window.open(this.options[this.selectedIndex].value,'main')"> <?% FOREACH d = days %?> + <option value="<?% d.id %?>" <?% IF d.sel %?>selected="selected"<?% END %?>><?% d.name %?></option> +<?% END %?> </select> - <tmpl_if nextdayurl><a href="<tmpl_var nextdayurl>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /></tmpl_if> + <?% IF nextdayurl %?><a href="<?% nextdayurl %?>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /><?% END %?> +<?% END %?> </td> </tr> </table> <input type="hidden" name="aktion" value="prog_list2" /> - <input type="hidden" name="day" value="<tmpl_var day>" /> + <input type="hidden" name="day" value="<?% day %?>" /> </form> <div id="content"> -<tmpl_loop loop> - <tmpl_if newd> - <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> - <tr class="heading"> - <td colspan="4"> - <span class="channel_name"><a href="<tmpl_var proglink>" title="<%! Channels !%>"><tmpl_var channel_name></a></span> - <span class="date_long"><tmpl_var longdate></span> - <tmpl_if stream_live_on> - <span class="action stream"><a href="<tmpl_var streamurl>" title="<%! Stream !%>"><img src="bilder/stream.png" border="0" alt="<%! Stream !%>" onmouseover="window.status='<%! Stream !%>';return true" title="<%! Stream !%>" /></a></span> - </tmpl_if> - <span class="action switch"><a href="javascript:callurl('<tmpl_var switchurl>');" title="<%! TV select !%>"><img src="bilder/view.png" border="0" alt="<%! TV select !%>" onmouseover="window.status='<%! TV select !%>';return true" title="<%! TV select !%>" /></a></span> - </td> - </tr> - <tmpl_else> - <tmpl_unless endd> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td class="col_duration"> - <a id="<tmpl_var anchor>" name="<tmpl_var anchor>"><tmpl_var emit> - <tmpl_var duration></a> - </td> - <td class="col_title"> - <div class="epg_title"> - <tmpl_if infurl> - <a href="javascript:popup('<tmpl_var infurl>');" title="<%! More Information !%>"> - </tmpl_if> - <tmpl_var title> - <tmpl_if infurl> - </a> - </tmpl_if> - </div> - <div class="epg_subtitle"> - <tmpl_if subtitle> - <tmpl_var subtitle> - <tmpl_else> - - </tmpl_if> - </div> - </td> - <td class="col_buttons"> - <span class="action repeatings"><a href="vdradmin.pl?search=<tmpl_var find_title>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<%! Search for other show times !%>" onmouseover="window.status='<%! Search for other show times !%>';return true" title="<%! Search for other show times !%>" /></a></span> - <tmpl_if infurl> - <span class="action info"><a href="javascript:popup('<tmpl_var infurl>');"><img src="bilder/info_button.png" border="0" title="<%! More Information !%>" alt="info"/></a></span> - <tmpl_else> - <span class="action info"><img src="bilder/info_button_disabled.png" border="0" title="<%! No Information !%>" alt="noinfo"/></span> - </tmpl_if> - <span class="action record"><a href="<tmpl_var recurl>"><img src="bilder/rec_button.png" border="0" title="<%! Record !%>" alt="record"/></a></span> - <tmpl_if imdburl> - <span class="action imdb"><a href="<tmpl_var imdburl>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>';return true" title="<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>" /></a></span> - </tmpl_if> - </td> - </tr> - </tmpl_unless> - </tmpl_if> - <tmpl_if endd> - </table> - </tmpl_if> -</tmpl_loop> +<?% IF loop.size() > 0 %?> + <?% FOREACH bc = loop %?> + <?% IF bc.newd %?> + <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> + <tr class="heading"> + <td colspan="4"> + <span class="channel_name"><a href="<?% bc.proglink %?>" title="<?% gettext('Channels') %?>"><?% bc.channel_name | html %?></a></span> + <span class="date_long"><?% bc.longdate %?></span> + <?% IF bc.stream_live_on %?> + <span class="action stream"><a href="<?% bc.streamurl %?>" title="<?% gettext('Stream') %?>"><img src="bilder/stream.png" border="0" alt="<?% gettext('Stream') %?>" onmouseover="window.status='<?% gettext('Stream') %?>';return true" title="<?% gettext('Stream') %?>" /></a></span> + <?% END %?> + <span class="action switch"><a href="javascript:callurl('<?% bc.switchurl %?>');" title="<?% gettext('TV select') %?>"><img src="bilder/view.png" border="0" alt="<?% gettext('TV select') %?>" onmouseover="window.status='<?% gettext('TV select') %?>';return true" title="<?% gettext('TV select') %?>" /></a></span> + </td> + </tr> + <?% ELSE %?> + <?% UNLESS bc.endd %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td class="col_duration"> + <a id="<?% bc.anchor %?>" name="<?% bc.anchor %?>"><?% bc.emit %?> - <?% bc.duration %?></a> + </td> + <td class="col_title"> + <div class="epg_title"> + <?% IF bc.infurl %?> + <a href="javascript:popup('<?% bc.infurl %?>');" title="<?% gettext('More Information') %?>"> + <?% END %?> + <?% bc.title %?> + <?% IF bc.infurl %?> + </a> + <?% END %?> + </div> + <div class="epg_subtitle"> + <?% IF bc.subtitle %?> + <?% bc.subtitle %?> + <?% ELSE %?> + + <?% END %?> + </div> + </td> + <td class="col_buttons"> + <span class="action repeatings"><a href="vdradmin.pl?search=<?% bc.find_title %?>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<?% gettext('Search for other show times') %?>" onmouseover="window.status='<?% gettext('Search for other show times') %?>';return true" title="<?% gettext('Search for other show times') %?>" /></a></span> + <?% IF bc.infurl %?> + <span class="action info"><a href="javascript:popup('<?% bc.infurl %?>');"><img src="bilder/info_button.png" border="0" title="<?% gettext('More Information') %?>" alt="info"/></a></span> + <?% ELSE %?> + <span class="action info"><img src="bilder/info_button_disabled.png" border="0" title="<?% gettext('No Information') %?>" alt="noinfo"/></span> + <?% END %?> + <span class="action record"><a href="<?% bc.recurl %?>"><img src="bilder/rec_button.png" border="0" title="<?% gettext('Record') %?>" alt="record"/></a></span> + <?% IF bc.imdburl %?> + <span class="action imdb"><a href="<?% bc.imdburl %?>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>';return true" title="<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>" /></a></span> + <?% END %?> + </td> + </tr> + <?% END %?> + <?% END %?> + <?% IF bc.endd %?> + </table> + <?% END %?> + <?% END %?> +<?% ELSE %?> + <div class="warning"><?% gettext('No EPG information available') %?></div> +<?% END %?> </div> </body> diff --git a/template/default/prog_summary.html b/template/default/prog_summary.html index 8600489..5ace9b7 100644 --- a/template/default/prog_summary.html +++ b/template/default/prog_summary.html @@ -3,126 +3,130 @@ <head> <meta http-equiv="refresh" content="600; URL=vdradmin.pl?aktion=prog_summary" /> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! What's On Now? !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('What\'s On Now?') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript" src="library.js"></script> </head> <body id="prog_summary"> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><tmpl_var title></h1> + <h1><?% title %?></h1> </td> <td class="col_other"> - [<a href="<tmpl_var switchview_url>"><tmpl_var switchview_text></a>] + [<a href="<?% switchview_url %?>"><?% switchview_text %?></a>] </td> -<tmpl_if times> +<?% IF times.size() > 0 %?> <td class="col_other"> - <%! What's on: !%> + <?% gettext('What\'s on:') %?> <select name="select_time" size="1" class="submit" onchange="window.open(this.options[this.selectedIndex].value,'main')"> - <tmpl_loop times> - <option value="<tmpl_var id>" <tmpl_if sel>selected</tmpl_if>><tmpl_var name></option> - </tmpl_loop> + <?% FOREACH time = times %?> + <option value="<?% time.id %?>" <?% IF time.sel %?>selected="selected"<?% END %?>><?% time.name %?></option> + <?% END %?> </select> - <%! at !%> <input type="text" name="time" size="5" value="<tmpl_var now>" /> <%! o'clock !%> + <?% gettext('at') %?> <input type="text" name="time" size="5" value="<?% now %?>" /> <?% gettext('o\'clock') %?> </td> -</tmpl_if> +<?% END %?> </tr> </table> <input type="hidden" name="aktion" value="prog_summary" /> <div id="content"> -<tmpl_loop rows> - <tmpl_if longdate> - <table border="0" cellspacing="0" cellpadding="0" class="group"> - <tr class="heading"> - <td class="col_center"> - <a id="<tmpl_var anchor>" name="<tmpl_var anchor>"></a> - <span class="channel_name"><a href="<tmpl_var proglink>" title="<%! Channels !%>"><tmpl_var progname></a></span> - <!-- TODO - <tmpl_if show_percent> - <table border="0" cellspacing="0" cellpadding="0" class="percent"> - <tr title="<tmpl_var elapsed_min>min / <tmpl_var length_min>min"> - <td class="elapsed" width="<tmpl_var percent>%"><img src="bilder/spacer.gif" width="1" height="1" alt=""/></td> - <td class="remaining"><img src="bilder/spacer.gif" width="1" height="1" alt=""/></td> - </tr> - </table> - </tmpl_if> - --> - </td> - </tr> - <tr class="row_even"> - <td class="col_content"> - <table border="0" cellspacing="0" cellpadding="0" class="content"> - <tr> - <td class="col_buttons"> - <tmpl_if stream_live_on> - <span class="action stream"> - <a href="<tmpl_var streamurl>" title="<%! Stream !%>"><img src="bilder/stream.png" border="0" alt="<%! Stream !%>" onmouseover="window.status='<%! Stream !%>';return true" title="<%! Stream !%>" /></a> - </span> - </tmpl_if> - <tmpl_if recurl> - <tmpl_if switchurl> - <span class="action switch"> - <a href="javascript:callurl('<tmpl_var switchurl>');"><img src="bilder/view.png" border="0" alt="<%! TV select !%>" onmouseover="window.status='<%! TV select !%>';return true" title="<%! TV select !%>" /></a> +<?% IF rows.size() > 0 %?> + <?% FOREACH row = rows %?> + <?% IF row.longdate %?> + <table border="0" cellspacing="0" cellpadding="0" class="group"> + <tr class="heading"> + <td class="col_center"> + <a id="<?% row.anchor %?>" name="<?% row.anchor %?>"></a> + <span class="channel_name"><a href="<?% row.proglink %?>" title="<?% gettext('Channels') %?>"><?% row.progname %?></a></span> + <!-- TODO + <?% IF row.show_percent %?> + <table border="0" cellspacing="0" cellpadding="0" class="percent"> + <tr title="<?% row.elapsed_min %?>min / <?% row.length_min %?>min"> + <td class="elapsed" width="<?% row.percent %?>%"><img src="bilder/spacer.gif" width="1" height="1" alt=""/></td> + <td class="remaining"><img src="bilder/spacer.gif" width="1" height="1" alt=""/></td> + </tr> + </table> + <?% END %?> + --> + </td> + </tr> + <tr class="row_even"> + <td class="col_content"> + <table border="0" cellspacing="0" cellpadding="0" class="content"> + <tr> + <td class="col_buttons"> + <?% IF row.stream_live_on %?> + <span class="action stream"> + <a href="<?% row.streamurl %?>" title="<?% gettext('Stream') %?>"><img src="bilder/stream.png" border="0" alt="<?% gettext('Stream') %?>" onmouseover="window.status='<?% gettext('Stream') %?>';return true" title="<?% gettext('Stream') %?>" /></a> </span> - </tmpl_if> - <span class="action repeatings"> - <a href="vdradmin.pl?search=<tmpl_var find_title>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<%! Search for other show times !%>" onmouseover="window.status='<%! Search for other show times !%>';return true" title="<%! Search for other show times !%>" /></a> - </span> - <span class="action info"> - <tmpl_if summary> - <a href="javascript:popup('<tmpl_var infurl>');"><img src="bilder/info_button.png" border="0" alt="<%! More Information !%>" onmouseover="window.status='<%! More Information !%>';return true" title="<%! More Information !%>" /></a> - <tmpl_else> - <img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<%! No Information !%>" /> - </tmpl_if> - </span> - <span class="action record"> - <a href="<tmpl_var recurl>"><img src="bilder/rec_button.png" border="0" alt="<%! Record !%>" onmouseover="window.status='<%! Record !%>';return true" title="<%! Record !%>" /></a> + <?% END %?> + <?% IF row.recurl %?> + <?% IF row.switchurl %?> + <span class="action switch"> + <a href="javascript:callurl('<?% row.switchurl %?>');"><img src="bilder/view.png" border="0" alt="<?% gettext('TV select') %?>" onmouseover="window.status='<?% gettext('TV select') %?>';return true" title="<?% gettext('TV select') %?>" /></a> + </span> + <?% END %?> + <span class="action repeatings"> + <a href="vdradmin.pl?search=<?% row.find_title %?>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<?% gettext('Search for other show times') %?>" onmouseover="window.status='<?% gettext('Search for other show times') %?>';return true" title="<?% gettext('Search for other show times') %?>" /></a> </span> - </tmpl_if> - <tmpl_if imdburl> - <span class="action imdb"> - <a href="<tmpl_var imdburl>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>';return true" title="<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>" /></a> - </span> - </tmpl_if> - </td> - <td class="col_epg"> - <div class="date_long"><tmpl_var longdate></div> - <div class="time_duration"> - <tmpl_if start><span class="time_start"><tmpl_var start></span>-<span class="time_stop"><tmpl_var stop></span></tmpl_if> - </div> - <div class="epg_title"> - <tmpl_if summary> - <a href="javascript:popup('<tmpl_var infurl>');" title="<%! More Information !%>" > - </tmpl_if> - <tmpl_var title> - <tmpl_if summary> - </a> - </tmpl_if> - </div> - <div class="epg_subtitle"> - <tmpl_if subtitle> - <tmpl_var subtitle> - <tmpl_else> - - </tmpl_if> - </div> - <div class="epg_summary"><tmpl_var summary></div> - </td> - </tr> - </table> - </td> - </tr> - </table> - </tmpl_if> -</tmpl_loop> + <span class="action info"> + <?% IF row.summary %?> + <a href="javascript:popup('<?% row.infurl %?>');"><img src="bilder/info_button.png" border="0" alt="<?% gettext('More Information') %?>" onmouseover="window.status='<?% gettext('More Information') %?>';return true" title="<?% gettext('More Information') %?>" /></a> + <?% ELSE %?> + <img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<?% gettext('No Information') %?>" /> + <?% END %?> + </span> + <span class="action record"> + <a href="<?% row.recurl %?>"><img src="bilder/rec_button.png" border="0" alt="<?% gettext('Record') %?>" onmouseover="window.status='<?% gettext('Record') %?>';return true" title="<?% gettext('Record') %?>" /></a> + </span> + <?% END %?> + <?% IF row.imdburl %?> + <span class="action imdb"> + <a href="<?% row.imdburl %?>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>';return true" title="<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>" /></a> + </span> + <?% END %?> + </td> + <td class="col_epg"> + <div class="date_long"><?% row.longdate %?></div> + <div class="time_duration"> + <?% IF row.start %?><span class="time_start"><?% row.start %?></span>-<span class="time_stop"><?% row.stop %?></span><?% END %?> + </div> + <div class="epg_title"> + <?% IF row.summary %?> + <a href="javascript:popup('<?% row.infurl %?>');" title="<?% gettext('More Information') %?>" > + <?% END %?> + <?% row.title %?> + <?% IF row.summary %?> + </a> + <?% END %?> + </div> + <div class="epg_subtitle"> + <?% IF row.subtitle %?> + <?% row.subtitle %?> + <?% ELSE %?> + + <?% END %?> + </div> + <div class="epg_summary"><?% row.summary %?></div> + </td> + </tr> + </table> + </td> + </tr> + </table> + <?% END %?> + <?% END %?> +<?% ELSE %?> + <div class="warning"><?% gettext('No EPG information available') %?></div> +<?% END %?> </div> </form> </body> diff --git a/template/default/prog_summary2.html b/template/default/prog_summary2.html index d9fa1a7..2532023 100644 --- a/template/default/prog_summary2.html +++ b/template/default/prog_summary2.html @@ -3,47 +3,48 @@ <head> <meta http-equiv="refresh" content="600; URL=vdradmin.pl?aktion=prog_summary" /> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! What's On Now? !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('What\'s On Now?') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript" src="library.js"></script> </head> <body id="prog_summary2"> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><tmpl_var title></h1> + <h1><?% title %?></h1> </td> <td class="col_other"> - [<a href="<tmpl_var switchview_url>"><tmpl_var switchview_text></a>] + [<a href="<?% switchview_url %?>"><?% switchview_text %?></a>] </td> -<tmpl_if times> +<?% IF times.size() > 0 %?> <td class="col_other"> - <%! What's on: !%> + <?% gettext('What\'s on:') %?> <select name="select_time" size="1" class="submit" onchange="window.open(this.options[this.selectedIndex].value,'main')"> - <tmpl_loop times> - <option value="<tmpl_var id>" <tmpl_if sel>selected</tmpl_if>><tmpl_var name></option> - </tmpl_loop> + <?% FOREACH time = times %?> + <option value="<?% time.id %?>" <?% IF time.sel %?>selected="selected"<?% END %?>><?% time.name %?></option> + <?% END %?> </select> - <%! at !%> <input type="text" name="time" size="5" value="<tmpl_var now>" /> <%! o'clock !%> + <?% gettext('at') %?> <input type="text" name="time" size="5" value="<?% now %?>" /> <?% gettext('o\'clock') %?> </td> -</tmpl_if> +<?% END %?> </tr> </table> <input type="hidden" name="aktion" value="prog_summary" /> +<?% IF rows.size > 0 %?> <table border="0" cellspacing="0" cellpadding="0" width="100%" class="list hilight" id="content"> <?% tr_class = "row_odd"; olddate = ""; %?> -<?% FOREACH broadcast = rows; + <?% FOREACH broadcast = rows; IF broadcast.longdate; IF olddate != broadcast.date; olddate = broadcast.date; %?> @@ -66,7 +67,7 @@ <td class="col_center"> <div class="epg_title"> <?% IF broadcast.summary %?> - <a href="javascript:popup('<?% broadcast.infurl %?>');" title="<%! More Information !%>"> + <a href="javascript:popup('<?% broadcast.infurl %?>');" title="<?% gettext('More Information') %?>"> <?% END %?> <?% broadcast.title %?> <?% IF broadcast.summary %?> @@ -81,25 +82,27 @@ </td> <td class="col_channel"> <a id="<?% broadcast.anchor %?>" name="<?% broadcast.anchor %?>"></a> - <div class="channel_name"><a href="<?% broadcast.proglink %?>" title="<%! Channels !%>"><?% broadcast.progname %?></a></div> + <div class="channel_name"><a href="<?% broadcast.proglink %?>" title="<?% gettext('Channels') %?>"><?% broadcast.progname %?></a></div> </td> <td class="col_buttons"> <?% IF broadcast.stream_live_on %?> - <span class="action stream"><a href="<?% broadcast.streamurl %?>"><img src="bilder/stream.png" border="0" alt="<%! Stream !%>" onmouseover="window.status='<%! Stream !%>';return true" title="<%! Stream !%>" /></a></span> + <span class="action stream"><a href="<?% broadcast.streamurl %?>"><img src="bilder/stream.png" border="0" alt="<?% gettext('Stream') %?>" onmouseover="window.status='<?% gettext('Stream') %?>';return true" title="<?% gettext('Stream') %?>" /></a></span> <?% END %?> <?% IF broadcast.recurl %?> - <span class="action switch"> - <a href="javascript:callurl('<?% broadcast.switchurl %?>');"><img src="bilder/view.png" border="0" alt="<%! TV select !%>" onmouseover="window.status='<%! TV select !%>';return true" title="<%! TV select !%>" /></a> - </span> - <span class="action repeatings"><a href="vdradmin.pl?search=<?% broadcast.find_title %?>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<%! Search for other show times !%>" onmouseover="window.status='<%! Search for other show times !%>';return true" title="<%! Search for other show times !%>" /></a></span> + <?% IF broadcast.switchurl %?> + <span class="action switch"> + <a href="javascript:callurl('<?% broadcast.switchurl %?>');"><img src="bilder/view.png" border="0" alt="<?% gettext('TV select') %?>" onmouseover="window.status='<?% gettext('TV select') %?>';return true" title="<?% gettext('TV select') %?>" /></a> + </span> + <?% END %?> + <span class="action repeatings"><a href="vdradmin.pl?search=<?% broadcast.find_title %?>&aktion=prog_summary&submit=go11"><img src="bilder/find.png" border="0" alt="<?% gettext('Search for other show times') %?>" onmouseover="window.status='<?% gettext('Search for other show times') %?>';return true" title="<?% gettext('Search for other show times') %?>" /></a></span> <?% IF broadcast.summary %?> - <span class="action info"><a href="javascript:popup('<?% broadcast.infurl %?>');"><img src="bilder/info_button.png" border="0" alt="<%! More Information !%>" onmouseover="window.status='<%! More Information !%>';return true" title="<%! More Information !%>" /></a></span> + <span class="action info"><a href="javascript:popup('<?% broadcast.infurl %?>');"><img src="bilder/info_button.png" border="0" alt="<?% gettext('More Information') %?>" onmouseover="window.status='<?% gettext('More Information') %?>';return true" title="<?% gettext('More Information') %?>" /></a></span> <?% ELSE %?> - <span class="action info"><img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<%! No Information !%>" /></span> + <span class="action info"><img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<?% gettext('No Information') %?>" /></span> <?% END %?> - <span class="action record"><a href="<?% broadcast.recurl %?>"><img src="bilder/rec_button.png" border="0" alt="<%! Record !%>" onmouseover="window.status='<%! Record !%>';return true" title="<%! Record !%>" /></a></span> + <span class="action record"><a href="<?% broadcast.recurl %?>"><img src="bilder/rec_button.png" border="0" alt="<?% gettext('Record') %?>" onmouseover="window.status='<?% gettext('Record') %?>';return true" title="<?% gettext('Record') %?>" /></a></span> <?% IF broadcast.imdburl %?> - <span class="action imdb"><a href="<?% broadcast.imdburl %?>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>';return true" title="<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>" /></a></span> + <span class="action imdb"><a href="<?% broadcast.imdburl %?>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>';return true" title="<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>" /></a></span> <?% END %?> <?% END %?> </td> @@ -107,8 +110,13 @@ <?% tr_class = (tr_class == "row_odd") ? "row_even" : "row_odd"; END; -END %?> + END %?> </table> +<?% ELSE %?> + <div id="content"> + <div class="warning"><?% gettext('No EPG information available') %?></div> + </div> +<?% END %?> </form> </body> </html> diff --git a/template/default/prog_timeline.html b/template/default/prog_timeline.html index 6a23951..2fc51b8 100644 --- a/template/default/prog_timeline.html +++ b/template/default/prog_timeline.html @@ -1,193 +1,199 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-
-<head>
- <meta http-equiv="refresh" content="600; URL=vdradmin.pl?aktion=prog_timeline" />
- <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" />
- <title>VDRAdmin-AM - <%! Timeline !%></title>
- <link href="style.css" rel="stylesheet" media="screen" type="text/css" />
- <tmpl_if usercss>
- <link href="user.css" rel="stylesheet" media="screen" type="text/css" />
- </tmpl_if>
- <script type="text/javascript" language="JavaScript1.2" src="library.js"></script>
-
-<?%-
- USE date;
- show_hours = config.ZEITRAHMEN || 1; # Zeitrahmen der angezeigt werden soll in Stunden
- times = config.TIMES.split(',\s*');
- px_per_min = 3; # Make it configurable?
-
- # now_sec is the requested browser time in seconds since 1970
- # start_sec is the start time of the table in seconds since 1970
- # end_sec is the end time of the table in seconds since 1970
- # end_min is the end time of the table in minutes since start of the table
- # diff_sec is the offset from start_sec to now_sec
- diff_sec = now_sec % 1800; # time since last 30 minutes interval
- start_sec = now_sec - diff_sec;
- end_min = 60 * show_hours;
- end_sec = start_sec + (end_min * 60);
-
--%?>
-
-<!-- TimeLine: start_sec="<?% date.format(start_sec, '%H:%M') %?>" request="<?% date.format(date.now, '%H:%M') %?>" end_sec="<?% date.format(end_sec, '%H:%M') %?>" -->
- <style type="text/css">
- table.prgname {
- border-width:1px;
- border-style:none;
- border-spacing:0px;
- padding:0px;
- margin:0px;
- text-align:left;
- table-layout:fixed;
- overflow:hidden;
- }
- td.prgname {
- margin: 0 2px;
- overflow:hidden;
- }
-
- .prgtable, .timertable {
- border-width: 1px 1px 0px 1px;
- border-style: solid none none solid;
- border-spacing:0px;
- padding:0px;
- margin:0px;
- text-align:left;
- table-layout:fixed;
- overflow:hidden;
- }
- td.prgtable,
- td.timertable {
- padding: 0 2px;
- overflow:hidden;
- }
-
- #bigtable { position:absolute; top:0; left: 0; z-index: 1; }
- </style>
-
- <script type="text/javascript" language="JavaScript1.2">
- var show_tooltips = <?% config.TL_TOOLTIP ? "true" : "false" %?>;
- </script>
-<?% IF config.TL_TOOLTIP %?>
- <script type="text/javascript" language="JavaScript1.2" src="infobox.js"></script>
-<?% END %?>
- <script type="text/javascript" language="JavaScript1.2" src="timeline.js"></script>
- <script type="text/javascript" language="JavaScript1.2">
- var trans = new Translation("<%! now !%>",
- "<%! o'clock !%>",
- "<%! to !%>");
- var redraw_w;
- var redraw_h;
-
- function Redraw()
- {
- if (redraw_w != GetWindowW() || redraw_h != GetWindowH())
- {
- Go('<?% nowurl %?>&time=<?% date.format(now_sec, '%H:%M') %?>');
- }
- }
-
- function AddEvent(counter, vdr_id, epg_id, start_sec, stop_sec, title, timer, summary)
- {
- var e = new EPGEvent(epg_id, start_sec, stop_sec, title, timer, summary);
-<?% IF config.TL_TOOLTIP %?>
- maketip("VDR-" + vdr_id + "-" + counter, title,
- "<%! Duration: !%> " + e.start_str + " - " + e.stop_str
- + " (" + Div(stop_sec - start_sec, 60) + " <%! min !%>)");
-<?% END %?>
- return e;
- }
-
- function Go(x)
- {
- if(x =="nothing") {
- document.forms[0].reset();
- document.forms[0].elements[0].blur();
- return;
- } else {
- parent.frames[1].location.href = x;
- document.forms[0].elements[0].blur();
- }
- }
- </script>
-</head>
-
-<body id="prog_timeline">
-<?% IF config.TL_TOOLTIP %?>
- <div id="infodiv" style="position:absolute; visibility:hidden; z-index:20; top:0px; left:0px;"></div>
-<?% END %?>
- <script type="text/javascript" language="JavaScript">
- window.onresize = Redraw;
- redraw_w = GetWindowW();
- redraw_h = GetWindowH();
-
- var channels = new Array();
- var events;
-<?%
- index = 0;
- FOREACH name = shows2.keys.nsort;
- counter = 0;
-%?>
- events = new Array();
-<?%
- FOREACH show = shows2.${name};
-%?>
- events[<?% counter %?>] = AddEvent(<?% counter %?>, <?% show.vdr_id %?>, <?% show.anchor %?>, <?% show.start %?>, <?% show.stop %?>, "<?% show.title %?>", <?% show.timer %?>, <?% show.summary ? 1 : 0 %?>);
-<?%
- counter = counter + 1;
- END;
-%?>
- channels[<?% index %?>] = new ChannelInfo(<?% show.vdr_id %?>, "<?% shows.${name}.first.progname %?>", "<?% shows.${name}.first.proglink %?>", events);
-<?%
- index = index + 1;
- END;
-%?>
- </script>
-
- <form action="<?% nowurl %?>" method="get" name="FormName">
- <script type="text/javascript" language="JavaScript1.2">
- var tl = new TimeLine(<?% now_sec %?>, "<?% nowurl %?>", <?% px_per_min %?>, <?% end_min %?>);
- </script>
-
- <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
- <tr>
- <td class="col_title">
- <h1><?% date.format(now_sec, "%A,") %?> <?% now %?> <%! o'clock !%></h1>
- </td>
- <td class="col_other">
- <%! What's on: !%>
- <select name="Auswahl" class="submit" onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)" width="100">
-<?% select_now = (now == date.format(date.now, '%H:%M')) %?>
- <script type="text/javascript" language="JavaScript1.2">
- BuildOption("", 0, "-");
- BuildOption("", <?% select_now ? 1 : 0 %?>, "<%! now !%>");
-<?% FOREACH timer = times %?>
- <?% timer_o_dopp = timer | replace('\:', '') %?>
- BuildOption("<?% timer_o_dopp %?>", <?% !select_now && (now == timer) ? 1 : 0 %?>, "<?% timer %?>");
-<?% END %?>
- </script>
- </select>
- | <%! at: !%>
- <input type="text" name="time" size="5" value="<?% now %?>" />
- <%! o'clock !%>
- <input type="hidden" name="aktion" value="prog_timeline" />
- <script type="text/javascript" language="JavaScript1.2">
- BuildHiddenFrameInput();
- </script>
- </td>
- </tr>
- </table>
-
- <script type="text/javascript" language="JavaScript1.2">
- BuildContent();
- </script>
- <noscript>
- <p>
- <center>
- <h1><%! You need JavaScript to use the timeline! !%></h1>
- </center>
- </p>
- </noscript>
- </form>
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> + +<head> + <meta http-equiv="refresh" content="600; URL=vdradmin.pl?aktion=prog_timeline" /> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Timeline') %?></title> + <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> + <?% IF usercss %?> + <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> + <?% END %?> + <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> + +<?%- + USE date; + show_hours = config.ZEITRAHMEN || 1; # Zeitrahmen der angezeigt werden soll in Stunden + times = config.TIMES.split(',\s*'); + px_per_min = 3; # Make it configurable? + + # now_sec is the requested browser time in seconds since 1970 + # start_sec is the start time of the table in seconds since 1970 + # end_sec is the end time of the table in seconds since 1970 + # end_min is the end time of the table in minutes since start of the table + # diff_sec is the offset from start_sec to now_sec + diff_sec = now_sec % 1800; # time since last 30 minutes interval + start_sec = now_sec - diff_sec; + end_min = 60 * show_hours; + end_sec = start_sec + (end_min * 60); + +-%?> + +<!-- TimeLine: start_sec="<?% date.format(start_sec, '%H:%M') %?>" request="<?% date.format(date.now, '%H:%M') %?>" end_sec="<?% date.format(end_sec, '%H:%M') %?>" --> + <style type="text/css"> + table.prgname { + border-width:1px; + border-style:none; + border-spacing:0px; + padding:0px; + margin:0px; + text-align:left; + table-layout:fixed; + overflow:hidden; + } + td.prgname { + margin: 0 2px; + overflow:hidden; + } + + .prgtable, .timertable { + border-width: 1px 1px 0px 1px; + border-style: solid none none solid; + border-spacing:0px; + padding:0px; + margin:0px; + text-align:left; + table-layout:fixed; + overflow:hidden; + } + td.prgtable, + td.timertable { + padding: 0 2px; + overflow:hidden; + } + + #bigtable { position:absolute; top:0; left: 0; z-index: 1; } + </style> + + <script type="text/javascript" language="JavaScript1.2"> + var show_tooltips = <?% config.TL_TOOLTIP ? "true" : "false" %?>; + </script> +<?% IF config.TL_TOOLTIP %?> + <script type="text/javascript" language="JavaScript1.2" src="infobox.js"></script> +<?% END %?> + <script type="text/javascript" language="JavaScript1.2" src="timeline.js"></script> + <script type="text/javascript" language="JavaScript1.2"> + var trans = new Translation("<?% gettext('now') %?>", + "<?% gettext('o\'clock') %?>", + "<?% gettext('to') %?>"); + var redraw_w; + var redraw_h; + + function Redraw() + { + if (redraw_w != GetWindowW() || redraw_h != GetWindowH()) + { + Go('<?% nowurl %?>&time=<?% date.format(now_sec, '%H:%M') %?>'); + } + } + + function AddEvent(counter, vdr_id, epg_id, start_sec, stop_sec, title, timer, summary) + { + var e = new EPGEvent(epg_id, start_sec, stop_sec, title, timer, summary); +<?% IF config.TL_TOOLTIP %?> + maketip("VDR-" + vdr_id + "-" + counter, title, + "<?% gettext('Duration:') %?> " + e.start_str + " - " + e.stop_str + + " (" + Div(stop_sec - start_sec, 60) + " <?% gettext('min') %?>)"); +<?% END %?> + return e; + } + + function Go(x) + { + if(x =="nothing") { + document.forms[0].reset(); + document.forms[0].elements[0].blur(); + return; + } else { + parent.frames[1].location.href = x; + document.forms[0].elements[0].blur(); + } + } + </script> +</head> + +<body id="prog_timeline"> +<?% IF config.TL_TOOLTIP %?> + <div id="infodiv" style="position:absolute; visibility:hidden; z-index:20; top:0px; left:0px;"></div> +<?% END %?> + <script type="text/javascript" language="JavaScript"> + window.onresize = Redraw; + redraw_w = GetWindowW(); + redraw_h = GetWindowH(); + + var channels = new Array(); + var events; +<?% + index = 0; + FOREACH name = shows2.keys.nsort; + counter = 0; +%?> + events = new Array(); +<?% + FOREACH show = shows2.${name}; +%?> + events[<?% counter %?>] = AddEvent(<?% counter %?>, <?% show.vdr_id %?>, <?% show.anchor %?>, <?% show.start %?>, <?% show.stop %?>, "<?% show.title %?>", <?% show.timer %?>, <?% show.summary ? 1 : 0 %?>); +<?% + counter = counter + 1; + END; +%?> + channels[<?% index %?>] = new ChannelInfo(<?% show.vdr_id %?>, "<?% shows.${name}.first.progname %?>", "<?% shows.${name}.first.proglink %?>", events); +<?% + index = index + 1; + END; +%?> + </script> + + <form action="<?% nowurl %?>" method="get" name="FormName"> + <script type="text/javascript" language="JavaScript1.2"> + var tl = new TimeLine(<?% now_sec %?>, "<?% nowurl %?>", <?% px_per_min %?>, <?% end_min %?>); + </script> + + <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> + <tr> + <td class="col_title"> + <h1><?% date.format(now_sec, "%A,") %?> <?% now %?> <?% gettext('o\'clock') %?></h1> + </td> + <td class="col_other"> + <?% gettext('What\'s on:') %?> + <select name="Auswahl" class="submit" onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)" width="100"> +<?% select_now = (now == date.format(date.now, '%H:%M')) %?> + <script type="text/javascript" language="JavaScript1.2"> + BuildOption("", 0, "-"); + BuildOption("", <?% select_now ? 1 : 0 %?>, "<?% gettext('now') %?>"); +<?% FOREACH timer = times %?> + <?% timer_o_dopp = timer | replace('\:', '') %?> + BuildOption("<?% timer_o_dopp %?>", <?% !select_now && (now == timer) ? 1 : 0 %?>, "<?% timer %?>"); +<?% END %?> + </script> + </select> + <?% gettext('at:') %?> + <input type="text" name="time" size="5" value="<?% now %?>" /> + <?% gettext('o\'clock') %?> + <input type="hidden" name="aktion" value="prog_timeline" /> + <script type="text/javascript" language="JavaScript1.2"> + BuildHiddenFrameInput(); + </script> + </td> + </tr> + </table> + +<?% IF shows.size() > 0 %?> + <script type="text/javascript" language="JavaScript1.2"> + BuildContent(); + </script> + <p> + <noscript> + <center> + <h1><?% gettext('You need JavaScript to use the timeline!') %?></h1> + </center> + </noscript> + </p> +<?% ELSE %?> + <div id="content"> + <div class="warning"><?% gettext('No EPG information available') %?></div> + </div> +<?% END %?> + </form> +</body> +</html> diff --git a/template/default/rc.html b/template/default/rc.html index ff5d18e..1567847 100644 --- a/template/default/rc.html +++ b/template/default/rc.html @@ -2,12 +2,12 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Remote Control !%> (<tmpl_var host>)</title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Remote Control') %?> (<?% host %?>)</title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript"> <!-- function switch_channel(url) { diff --git a/template/default/rec_edit.html b/template/default/rec_edit.html index 784fc56..cf1e6ca 100644 --- a/template/default/rec_edit.html +++ b/template/default/rec_edit.html @@ -2,53 +2,53 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Rename Recording !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Rename Recording') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <body id="rec_edit"> - <form action="<tmpl_var url>" method="get" name="form"> + <form action="<?% url %?>" method="get" name="form"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><%! Rename Recording !%></h1> + <h1><?% gettext('Rename Recording') %?></h1> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="group"> <tr class="row_odd"> - <td class="col_label"><h5><%! Original Name of Recording: !%></h5></td> - <td class="col_value"><tmpl_var title></td> + <td class="col_label"><h5><?% gettext('Original Name of Recording:') %?></h5></td> + <td class="col_value"><?% title %?></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! New Name of Recording: !%></h5></td> - <td class="col_value"><input type="text" name="nn" value="<tmpl_var title>" size="55" /></td> + <td class="col_label"><h5><?% gettext('New Name of Recording:') %?></h5></td> + <td class="col_value"><input type="text" name="nn" value="<?% title %?>" size="55" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Subtitle: !%></h5></td> - <td class="col_value"><tmpl_if subtitle><tmpl_var subtitle></tmpl_if></td> + <td class="col_label"><h5><?% gettext('Subtitle:') %?></h5></td> + <td class="col_value"><?% IF subtitle %?><?% subtitle %?><?% END %?></td> </tr> <tr class="row_even"> - <td class="col_label" valign="top"><h5><%! Summary: !%></h5></td> - <td class="col_value"><tmpl_var text></td> + <td class="col_label" valign="top"><h5><?% gettext('Summary:') %?></h5></td> + <td class="col_value"><?% text %?></td> </tr> </table> <div id="buttons"> - <input type="submit" class="submit" name="save" value="<%! Rename !%>" /> - <input type="submit" class="submit" name="exit" value="<%! Cancel !%>" /> + <input type="submit" class="submit" name="save" value="<?% gettext('Rename') %?>" /> + <input type="submit" class="submit" name="exit" value="<?% gettext('Cancel') %?>" /> </div> <input type="hidden" name="aktion" value="rec_rename" /> - <input type="hidden" name="id" value="<tmpl_var id>" /> - <tmpl_if referer> - <input type="hidden" name="referer" value="<tmpl_var referer>" /> - </tmpl_if> + <input type="hidden" name="id" value="<?% id %?>" /> + <?% IF referer %?> + <input type="hidden" name="referer" value="<?% referer %?>" /> + <?% END %?> </form> </body> diff --git a/template/default/rec_list.html b/template/default/rec_list.html index d9d204a..5b7e8a7 100644 --- a/template/default/rec_list.html +++ b/template/default/rec_list.html @@ -2,165 +2,163 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Recordings !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Recordings') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <body id="rec_list"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> - <td class="col_title"><h1><%! Recordings !%></h1></td> + <td class="col_title"><h1><?% gettext('Recordings') %?></h1></td> <td colspan="2" class="col_other"> - <tmpl_if disk_total> - <%! Total: !%> <tmpl_var minutes_total><%! h !%> (<tmpl_var disk_total>) - | <%! Free: !%> <tmpl_var minutes_free><%! h !%> (<tmpl_var disk_free>) - </tmpl_if> + <?% IF disk_total %?> + <?% gettext('Total:') %?> <?% minutes_total %?><?% gettext('h') %?> (<?% disk_total %?>) + | <?% gettext('Free:') %?> <?% minutes_free %?><?% gettext('h') %?> (<?% disk_free %?>) + <?% END %?> </td> -<tmpl_if name="help_url"> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>" /></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>" /></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> <div id="path"> -<tmpl_loop path> - >> <tmpl_if url><a href="<tmpl_var url>"><tmpl_var name></a><tmpl_else><tmpl_var name></tmpl_if> -</tmpl_loop> +<?% FOREACH p = path %?> + >> <?% IF p.url %?><a href="<?% p.url %?>"><?% p.name %?></a><?% ELSE %?><?% p.name %?><?% END %?> +<?% END %?> </div> - <form action="<tmpl_var url>" method="get" name="FormName"> - <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="list hilight"> - <!-- TODO: this breaks IE, but why? - <colgroup> - <col class="col_date"/> - <col class="col_time"/> - <col class="col_name"/> - <col class="col_edit"/> - <col class="col_delete"/> -<tmpl_if stream_rec_on> - <col class="col_stream"/> -</tmpL_if> - <col class="col_checkbox"/> - </colgroup>--> - <tr class="heading"> - <td class="col_date <tmpl_if sortbydate>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbydateurl>"><%! Date !%> - <tmpl_if sortbydate> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_time <tmpl_if sortbytime>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbytimeurl>"><%! Time !%> - <tmpl_if sortbytime> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_name <tmpl_if sortbyname>selected</tmpl_if>"> - <h2> - <a href="<tmpl_var sortbynameurl>"><%! Name !%> - <tmpl_if sortbyname> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> - <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> - </a> - </h2> - </td> - <td class="col_edit"></td> - <td class="col_delete"></td> -<tmpl_if stream_rec_on> - <td class="col_stream"></td> -</tmpl_if> - <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<%! Select all/none !%>" /></td> - </tr> + <div id="content"> +<?% IF recloop.size() > 0 %?> + <form action="<?% url %?>" method="get" name="FormName"> + <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> + <!-- TODO: this breaks IE, but why? + <colgroup> + <col class="col_date"/> + <col class="col_time"/> + <col class="col_name"/> + <col class="col_buttons"/> + <col class="col_checkbox"/> + </colgroup>--> + <tr class="heading"> + <td class="col_date <?% IF sortbydate %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbydateurl %?>"><?% gettext('Date') %?> + <?% IF sortbydate %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> + <?% END %?> + </a> + </h2> + </td> + <td class="col_time <?% IF sortbytime %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbytimeurl %?>"><?% gettext('Time') %?> + <?% IF sortbytime %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> + <?% END %?> + </a> + </h2> + </td> + <td class="col_name <?% IF sortbyname %?>selected<?% END %?>"> + <h2> + <a href="<?% sortbynameurl %?>"><?% gettext('Name') %?> + <?% IF sortbyname %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> + <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> + <?% END %?> + </a> + </h2> + </td> + <td class="col_buttons"></td> + <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<?% gettext('Select all/none') %?>" /></td> + </tr> -<tmpl_loop recloop> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td class="col_date <tmpl_if sortbydate>selected</tmpl_if>"> - <span class="date"><tmpl_var date></span> - <tmpl_if isfolder><span class="total"><%! Total !%></span></tmpl_if> - </td> - <td class="col_time <tmpl_if sortbytime>selected</tmpl_if>"> - <span class="time"><tmpl_var time></span> - <span class="new"> - <tmpl_if isfolder> - <%! New !%> - <tmpl_else> - <tmpl_if new> - <%! New !%> - </tmpl_if> - </tmpl_if> - </span> - </td> - <td class="col_name <tmpl_if sortbyname>selected</tmpl_if>"> - <tmpl_if isfolder> - <a href="<tmpl_var infurl><tmpl_var cur_sorting>"><img align="middle" src="bilder/folder_video.png" border="0" alt="" /> <tmpl_var name></a> - <tmpl_else> - <a href="javascript:popup('<tmpl_var infurl>');"><img align="middle" src="bilder/aktion.png" border="0" alt="" /> <tmpl_var name></a> - </tmpl_if> - </td> - <td class="col_edit"> - <tmpl_unless isfolder> - <a href="<tmpl_var editurl><tmpl_var cur_sorting><tmpl_var referer>"><img src="bilder/edit.png" alt="rename" title="<%! Rename !%>" border="0" /></a> - </tmpl_unless> - </td> - <td class="col_delete"> - <tmpl_unless isfolder> - <a href="javascript:del('<%! Delete recording? !%>\n\n"<tmpl_var name_js>"', '<tmpl_var delurl><tmpl_var cur_sorting>');"><img src="bilder/delete.png" alt="delete" title="<%! Delete !%>" border="0" /></a> - </tmpl_unless> - </td> -<tmpl_if stream_rec_on> - <td class="col_stream"> - <tmpl_unless isfolder> - <a href="<tmpl_var streamurl>"><img src="bilder/stream.png" alt="stream" title="<%! Stream !%>" border="0" /></a> - </tmpl_unless> - </td> -</tmpl_if> - <td class="col_checkbox"> - <tmpl_unless isfolder><input type="checkbox" name="xxxx_<tmpl_var id>" /></tmpl_unless> - </td> - </tr> -</tmpl_loop> - </table> + <?% FOREACH rec = recloop %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td class="col_date <?% IF rec.sortbydate %?>selected<?% END %?>"> + <span class="date"><?% rec.date %?></span> + <?% IF rec.isfolder %?><span class="total"><?% gettext('Total') %?></span><?% END %?> + </td> + <td class="col_time <?% IF rec.sortbytime %?>selected<?% END %?>"> + <span class="time"><?% rec.time %?></span> + <span class="new"> + <?% IF rec.isfolder %?> + <?% gettext('New') %?> + <?% ELSE %?> + <?% IF rec.new %?> + <?% gettext('New') %?> + <?% END %?> + <?% END %?> + </span> + </td> + <td class="col_name <?% IF rec.sortbyname %?>selected<?% END %?>"> + <?% IF rec.isfolder %?> + <a href="<?% rec.infurl %?>"><img align="middle" src="bilder/folder_video.png" border="0" alt="" /> <?% rec.name %?></a> + <?% ELSE %?> + <a href="javascript:popup('<?% rec.infurl %?>');"><img align="middle" src="bilder/aktion.png" border="0" alt="" /> <?% rec.name %?></a> + <?% END %?> + </td> + <td class="col_buttons"> + <?% UNLESS rec.isfolder %?> + <?% IF rec.playurl %?> + <span class="action play"><a href="javascript:callurl('<?% rec.playurl %?>')"><img src="bilder/play.png" alt="play" title="<?% gettext('Play') %?>" border="0" /></a></span> + <?% END %?> + <?% IF rec.cuturl %?> + <span class="action cut"><a href="javascript:callurl('<?% rec.cuturl %?>')"><img src="bilder/cut.png" alt="cut" title="<?% gettext('Cut') %?>" border="0" /></a></span> + <?% END %?> + <?% IF rec.editurl %?> + <span class="action edit"><a href="<?% rec.editurl %?><?% rec.referer %?>"><img src="bilder/edit.png" alt="rename" title="<?% gettext('Rename') %?>" border="0" /></a></span> + <?% END %?> + <span class="action delete"><a href="javascript:del('<?% gettext('Delete recording?') %?>\n\n"<?% rec.name_js %?>"', '<?% rec.delurl %?>');"><img src="bilder/delete.png" alt="delete" title="<?% gettext('Delete') %?>" border="0" /></a></span> + <?% IF rec.streamurl %?> + <span class="action stream"><a href="<?% rec.streamurl %?>"><img src="bilder/stream.png" alt="stream" title="<?% gettext('Stream') %?>" border="0" /></a></span> + <?% END %?> + <?% END %?> + </td> + <td class="col_checkbox"> + <?% UNLESS rec.isfolder %?><input type="checkbox" name="xxxx_<?% rec.id %?>" /><?% END %?> + </td> + </tr> + <?% END %?> + </table> - <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons"> - <tr> - <td align="left"> - <input type="submit" class="submit" name="rec_update" value="<%! Refresh !%>" /> - </td> -<tmpl_if reccmds> - <td align="center"> - <%! Commands: !%> - <select name="rec_cmd" class="submit"> - <tmpl_loop reccmds> - <option value="<tmpl_var id>"><tmpl_var title></option> - </tmpl_loop> - </select> - <input type="submit" class="submit" name="rec_runcmd" value="<%! Run !%>" onclick="return confirm('<%! Really run this command? !%>')" /> - </td> -</tmpl_if> - <td align="right"> - <input type="submit" class="submit" name="rec_delete" value="<%! Delete Selected Recordings !%>" onclick="return mdel('<%! Delete all selected recordings? !%>');" /> - </td> - </table> - <input type="hidden" name="aktion" value="rec_delete" /> - </form> + <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons"> + <tr> + <td align="left"> + <input type="submit" class="submit" name="rec_update" value="<?% gettext('Refresh') %?>" /> + </td> + <?% IF reccmds %?> + <td align="center"> + <?% gettext('Commands:') %?> + <select name="rec_cmd" class="submit"> + <?% FOREACH cmd = reccmds %?> + <option value="<?% cmd.id %?>"><?% cmd.title %?></option> + <?% END %?> + </select> + <input type="submit" class="submit" name="rec_runcmd" value="<?% gettext('Run') %?>" onclick="return confirm('<?% gettext('Really run this command?') %?>')" /> + </td> + <?% END %?> + <td align="right"> + <input type="submit" class="submit" name="rec_delete" value="<?% gettext('Delete Selected Recordings') %?>" onclick="return mdel('<?% gettext('Delete all selected recordings?') %?>');" /> + </td> + </table> + <input type="hidden" name="aktion" value="rec_delete" /> + </form> +<?% ELSE %?> + <div class="warning"><?% gettext('No recordings available') %?></div> +<?% END %?> + </div> </body> </html> diff --git a/template/default/style.css b/template/default/style.css index b43f408..30ca69f 100644 --- a/template/default/style.css +++ b/template/default/style.css @@ -44,6 +44,7 @@ select { } img { border: 0; + vertical-align: middle; } /* .submit { @@ -76,12 +77,23 @@ h3, margin: 0; padding: 0; } +.col_label { + width: 100px; + text-align: right; +} .col_label h5 { margin: 1px 5px; font-size: 11px; font-weight: normal; color: black; text-align: right; + white-space: nowrap; +} +.col_value h5 { + display: inline; + font-size: 11px; + font-weight: normal; + color: black; } h6 { margin: 1px 5px; @@ -155,8 +167,6 @@ body.help .heading { .heading h2, .heading .channel_name, .heading a { - padding-left: 3px; - padding-right: 3px; font-weight: bold; color: white; margin-top: 0px; @@ -300,11 +310,11 @@ body.help .heading { padding: 2px 2px; } -#prog_summary2 .newday { +.newday { height: 17px; background-color: #6d96a9; } -#prog_summary2 .newday td { +.newday td { padding-left: 3px; font-weight: bold; color: white; @@ -319,6 +329,8 @@ body.help .heading { color: black; display: block; } +#prog_list .col_buttons, +#rec_list .col_buttons, #prog_summary2 .col_buttons { width: 120px; text-align: right; @@ -408,12 +420,6 @@ body.help .heading { font-weight: bold; padding: 0 2em; } -#prog_list .col_buttons { - width: 120px; - text-align: right; - padding-right: 3px; - white-space: nowrap; -} .col_duration { padding-left: 3px; @@ -445,7 +451,7 @@ body.help .heading { .col_date, .col_time { width: 76px; - text-align: right; + text-align: left; } .col_edit, .col_delete, @@ -492,18 +498,15 @@ body.help .heading { background: red; } #prog_timeline .color_current { -/*TODO xbackground-color: #e6ffe9;*/ background-color: #b4e29c; } #prog_timeline .color_summary { background-color: #dee6ee; } #prog_timeline .color_broadcast { -/*TODO background-color: #f7fffa;*/ background-color: #ffffff; } #prog_timeline .color_timer { -/*TODO xbackground-color: #ffeee9;*/ background-color: #ffb2b4; } #prog_timeline .color_spacer { @@ -577,6 +580,7 @@ body.help .heading { color: black; font-weight: normal; } +#about .group, #config .group { margin-top: 0.5em; width: 100%; @@ -688,7 +692,10 @@ select.channels { #help .links a { white-space: nowrap; } -#help a , +#about a, +#about a:visited, +#about a:active, +#help a, #help a:visited, #help a:active { color: blue; @@ -728,7 +735,7 @@ select.channels { padding-bottom: 6px; text-align: center; } -/*TODO Farbe */ + #navigation .navi:hover { background-color: #dee6ee; } @@ -748,3 +755,35 @@ select.channels { #navigation input { width: 140px; } +#navigation #epgsearch_list a { + color: green; +} + +/* message boxes */ +.warning h1 { + display: block; + font-weight: bold; + font-size: 14px; +} +.warning { + margin: 2em; + padding: 1em; + border: 1px solid #6d96a9; + background-color: #dee6ee; + text-align: center; + vertical-align: middle; +} +.error h1 { + display: block; + color: red; + font-weight: bold; + font-size: 14px; +} +.error { + margin: 2em; + padding: 1em; + border: 2px solid red; + background-color: #dee6ee; + text-align: center; + vertical-align: middle; +} diff --git a/template/default/timer_list.html b/template/default/timer_list.html index 17956e0..a251da8 100644 --- a/template/default/timer_list.html +++ b/template/default/timer_list.html @@ -2,12 +2,12 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! Timer !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('Timer') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <?% IF config.TM_TT_TIMELINE || config.TM_TT_LIST %?> <script type="text/javascript" language="JavaScript1.2" src="infobox.js"></script> @@ -24,7 +24,7 @@ <?% FOREACH timer = timers2; %?> - maketip("VDR-<?% timer.id %?>", "<?% timer.title %?>", "<%! Priority: !%> <?% timer.prio %?><br /><%! Lifetime: !%> <?% timer.lft %?><br /><%! Duration: !%> <?% timer.start %?> - <?% timer.stop %?> (<?% timer.duration %?><%! min !%>)<br /><%! Transponder: !%> <?% timer.transponder %?><br /><%! CA-System: !%> <?% timer.ca %?>" ); + maketip("VDR-<?% timer.id %?>", "<?% timer.title %?>", "<?% gettext('Priority:') %?> <?% timer.prio %?><br /><?% gettext('Lifetime:') %?> <?% timer.lft %?><br /><?% gettext('Duration:') %?> <?% timer.start %?> - <?% timer.stop %?> (<?% timer.duration %?><?% gettext('min') %?>)<br /><?% gettext('Transponder:') %?> <?% timer.transponder %?><br /><?% gettext('CA-System:') %?> <?% timer.ca %?>" ); <?% END; %?> @@ -37,36 +37,37 @@ faktor=2.2; %?> - <form action="<tmpl_var url>" method="get" name="FormName0"> + <form action="<?% url %?>" method="get" name="FormName0"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> - <td class="col_title"><h1><%! Timer !%></h1></td> + <td class="col_title"><h1><?% gettext('Timer') %?></h1></td> <td class="col_other"> - <input type="submit" class="submit" value="<%! New Timer !%>" name="new_timer"/> + <input type="submit" class="submit" value="<?% gettext('New Timer') %?>" name="new_timer"/> <input type="hidden" name="aktion" value="timer_new_form"/> </td> -<tmpl_if help_url> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>" /></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>" /></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> </form> <div id="content"> - <form action="<tmpl_var url>" method="get" name="FormName1"> +<?% IF timers.size() > 0 %?> + <form action="<?% url %?>" method="get" name="FormName1"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list"> <tr class="heading"> - <td><h2><tmpl_var title></h2></td> + <td><h2><?% title %?></h2></td> <td class="col_navi"> - <tmpl_if prevdayurl><a href="<tmpl_var prevdayurl>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /></tmpl_if> - <select name="vdr_id" class="submit" onchange="window.open('<tmpl_var url>?aktion=timer_list&sortby=<tmpl_var sortby>&desc=<tmpl_var cur_desc>&timer=' + this.options[this.selectedIndex].value,'main')"> -<tmpl_loop day_loop> - <option value="<tmpl_var sortfield>" <tmpl_if current>selected</tmpl_if>><tmpl_var day></option> -</tmpl_loop> + <?% IF prevdayurl %?><a href="<?% prevdayurl %?>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /><?% END %?> + <select name="vdr_id" class="submit" onchange="window.open('<?% url %?>?aktion=timer_list&timer=' + this.options[this.selectedIndex].value,'main')"> + <?% FOREACH day = day_loop %?> + <option value="<?% day.sortfield %?>" <?% IF day.current %?>selected="selected"<?% END %?>><?% day.day %?></option> + <?% END %?> </select> - <tmpl_if nextdayurl><a href="<tmpl_var nextdayurl>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /></tmpl_if> + <?% IF nextdayurl %?><a href="<?% nextdayurl %?>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /><?% END %?> </td> </tr> <tr class="row_even"> @@ -74,30 +75,30 @@ <table cellspacing="0" cellpadding="0" border="0"> <tr> <td class="color1" height="20" width="100"><img src="bilder/spacer.gif" width="100" height="1" border="0" alt="" /><br /> </td> -<?% - stunde=0; - pos=0; - WHILE stunde<24; - stunde=stunde+1; - ende=((stunde * 60 / faktor) +0.5 ) | format('%i'); -%?> + <?% + stunde=0; + pos=0; + WHILE stunde<24; + stunde=stunde+1; + ende=((stunde * 60 / faktor) +0.5 ) | format('%i'); + %?> <td class="<?% (stunde % 2) == 1 ? 'color2' : 'color1' %?>" align="center"><img src="bilder/spacer.gif" width="<?% ende-pos %?>" height="1" border="0" alt="" /><br /><?% stunde - 1 %?></td> -<?% - pos=ende; - END; -%?> + <?% + pos=ende; + END; + %?> </tr> </table> -<?% - programm=0; - sender=""; - tablaenge=((1440 / faktor) + 0.5 ) | format('%i'); - FOREACH timer = timers; - IF timer.cdesc != sender && timer.starttime <= current && timer.stoptime >= current; - sender=timer.cdesc; -%?> + <?% + programm=0; + sender=""; + tablaenge=((1440 / faktor) + 0.5 ) | format('%i'); + FOREACH timer = timers; + IF timer.cdesc != sender && timer.starttime <= current && timer.stoptime >= current; + sender=timer.cdesc; + %?> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td bgcolor="#000000" height="1" class="blackline"><img src="bilder/spacer.gif" width="<?% tablaenge + 100 %?>" height="1" border="0" alt="" /></td> @@ -108,70 +109,70 @@ <tr> <td class="<?% (programm % 2) == 0 ? 'color2' : 'color1' %?>" height="20" width="100"><img src="bilder/spacer.gif" width="100" height="1" border="0" alt="" /><br /><a href="<?% timer.proglink %?>"><b><?% sender | truncate(11) %?></b></a></td> -<?% - pos=0; - FOREACH sendung = timers; - IF sendung.cdesc == sender && sendung.starttime <= current && sendung.stoptime >= current; - IF sendung.active == 0 || sendung.active == 32768; - td_class="color_inactive"; - ELSE; - IF sendung.critical == 1; - td_class="color_conflict"; + <?% + pos=0; + FOREACH sendung = timers; + IF sendung.cdesc == sender && sendung.starttime <= current && sendung.stoptime >= current; + IF sendung.active == 0 || sendung.active == 32768; + td_class="color_inactive"; ELSE; - IF sendung.collision == 1; - td_class="color_collision"; + IF sendung.critical == 1; + td_class="color_conflict"; ELSE; - td_class="color_ok"; + IF sendung.collision == 1; + td_class="color_collision"; + ELSE; + td_class="color_ok"; + END; END; END; - END; - IF sendung.starttime < current; - start=0; - ELSE; - start=((sendung.startlong / faktor) + 0.5 ) | format('%i'); - END; - IF sendung.stoptime > current; - ende=tablaenge; - ELSE; - ende=(((sendung.stoplong + 1) / faktor) + 0.5 ) | format('%i'); - END; - NEXT IF ende <= start; + IF sendung.starttime < current; + start=0; + ELSE; + start=((sendung.startlong / faktor) + 0.5 ) | format('%i'); + END; + IF sendung.stoptime > current; + ende=tablaenge; + ELSE; + ende=(((sendung.stoplong + 1) / faktor) + 0.5 ) | format('%i'); + END; + NEXT IF ende <= start; - IF start>pos; -%?> + IF start>pos; + %?> <td class="<?% (programm % 2) == 0 ? 'color2' : 'color1' %?>"><img src="bilder/spacer.gif" width="<?% start-pos %?>" height="1" border="0" alt="" /><br /></td> -<?% - pos=start; - END; - IF ende - pos < 2; -%?> + <?% + pos=start; + END; + IF ende - pos < 2; + %?> <td class="<?% td_class %?>"><span <?% IF config.TM_TT_TIMELINE %?>onMouseOver="tip('VDR-<?% sendung.id %?>'); return true;" onMouseOut="untip(); return true;"<?% END %?>><img src="bilder/spacer.gif" width="<?% ende - pos %?>" height="20" border="0" alt="" /></span></td> -<?% - ELSE; -%?> + <?% + ELSE; + %?> <td class="<?% td_class %?>" id="prgtable"><span <?% IF config.TM_TT_TIMELINE %?>onMouseOver="tip('VDR-<?% sendung.id %?>'); return true;" onMouseOut="untip(); return true;"<?% END %?>><img src="bilder/spacer.gif" width="<?% ende - pos - 2 %?>" height="20" border="0" alt="" /></span></td> -<?% + <?% + END; + pos=ende; END; - pos=ende; END; - END; - IF pos<tablaenge; -%?> + IF pos<tablaenge; + %?> <td class="<?% (programm % 2) == 0 ? 'color2' : 'color1' %?>"><img src="bilder/spacer.gif" width="<?% tablaenge - pos %?>" height="1" border="0" alt="" /><br /></td> -<?% - END; -%?> + <?% + END; + %?> </tr> </table> -<?% - programm=programm+1; - END; - END; -%?> + <?% + programm=programm+1; + END; + END; + %?> <table cellspacing="0" cellpadding="0" border="0"> <tr> @@ -184,7 +185,7 @@ <input type="hidden" name="aktion" value="timer_list" /> </form> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight"> <!-- TODO: this breaks IE, but why? <colgroup> @@ -199,155 +200,156 @@ <col class="col_checkbox"/> </colgroup>--> <tr class="heading"> - <td class="col_active <tmpl_if sortbyactive>selected</tmpl_if>"> + <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>"> <h2> - <a href="<tmpl_var sortbyactiveurl>"><%! Active !%> - <tmpl_if sortbyactive> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> + <a href="<?% sortbyactiveurl %?>"><?% gettext('Active') %?> + <?% IF sortbyactive %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> + <?% END %?> </a> </h2> </td> - <td class="col_channel <tmpl_if sortbychannel>selected</tmpl_if>"> + <td class="col_channel <?% IF sortbychannel %?>selected<?% END %?>"> <h2> - <a href="<tmpl_var sortbychannelurl>"><%! Channel !%> - <tmpl_if sortbychannel> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> + <a href="<?% sortbychannelurl %?>"><?% gettext('Channel') %?> + <?% IF sortbychannel %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> + <?% END %?> </a> </h2> </td> - <td class="col_date <tmpl_if sortbyday>selected</tmpl_if>"> + <td class="col_date <?% IF sortbyday %?>selected<?% END %?>"> <h2> - <a href="<tmpl_var sortbydayurl>"><%! Date !%> - <tmpl_if sortbyday> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> + <a href="<?% sortbydayurl %?>"><?% gettext('Date') %?> + <?% IF sortbyday %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> + <?% END %?> </a> </h2> </td> - <td class="col_start <tmpl_if sortbystart>selected</tmpl_if>"> + <td class="col_start <?% IF sortbystart %?>selected<?% END %?>"> <h2> - <a href="<tmpl_var sortbystarturl>"><%! Start !%> - <tmpl_if sortbystart> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> + <a href="<?% sortbystarturl %?>"><?% gettext('Start') %?> + <?% IF sortbystart %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> + <?% END %?> </a> </h2> </td> - <td class="col_stop <tmpl_if sortbystop>selected</tmpl_if>"> + <td class="col_stop <?% IF sortbystop %?>selected<?% END %?>"> <h2> - <a href="<tmpl_var sortbystopurl>"><%! Stop !%> - <tmpl_if sortbystop> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> + <a href="<?% sortbystopurl %?>"><?% gettext('Stop') %?> + <?% IF sortbystop %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> + <?% END %?> </a> </h2> </td> - <td class="col_name <tmpl_if sortbyname>selected</tmpl_if>"> + <td class="col_name <?% IF sortbyname %?>selected<?% END %?>"> <h2> - <a href="<tmpl_var sortbynameurl>"><%! Name !%> - <tmpl_if sortbyname> - <img src="bilder/sortiert_<tmpl_if desc>desc<tmpl_else>asc</tmpl_if>.gif" alt="" width="9" height="11" border="0" /> - <tmpl_else> + <a href="<?% sortbynameurl %?>"><?% gettext('Name') %?> + <?% IF sortbyname %?> + <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" /> + <?% ELSE %?> <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" /> - </tmpl_if> + <?% END %?> </a> </h2> </td> <td class="col_edit"></td> <td class="col_delete"></td> - <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<%! Select all/none !%>" /></td> + <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<?% gettext('Select all/none') %?>" /></td> </tr> -<tmpl_loop timer_loop> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td class="col_active <tmpl_if sortbyactive>selected</tmpl_if>"> + <?% FOREACH timer = timer_loop %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td class="col_active <?% IF timer.sortbyactive %?>selected<?% END %?>"> <div> - <a href="javascript:change('<%! Edit timer status? !%>','<tmpl_var toggleurl>&timer=<?% current %?>');"> - <tmpl_if expr="(active%32768) == 0"> - <img src="bilder/poempl_grau.png" alt="inactive" title="<%! This timer is inactive! !%>" align="middle" border="0" /> - <tmpl_else> - <tmpl_if critical> - <img src="bilder/poempl_rot.png" alt="impossible" title="<%! This timer is impossible! !%>" align="middle" border="0" /> - <tmpl_else> - <tmpl_if collision> - <img src="bilder/poempl_gelb.png" alt="nomore" title="<%! No more timers on other transponders possible! !%>" align="middle" border="0" /> - <tmpl_else> - <tmpl_if active> - <img src="bilder/poempl_gruen.png" alt="possible" title="<%! Timer OK. !%>" align="middle" border="0" /> - </tmpl_if> - </tmpl_if> - </tmpl_if> - </tmpl_if> - <tmpl_if expr="active == 1"><%! Yes !%></tmpl_if> - <tmpl_if expr="active == 0"><%! No !%></tmpl_if> - <tmpl_if expr="active == 5"><%! VPS !%></tmpl_if> - <tmpl_if expr="autotimer">(<%! Auto !%>)</tmpl_if> + <a href="javascript:change('<?% gettext('Edit timer status?') %?>','<?% timer.toggleurl %?>&timer=<?% timer.current %?>');"> + <?% IF timer.active % 32768 == 0 %?> + <img src="bilder/poempl_grau.png" alt="inactive" title="<?% gettext('This timer is inactive!') %?>" align="middle" border="0" /> + <?% ELSE %?> + <?% IF timer.critical %?> + <img src="bilder/poempl_rot.png" alt="impossible" title="<?% gettext('This timer is impossible!') %?>" align="middle" border="0" /> + <?% ELSE %?> + <?% IF timer.collision %?> + <img src="bilder/poempl_gelb.png" alt="nomore" title="<?% gettext('No more timers on other transponders possible!') %?>" align="middle" border="0" /> + <?% ELSE %?> + <?% IF timer.active %?> + <img src="bilder/poempl_gruen.png" alt="possible" title="<?% gettext('Timer OK.') %?>" align="middle" border="0" /> + <?% END %?> + <?% END %?> + <?% END %?> + <?% END %?> + <?% IF timer.active == 1 %?><?% gettext('Yes') %?><?% END %?> + <?% IF timer.active == 0 %?><?% gettext('No') %?><?% END %?> + <?% IF timer.active == 5 %?><?% gettext('VPS') %?><?% END %?> + <?% IF timer.autotimer %?>(<?% gettext('Auto') %?>)<?% END %?> </a> </div> </td> - <td class="col_channel <tmpl_if sortbychannel>selected</tmpl_if>"> - <div><a href="<tmpl_var proglink>"><tmpl_var cdesc></a></div> + <td class="col_channel <?% IF timer.sortbychannel %?>selected<?% END %?>"> + <div><a href="<?% timer.proglink %?>"><?% timer.cdesc %?></a></div> </td> - <td class="col_date <tmpl_if sortbyday>selected</tmpl_if>"> - <div><tmpl_var dor></div> + <td class="col_date <?% IF timer.sortbyday %?>selected<?% END %?>"> + <div><?% timer.dor %?></div> </td> - <td class="col_start <tmpl_if sortbystart>selected</tmpl_if>"> - <div><tmpl_var start></div> + <td class="col_start <?% IF timer.sortbystart %?>selected<?% END %?>"> + <div><?% timer.start %?></div> </td> - <td class="col_stop <tmpl_if sortbystop>selected</tmpl_if>"> - <div><tmpl_var stop></div> + <td class="col_stop <?% IF timer.sortbystop %?>selected<?% END %?>"> + <div><?% timer.stop %?></div> </td> - <td class="col_name <tmpl_if sortbyname>selected</tmpl_if>"> - <div <?% IF config.TM_TT_LIST %?>onMouseOver="tip('VDR-<tmpl_var id>'); return true;" onMouseOut="untip(); return true;"<?% END %?>> - <tmpl_if recording><img align="middle" src="bilder/rec.gif" border="0" alt="" /> </tmpl_if> - <tmpl_if infurl> - <a href="javascript:popup('<tmpl_var infurl>');"><tmpl_var title></a> - <tmpl_else> - <tmpl_var title> - </tmpl_if> + <td class="col_name <?% IF timer.sortbyname %?>selected<?% END %?>"> + <div <?% IF config.TM_TT_LIST %?>onMouseOver="tip('VDR-<?% timer.id %?>'); return true;" onMouseOut="untip(); return true;"<?% END %?>> + <?% IF timer.recording %?><img align="middle" src="bilder/rec.gif" border="0" alt="" /> <?% END %?> + <?% IF timer.infurl %?> + <a href="javascript:popup('<?% timer.infurl %?>');"><?% timer.title %?></a> + <?% ELSE %?> + <?% timer.title %?> + <?% END %?> </div> </td> <td class="col_edit"> - <div><a href="<tmpl_var modurl>"><img src="bilder/edit.png" alt="edit" title="<%! Edit !%>" border="0" /></a></div> + <div><a href="<?% timer.modurl %?>"><img src="bilder/edit.png" alt="edit" title="<?% gettext('Edit') %?>" border="0" /></a></div> </td> <td class="col_delete"> - <div><a href="javascript:del('<%! Delete timer? !%>\n\n"<tmpl_var title_js>"','<tmpl_var delurl>');"><img src="bilder/delete.png" alt="delete" title="<%! Delete !%>" border="0" /></a></div> + <div><a href="javascript:del('<?% gettext('Delete timer?') %?>\n\n"<?% timer.title_js %?>"','<?% timer.delurl %?>');"><img src="bilder/delete.png" alt="delete" title="<?% gettext('Delete') %?>" border="0" /></a></div> </td> <td class="col_checkbox"> - <div><input type="checkbox" name="xxxx_<tmpl_var id>" /></div> + <div><input type="checkbox" name="xxxx_<?% timer.id %?>" /></div> </td> </tr> -</tmpl_loop> + <?% END %?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons"> <tr> <td align="left"> - <input type="submit" class="submit" name="timer_active" value="<%! activate !%>" onclick="return confirm('<%! Edit timer status? !%>');" /> - <input type="submit" class="submit" name="timer_inactive" value="<%! inactivate !%>" onclick="return confirm('<%! Edit timer status? !%>');" /> - <%! selected timers !%> + <input type="submit" class="submit" name="timer_active" value="<?% gettext('activate') %?>" onclick="return confirm('<?% gettext('Edit timer status?') %?>');" /> + <input type="submit" class="submit" name="timer_inactive" value="<?% gettext('inactivate') %?>" onclick="return confirm('<?% gettext('Edit timer status?') %?>');" /> + <?% gettext('selected timers') %?> </td> <td align="right"> - <input type="submit" class="submit" name="timer_delete" value="<%! Delete Selected Timers !%>" onclick="return mdel('<%! Delete all selected timers? !%>');" /> + <input type="submit" class="submit" name="timer_delete" value="<?% gettext('Delete Selected Timers') %?>" onclick="return mdel('<?% gettext('Delete all selected timers?') %?>');" /> </td> </tr> </table> <input type="hidden" name="aktion" value="timer_aktion" /> - <input type="hidden" name="desc" value="<tmpl_var cur_desc>" /> - <input type="hidden" name="sortby" value="<tmpl_var sortby>" /> </form> +<?% ELSE %?> + <div class="warning"><?% gettext('No timers defined!') %?></div> +<?% END %?> </div> </body> </html> diff --git a/template/default/timer_new.html b/template/default/timer_new.html index 4b29af3..e6b0cbe 100644 --- a/template/default/timer_new.html +++ b/template/default/timer_new.html @@ -2,12 +2,12 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <tmpl_if newtimer><%! Create New Timer !%><tmpl_else><%! Edit Timer !%></tmpl_if></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% IF newtimer %?><?% gettext('Create New Timer') %?><?% ELSE %?><?% gettext('Edit Timer') %?><?% END %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <script type="text/javascript" language="JavaScript1.2"> <!-- @@ -40,127 +40,127 @@ </script> </head> -<body onload='eCheckbox("<tmpl_var dor>")' id="timer_new"> - <form action="<tmpl_var url>" method="get" name="form"> +<body onload='eCheckbox("<?% dor %?>")' id="timer_new"> + <form action="<?% url %?>" method="get" name="form"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> <td class="col_title"> - <h1><tmpl_if newtimer><%! Create New Timer !%><tmpl_else><%! Edit Timer !%></tmpl_if></h1> + <h1><?% IF newtimer %?><?% gettext('Create New Timer') %?><?% ELSE %?><?% gettext('Edit Timer') %?><?% END %?></h1> </td> -<tmpl_if name="help_url"> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>" /></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>" /></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="group"> <tr class="row_odd"> - <td class="col_label"><h5><%! Timer Active: !%></h5></td> + <td class="col_label"><h5><?% gettext('Timer Active:') %?></h5></td> <td class="col_value"> - <input type="radio" name="active" value="1" id="active_yes" <tmpl_if active>checked</tmpl_if> /><label for="active_yes"><%! Yes !%></label> - <input type="radio" name="active" value="0" id="active_no" <tmpl_unless active>checked</tmpl_unless> /><label for="active_no"><%! No !%></label> + <input type="radio" name="active" value="1" id="active_yes" <?% IF active %?>checked="checked"<?% END %?> /><label for="active_yes"><?% gettext('Yes') %?></label> + <input type="radio" name="active" value="0" id="active_no" <?% UNLESS active %?>checked="checked"<?% END %?> /><label for="active_no"><?% gettext('No') %?></label> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! AutoTimer Checking: !%></h5></td> + <td class="col_label"><h5><?% gettext('AutoTimer Checking:') %?></h5></td> <td class="col_value"> - <input type="hidden" name="event_id" value="<tmpl_var event_id>"/> - <tmpl_if expr="at_epg == 1"> - <input type="radio" name="autotimer" value="2" id="event_id" <tmpl_if expr="autotimer == 2">checked</tmpl_if> /><label for="event_id"><%! Transmission Identification !%> (<tmpl_var event_id>)</label> - </tmpl_if> - <input type="radio" name="autotimer" value="1" id="event_time" <tmpl_if expr="autotimer == 1">checked</tmpl_if> /><label for="event_time"><%! Time !%></label> - <input type="radio" name="autotimer" value="0" id="event_off" <tmpl_if expr="autotimer == 0">checked</tmpl_if> /><label for="event_off"><%! off !%></label> + <input type="hidden" name="event_id" value="<?% event_id %?>"/> + <?% IF at_epg == 1 %?> + <input type="radio" name="autotimer" value="2" id="event_id" <?% IF autotimer == 2 %?>checked="checked"<?% END %?> /><label for="event_id"><?% gettext('Transmission Identification') %?> (<?% event_id %?>)</label> + <?% END %?> + <input type="radio" name="autotimer" value="1" id="event_time" <?% IF autotimer == 1 %?>checked="checked"<?% END %?> /><label for="event_time"><?% gettext('Time') %?></label> + <input type="radio" name="autotimer" value="0" id="event_off" <?% IF autotimer == 0 %?>checked="checked"<?% END %?> /><label for="event_off"><?% gettext('off') %?></label> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Channel: !%></h5></td> + <td class="col_label"><h5><?% gettext('Channel:') %?></h5></td> <td class="col_value"> <select name="channel" class="submit"> -<tmpl_loop name="channels"> - <option value="<tmpl_var vdr_id>" <tmpl_if current>selected</tmpl_if>><tmpl_var name="name" escape="html"></option> -</tmpl_loop> +<?% FOREACH chan = channels %?> + <option value="<?% chan.vdr_id %?>" <?% IF chan.current %?>selected="selected"<?% END %?>><?% chan.name | html %?></option> +<?% END %?> </select> </td> </tr> <tr class="row_even"> - <td valign="top" class="col_label"><h5><%! Day Of Recording: !%></h5></td> + <td valign="top" class="col_label"><h5><?% gettext('Day Of Recording:') %?></h5></td> <td class="col_value"> - <input type="text" name="dor" value="<tmpl_var dor>" size="20" /> + <input type="text" name="dor" value="<?% dor %?>" size="20" /> <br /> - <input onclick="cTimer(1)" type="checkbox" name="D0" value="1" id="wday_mon" /><label for="wday_mon"><%! Monday !%></label> - <input onclick="cTimer(2)" type="checkbox" name="D1" value="1" id="wday_tue" /><label for="wday_tue"><%! Tuesday !%></label> - <input onclick="cTimer(3)" type="checkbox" name="D2" value="1" id="wday_wed" /><label for="wday_wed"><%! Wednesday !%></label> - <input onclick="cTimer(4)" type="checkbox" name="D3" value="1" id="wday_thu" /><label for="wday_thu"><%! Thursday !%></label> - <input onclick="cTimer(5)" type="checkbox" name="D4" value="1" id="wday_fri" /><label for="wday_fri"><%! Friday !%></label> - <input onclick="cTimer(6)" type="checkbox" name="D5" value="1" id="wday_sat" /><label for="wday_sat"><%! Saturday !%></label> - <input onclick="cTimer(7)" type="checkbox" name="D6" value="1" id="wday_sun" /><label for="wday_sun"><%! Sunday !%></label> + <input onclick="cTimer(1)" type="checkbox" name="D0" value="1" id="wday_mon" /><label for="wday_mon"><?% gettext('Monday') %?></label> + <input onclick="cTimer(2)" type="checkbox" name="D1" value="1" id="wday_tue" /><label for="wday_tue"><?% gettext('Tuesday') %?></label> + <input onclick="cTimer(3)" type="checkbox" name="D2" value="1" id="wday_wed" /><label for="wday_wed"><?% gettext('Wednesday') %?></label> + <input onclick="cTimer(4)" type="checkbox" name="D3" value="1" id="wday_thu" /><label for="wday_thu"><?% gettext('Thursday') %?></label> + <input onclick="cTimer(5)" type="checkbox" name="D4" value="1" id="wday_fri" /><label for="wday_fri"><?% gettext('Friday') %?></label> + <input onclick="cTimer(6)" type="checkbox" name="D5" value="1" id="wday_sat" /><label for="wday_sat"><?% gettext('Saturday') %?></label> + <input onclick="cTimer(7)" type="checkbox" name="D6" value="1" id="wday_sun" /><label for="wday_sun"><?% gettext('Sunday') %?></label> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Start Time: !%></h5></td> + <td class="col_label"><h5><?% gettext('Start Time:') %?></h5></td> <td class="col_value"> - <input type="text" name="starth" value="<tmpl_var starth>" size="2" maxlength="2" /> + <input type="text" name="starth" value="<?% starth %?>" size="2" maxlength="2" /> <b> : </b> - <input type="text" name="startm" value="<tmpl_var startm>" size="2" maxlength="2" /> - <%! o'clock !%> - <tmpl_if bstart> - (<%! Buffer: !%> <tmpl_var bstart> <%! minutes !%>) - </tmpl_if> + <input type="text" name="startm" value="<?% startm %?>" size="2" maxlength="2" /> + <?% gettext('o\'clock') %?> + <?% IF bstart %?> + (<?% gettext('Buffer:') %?> <?% bstart %?> <?% gettext('minutes') %?>) + <?% END %?> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! End Time: !%></h5></td> + <td class="col_label"><h5><?% gettext('End Time:') %?></h5></td> <td class="col_value"> - <input type="text" name="stoph" value="<tmpl_var stoph>" size="2" maxlength="2" /> + <input type="text" name="stoph" value="<?% stoph %?>" size="2" maxlength="2" /> <b> : </b> - <input type="text" name="stopm" value="<tmpl_var stopm>" size="2" maxlength="2" /> - <%! o'clock !%> - <tmpl_if bstop> - (<%! Buffer: !%> <tmpl_var bstop> <%! minutes !%>) - </tmpl_if> + <input type="text" name="stopm" value="<?% stopm %?>" size="2" maxlength="2" /> + <?% gettext('o\'clock') %?> + <?% IF bstop %?> + (<?% gettext('Buffer:') %?> <?% bstop %?> <?% gettext('minutes') %?>) + <?% END %?> </td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Use VPS: !%></h5></td> - <td class="col_value"><input type="checkbox" name="vps" value="1" <tmpl_if vps>checked</tmpl_if> /></td> + <td class="col_label"><h5><?% gettext('Use VPS:') %?></h5></td> + <td class="col_value"><input type="checkbox" name="vps" value="1" <?% IF vps %?>checked="checked"<?% END %?> /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Priority: !%></h5></td> - <td class="col_value"><input type="text" name="prio" value="<tmpl_var prio>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Priority:') %?></h5></td> + <td class="col_value"><input type="text" name="prio" value="<?% prio %?>" size="2" maxlength="2" /></td> </tr> <tr class="row_odd"> - <td class="col_label"><h5><%! Lifetime: !%></h5></td> - <td class="col_value"><input type="text" name="lft" value="<tmpl_var lft>" size="2" maxlength="2" /></td> + <td class="col_label"><h5><?% gettext('Lifetime:') %?></h5></td> + <td class="col_value"><input type="text" name="lft" value="<?% lft %?>" size="2" maxlength="2" /></td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! Title of Recording: !%></h5></td> - <td class="col_value"><input type="text" name="title" value="<tmpl_var title>" size="80" /></td> + <td class="col_label"><h5><?% gettext('Title of Recording:') %?></h5></td> + <td class="col_value"><input type="text" name="title" value="<?% title %?>" size="80" /></td> </tr> <tr class="row_odd"> - <td class="col_label" valign="top"><h5><%! Summary: !%></h5><h6>(<%! readonly !%>)</h6></td> - <td class="col_value"><textarea name="summary" rows="6" cols="80" readonly="readonly"><tmpl_var summary></textarea></td> + <td class="col_label" valign="top"><h5><?% gettext('Summary:') %?></h5><h6>(<?% gettext('readonly') %?>)</h6></td> + <td class="col_value"><textarea name="summary" rows="6" cols="80" readonly="readonly"><?% summary %?></textarea></td> </tr> -<tmpl_if pattern> +<?% IF pattern %?> <tr class="row_even"> - <td class="col_label"><h5><%! Timer has been set by AutoTimer pattern: !%></h5></td> - <td class="col_value"><tmpl_var pattern></td> + <td class="col_label"><h5><?% gettext('Timer has been set by AutoTimer pattern:') %?></h5></td> + <td class="col_value"><?% pattern %?></td> </tr> -</tmpl_if> +<?% END %?> </table> <div id="buttons"> - <input type="submit" class="submit" name="save" value="<%! Save !%>" /> - <input type="submit" class="submit" name="exit" value="<%! Cancel !%>" /> + <input type="submit" class="submit" name="save" value="<?% gettext('Save') %?>" /> + <input type="submit" class="submit" name="exit" value="<?% gettext('Cancel') %?>" /> </div> <input type="hidden" name="aktion" value="timer_add" /> - <tmpl_if referer> - <input type="hidden" name="referer" value="<tmpl_var referer>" /> - </tmpl_if> - <tmpl_if timer_id> - <input type="hidden" name="timer_id" value="<tmpl_var timer_id>" /> - </tmpl_if> + <?% IF referer %?> + <input type="hidden" name="referer" value="<?% referer %?>" /> + <?% END %?> + <?% IF timer_id %?> + <input type="hidden" name="timer_id" value="<?% timer_id %?>" /> + <?% END %?> </form> </body> diff --git a/template/default/tv.html b/template/default/tv.html index ef21ed2..5eb2dae 100644 --- a/template/default/tv.html +++ b/template/default/tv.html @@ -2,18 +2,18 @@ <html> <head> - <title>VDRAdmin-AM - <%! TV !%> (<tmpl_var host>)</title> - <meta http-equiv="Content-Type" content="text/html;charset=<%! ISO-8859-1 !%>" /> + <title>VDRAdmin-AM - <?% gettext('TV') %?> (<?% host %?>)</title> + <meta http-equiv="Content-Type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> <script type="text/javascript" language="JavaScript"> <!-- var timeout; - var interval = <tmpl_var interval>; - var size = "<tmpl_var size>"; + var interval = <?% interval %?>; + var size = "<?% size %?>"; function switch_by_select() { for (i = 0; i < document.forms[0].channel.length; ++i) @@ -33,7 +33,7 @@ function WebcamUpdate() { Before = new Date(); - NewPicUrl = "<tmpl_var url>&size=" + size + "&rand=" + Before.getTime(); + NewPicUrl = "<?% url %?>&size=" + size + "&interval=" + interval + "&rand=" + Before.getTime(); document.Bild.src = NewPicUrl; if(interval > 0) { After = new Date(); @@ -68,44 +68,44 @@ </head> <body onLoad="window.focus();WebcamUpdate()" id="tv"> - <form action="<tmpl_var url>" method="get" name="liveform"> -<tmpl_unless tv_only> + <form action="<?% url %?>" method="get" name="liveform"> +<?% UNLESS tv_only %?> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> - <td class="col_title"><h1><%! TV !%></h1></td> + <td class="col_title"><h1><?% gettext('TV') %?></h1></td> <td class="col_other"> - <h5><%! Interval: !%></h5> + <h5><?% gettext('Interval:') %?></h5> <select name="Seconds" class="submit" onChange="v_changeInterval(this.options[this.selectedIndex].value)"> - <option value="0"><%! off !%></option> - <option value="1" <tmpl_if expr="interval == 1">selected="selected"</tmpl_if>> 1 <%! sec. !%></option> - <option value="2" <tmpl_if expr="interval == 2">selected="selected"</tmpl_if>> 2 <%! sec. !%></option> - <option value="3" <tmpl_if expr="interval == 3">selected="selected"</tmpl_if>> 3 <%! sec. !%></option> - <option value="5" <tmpl_if expr="interval == 5">selected="selected"</tmpl_if>> 5 <%! sec. !%></option> - <option value="10" <tmpl_if expr="interval == 10">selected="selected"</tmpl_if>>10 <%! sec. !%></option> - <option value="30" <tmpl_if expr="interval == 30">selected="selected"</tmpl_if>>30 <%! sec. !%></option> - <option value="60" <tmpl_if expr="interval == 60">selected="selected"</tmpl_if>>60 <%! sec. !%></option> + <option value="0"><?% gettext('off') %?></option> + <option value="1" <?% IF interval == 1 %?>selected="selected"<?% END %?>> 1 <?% gettext('sec.') %?></option> + <option value="2" <?% IF interval == 2 %?>selected="selected"<?% END %?>> 2 <?% gettext('sec.') %?></option> + <option value="3" <?% IF interval == 3 %?>selected="selected"<?% END %?>> 3 <?% gettext('sec.') %?></option> + <option value="5" <?% IF interval == 5 %?>selected="selected"<?% END %?>> 5 <?% gettext('sec.') %?></option> + <option value="10" <?% IF interval == 10 %?>selected="selected"<?% END %?>>10 <?% gettext('sec.') %?></option> + <option value="30" <?% IF interval == 30 %?>selected="selected"<?% END %?>>30 <?% gettext('sec.') %?></option> + <option value="60" <?% IF interval == 60 %?>selected="selected"<?% END %?>>60 <?% gettext('sec.') %?></option> </select> - <input type="button" class="submit" name="livebild" value='<%! G !%>' title="<%! Grab the picture! !%>" onClick="WebcamUpdate()" /> - <h5><%! Size: !%></h5> + <input type="button" class="submit" name="livebild" value='<?% gettext('G') %?>' title="<?% gettext('Grab the picture!') %?>" onClick="WebcamUpdate()" /> + <h5><?% gettext('Size:') %?></h5> <select name="Size" class="submit" onChange="v_changeSize(this.options[this.selectedIndex].value)"> - <option value="full" <tmpl_if expr="size eq 'full'">selected="selected"</tmpl_if>>1:1</option> - <option value="half" <tmpl_if expr="size eq 'half'">selected="selected"</tmpl_if>>1:2</option> - <option value="quarter" <tmpl_if expr="size eq 'quarter'">selected="selected"</tmpl_if>>1:4</option> + <option value="full" <?% IF size == 'full' %?>selected="selected"<?% END %?>>1:1</option> + <option value="half" <?% IF size == 'half' %?>selected="selected"<?% END %?>>1:2</option> + <option value="quarter" <?% IF size == 'quarter' %?>selected="selected"<?% END %?>>1:4</option> </select> - <input type="button" class="submit" name="livebild" value='<%! G !%>' title="<%! Grab the picture! !%>" onClick="WebcamUpdate()" /> + <input type="button" class="submit" name="livebild" value='<?% gettext('G') %?>' title="<?% gettext('Grab the picture!') %?>" onClick="WebcamUpdate()" /> </td> - <td align="right"><tmpl_unless new_win>[<a class="submit" href="javascript:tv_open();"><%! Open in separate window !%></a>] </tmpl_unless></td> + <td align="right"><?% UNLESS new_win %?>[<a class="submit" href="javascript:tv_open();"><?% gettext('Open in separate window') %?></a>] <?% END %?></td> </tr> </table> -</tmpl_unless> +<?% END %?> <table border="0" cellspacing="0" cellpadding="0" id="content"> <tr> <td id="sect_tv"> - <img name="Bild" src="<tmpl_var url>" border="1" hspace="2" vspace="2" class="tv" alt="" /> + <img name="Bild" src="<?% url %?>" border="1" hspace="2" vspace="2" class="tv" alt="" /> <img src="bilder/spacer.gif" name="switchimage" width="2" height="1" alt="" /> </td> -<tmpl_unless tv_only> +<?% UNLESS tv_only %?> <td id="sect_rc"> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> @@ -195,15 +195,15 @@ </td> <td id="sect_channels"> <select name="channel" size="32" onchange="javascript:switch_channel('./vdradmin.pl?aktion=tv_switch&channel=' + encodeURIComponent(this.options[this.selectedIndex].value));"> -<tmpl_loop channels> - <option value="<tmpl_var vdr_id>" <tmpl_if cur>selected</tmpl_if>><tmpl_var name></option> -</tmpl_loop> +<?% FOREACH chan = channels %?> + <option value="<?% chan.vdr_id %?>" <?% IF chan.cur %?>selected="selected"<?% END %?>><?% chan.name | html %?></option> +<?% END %?> </select> <!-- <a class="submit" href="javascript:switch_by_select();">Switch</a>--> </td> -</tmpl_unless> -<tmpl_unless tv_only> -</tmpl_unless> +<?% END %?> +<?% UNLESS tv_only %?> +<?% END %?> </tr> </table> </form> diff --git a/template/default/vdr_cmds.html b/template/default/vdr_cmds.html index 701bed8..edf6365 100644 --- a/template/default/vdr_cmds.html +++ b/template/default/vdr_cmds.html @@ -2,77 +2,77 @@ <html> <head> - <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" /> - <title>VDRAdmin-AM - <%! VDR Commands !%></title> + <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" /> + <title>VDRAdmin-AM - <?% gettext('VDR Commands') %?></title> <link href="style.css" rel="stylesheet" media="screen" type="text/css" /> - <tmpl_if usercss> + <?% IF usercss %?> <link href="user.css" rel="stylesheet" media="screen" type="text/css" /> - </tmpl_if> + <?% END %?> <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> </head> <body id="vdr_cmds"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading"> <tr> - <td class="col_title"><h1><%! VDR Commands !%></h1></td> -<tmpl_if name="help_url"> + <td class="col_title"><h1><?% gettext('VDR Commands') %?></h1></td> +<?% IF help_url %?> <td class="col_help"> - <a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.png" border="0" alt="help" title="<%! Help !%>" /></a> + <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>" /></a> </td> -</tmpl_if> +<?% END %?> </tr> </table> - <form action="<tmpl_var url>" method="get" name="FormName"> + <form action="<?% url %?>" method="get" name="FormName"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="group"> <tr class="row_odd"> - <td class="col_label"><h5><%! Number of lines to show: !%></h5></td> + <td class="col_label"><h5><?% gettext('Number of lines to show:') %?></h5></td> <td class="col_value"> <select name="max_lines"> - <option value="20" <tmpl_if expr="max_lines == 20">selected="selected"</tmpl_if>>20</option> - <option value="50" <tmpl_if expr="max_lines == 50">selected="selected"</tmpl_if>>50</option> - <option value="100" <tmpl_if expr="max_lines == 100">selected="selected"</tmpl_if>>100</option> - <option value="-1" <tmpl_if expr="max_lines == -1">selected="selected"</tmpl_if>><%! unlimited !%></option> + <option value="20" <?% IF max_lines == 20 %?>selected="selected"<?% END %?>>20</option> + <option value="50" <?% IF max_lines == 50 %?>selected="selected"<?% END %?>>50</option> + <option value="100" <?% IF max_lines == 100 %?>selected="selected"<?% END %?>>100</option> + <option value="-1" <?% IF max_lines == -1 %?>selected="selected"<?% END %?>><?% gettext('unlimited') %?></option> </select> </td> </tr> <tr class="row_even"> - <td class="col_label"><h5><%! SVDRP commands: !%></h5></td> + <td class="col_label"><h5><?% gettext('SVDRP commands:') %?></h5></td> <td class="col_value"> - <input type="text" name="svdrp_cmd" value="<tmpl_var svdrp_cmd>"/> - <input type="submit" class="submit" name="run_svdrpcmd" value="<%! Run !%>" onclick="return confirm('<%! Really run this command? !%>')" /> + <input type="text" name="svdrp_cmd" value="<?% svdrp_cmd %?>"/> + <input type="submit" class="submit" name="run_svdrpcmd" value="<?% gettext('Run') %?>" onclick="return confirm('<?% gettext('Really run this command?') %?>')" /> </td> </tr> -<tmpl_if commands> +<?% IF commands.size() > 0 %?> <tr class="row_odd"> - <td class="col_label"><h5><%! Commands defined in commands.conf: !%></h5></td> + <td class="col_label"><h5><?% gettext('Commands defined in commands.conf:') %?></h5></td> <td class="col_value"> <select name="vdr_cmd" class="submit"> - <tmpl_loop commands> - <option value="<tmpl_var id>" <tmpl_if expr="vdr_cmd == id">selected="selected"</tmpl_if>><tmpl_var title></option> - </tmpl_loop> + <?% FOREACH cmd = commands %?> + <option value="<?% cmd.id %?>" <?% IF vdr_cmd == cmd.id %?>selected="selected"<?% END %?>><?% cmd.title %?></option> + <?% END %?> </select> - <input type="submit" class="submit" name="run_vdrcmd" value="<%! Run !%>" onclick="return confirm('<%! Really run this command? !%>')" /> + <input type="submit" class="submit" name="run_vdrcmd" value="<?% gettext('Run') %?>" onclick="return confirm('<?% gettext('Really run this command?') %?>')" /> </td> </tr> -</tmpl_if> +<?% END %?> </table> <input type="hidden" name="aktion" value="vdr_cmds"/> </form> -<tmpl_if show_output> +<?% IF show_output.size() > 0 %?> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="group"> <tr class="heading"> - <td><h2><%! Output !%></h2></td> + <td><h2><?% gettext('Output') %?></h2></td> </tr> -<tmpl_loop show_output> - <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>"> - <td><pre><tmpl_var line escape="html"></pre></td> +<?% FOREACH output = show_output %?> + <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>"> + <td><pre><?% output.line | html %?></pre></td> </tr> -</tmpl_loop> +<?% END %?> </table> -</tmpl_if> +<?% END %?> </body> </html> |