Commit 5e97c86d authored by Franco Fichtner's avatar Franco Fichtner

system: better translation and style

Suggested by: @fabianfrz
parent 6fbd2dcc
...@@ -486,16 +486,14 @@ include("head.inc"); ...@@ -486,16 +486,14 @@ include("head.inc");
</tr> </tr>
<tr> <tr>
<td><a id="help_for_rrdbackup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Periodic RRD Backup");?></td> <td><a id="help_for_rrdbackup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Periodic RRD Backup");?></td>
<td> <td>
<select name="rrdbackup" class="selectpicker" data-style="btn-default" id="rrdbackup"> <select name="rrdbackup" class="selectpicker" data-style="btn-default" id="rrdbackup">
<option value='0' <?=!$pconfig['rrdbackup'] == 0 ? "selected='selected'" : "";?>> <option value='0' <?=!$pconfig['rrdbackup'] == 0 ? 'selected="selected"' : ''; ?>><?=gettext("Disabled"); ?></option>
<?=gettext("Disable"); ?>
</option>
<?php <?php
for ($x=1; $x<=24; $x++):?> for ($x = 1; $x <= 24; $x++): ?>
<option value='<?= $x ?>' <?= $pconfig['rrdbackup'] == $x ? "selected='selected'" : "";?>> <option value="<?= $x ?>" <?= $pconfig['rrdbackup'] == $x ? 'selected="selected"' : ''; ?>>
<?= $x ?> <?=gettext("hour"); ?><?=($x>1) ? "s" : "";?> <?= $x == 1 ? gettext('1 hour') : sprintf(gettext('%s hours'), $x) ?>
</option> </option>
<?php <?php
endfor; ?> endfor; ?>
</select> </select>
...@@ -509,11 +507,11 @@ include("head.inc"); ...@@ -509,11 +507,11 @@ include("head.inc");
<td><a id="help_for_dhcpbackup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Periodic DHCP Leases Backup");?></td> <td><a id="help_for_dhcpbackup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Periodic DHCP Leases Backup");?></td>
<td> <td>
<select name="dhcpbackup" class="selectpicker" data-style="btn-default" id="dhcpbackup"> <select name="dhcpbackup" class="selectpicker" data-style="btn-default" id="dhcpbackup">
<option value='0' <?= $pconfig['dhcpbackup'] == 0 ? "selected='selected'" : ""; ?>><?=gettext("Disable"); ?></option> <option value='0' <?= $pconfig['dhcpbackup'] == 0 ? "selected='selected'" : ''; ?>><?=gettext('Disabled'); ?></option>
<?php <?php
for ($x=1; $x<=24; $x++):?> for ($x = 1; $x <= 24; $x++): ?>
<option value='<?= $x ?>' <?= $pconfig['dhcpbackup'] == $x ? "selected='selected'" : "";?>> <option value="<?= $x ?>" <?= $pconfig['dhcpbackup'] == $x ? 'selected="selected"' : '';?>>
<?= $x ?> <?=gettext("hour"); ?><?=($x>1) ? "s" : "";?> <?= $x == 1 ? gettext('1 hour') : sprintf(gettext('%s hours'), $x) ?>
</option> </option>
<?php <?php
endfor; ?> endfor; ?>
...@@ -527,11 +525,11 @@ include("head.inc"); ...@@ -527,11 +525,11 @@ include("head.inc");
<td><a id="help_for_netflowbackup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Periodic NetFlow Backup");?></td> <td><a id="help_for_netflowbackup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Periodic NetFlow Backup");?></td>
<td> <td>
<select name="netflowbackup" class="selectpicker" data-style="btn-default" id="netflowbackup"> <select name="netflowbackup" class="selectpicker" data-style="btn-default" id="netflowbackup">
<option value='0' <?= $pconfig['netflowbackup'] == 0 ? "selected='selected'" : ""; ?>><?=gettext("Disable"); ?></option> <option value='0' <?= $pconfig['netflowbackup'] == 0 ? 'selected="selected"' : ''; ?>><?=gettext('Disabled'); ?></option>
<?php <?php
for ($x=1; $x<=24; $x++):?> for ($x = 1; $x <= 24; $x++): ?>
<option value='<?= $x ?>' <?= $pconfig['netflowbackup'] == $x ? "selected='selected'" : "";?>> <option value="<?= $x ?>" <?= $pconfig['netflowbackup'] == $x ? 'selected="selected"' : '';?>>
<?= $x ?> <?=gettext("hour"); ?><?=($x>1) ? "s" : "";?> <?= $x == 1 ? gettext('1 hour') : sprintf(gettext('%s hours'), $x) ?>
</option> </option>
<?php <?php
endfor; ?> endfor; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment