Commit 77ec6d5d authored by Franco Fichtner's avatar Franco Fichtner

Merge pull request #458 from fabianfrz/translation

work on #427
parents 1b03f583 45f297ad
...@@ -664,13 +664,13 @@ include("head.inc"); ...@@ -664,13 +664,13 @@ include("head.inc");
<td width="78%"> <td width="78%">
<select name="type" class="selectpicker" data-live-search="true" data-size="5" > <select name="type" class="selectpicker" data-live-search="true" data-size="5" >
<?php <?php
$type_options = array('Pass', 'Block', 'Reject'); $type_options = array('Pass' => gettext('Pass'), 'Block' => gettext('Block'), 'Reject' => gettext('Reject'));
if (!empty($pconfig['floating'])) { if (!empty($pconfig['floating'])) {
$type_options[] = 'Match'; $type_options['Match'] = gettext('Match');
} }
foreach ($type_options as $type): ?> foreach ($type_options as $type => $type_translated): ?>
<option value="<?=strtolower($type);?>" <?= strtolower($type) == strtolower($pconfig['type']) ? "selected=\"selected\"" :""; ?>> <option value="<?=strtolower($type);?>" <?= strtolower($type) == strtolower($pconfig['type']) ? "selected=\"selected\"" :""; ?>>
<?=$type;?> <?=$type_translated;?>
</option> </option>
<?php <?php
endforeach; ?> endforeach; ?>
...@@ -1124,7 +1124,7 @@ include("head.inc"); ...@@ -1124,7 +1124,7 @@ include("head.inc");
<td><a id="help_for_sourceos" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Source OS");?></td> <td><a id="help_for_sourceos" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Source OS");?></td>
<td> <td>
<select name="os" class="selectpicker" data-live-search="true" data-size="5" data-width="auto"> <select name="os" class="selectpicker" data-live-search="true" data-size="5" data-width="auto">
<option value="" <?= empty($pconfig['os']) ? "selected=\"selected\"" : ""; ?>>Any</option> <option value="" <?= empty($pconfig['os']) ? "selected=\"selected\"" : ""; ?>><?= gettext('Any') ?></option>
<?php <?php
foreach ($ostypes as $ostype): ?> foreach ($ostypes as $ostype): ?>
<option value="<?=$ostype;?>" <?= $ostype == $pconfig['os'] ? "selected=\"selected\"" : ""; ?>> <option value="<?=$ostype;?>" <?= $ostype == $pconfig['os'] ? "selected=\"selected\"" : ""; ?>>
......
...@@ -81,7 +81,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("Bridge")); ...@@ -81,7 +81,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("Bridge"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_bridge_edit.php', 'label'=>'Add'), array('href'=>'interfaces_bridge_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -72,7 +72,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("GIF")); ...@@ -72,7 +72,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("GIF"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_gif_edit.php', 'label'=>'Add'), array('href'=>'interfaces_gif_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -72,7 +72,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("GRE")); ...@@ -72,7 +72,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("GRE"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_gre_edit.php', 'label'=>'Add'), array('href'=>'interfaces_gre_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -77,7 +77,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("LAGG")); ...@@ -77,7 +77,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("LAGG"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_lagg_edit.php', 'label'=>'Add'), array('href'=>'interfaces_lagg_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -73,7 +73,7 @@ $pgtitle = gettext("Interfaces: PPPs"); ...@@ -73,7 +73,7 @@ $pgtitle = gettext("Interfaces: PPPs");
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_ppps_edit.php', 'label'=>'Add'), array('href'=>'interfaces_ppps_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -80,7 +80,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("QinQ")); ...@@ -80,7 +80,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("QinQ"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_qinq_edit.php', 'label'=>'Add'), array('href'=>'interfaces_qinq_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -78,7 +78,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("VLAN")); ...@@ -78,7 +78,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("VLAN"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_vlan_edit.php', 'label'=>'Add'), array('href'=>'interfaces_vlan_edit.php', 'label'=>gettext('Add')),
); );
......
...@@ -68,7 +68,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("Wireless")); ...@@ -68,7 +68,7 @@ $pgtitle = array(gettext("Interfaces"),gettext("Wireless"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_wireless_edit.php', 'label'=>'Add'), array('href'=>'interfaces_wireless_edit.php', 'label'=>gettext('Add')),
); );
?> ?>
......
...@@ -204,9 +204,9 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl ...@@ -204,9 +204,9 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
<thead> <thead>
<tr> <tr>
<th><?=gettext("Interface"); ?></th> <th><?=gettext("Interface"); ?></th>
<th>Sort by</th> <th><?= gettext('Sort by') ?></th>
<th>Filter</th> <th><?= gettext('Filter') ?></th>
<th>Display</th> <th><?= gettext('Display') ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -221,18 +221,18 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl ...@@ -221,18 +221,18 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
?> ?>
</select></td> </select></td>
<td><select id="sort" name="sort" class="form-control" style="z-index: -10;" onchange="document.form1.submit()"> <td><select id="sort" name="sort" class="form-control" style="z-index: -10;" onchange="document.form1.submit()">
<option value="">Bw In</option> <option value=""><?= gettext('Bw In') ?></option>
<option value="out"<?php if ($cursort == "out") echo " selected=\"selected\"";?>>Bw Out</option> <option value="out"<?php if ($cursort == "out") echo " selected=\"selected\"";?>><?= gettext('Bw Out') ?></option>
</select></td> </select></td>
<td><select id="filter" name="filter" class="form-control" style="z-index: -10;" onchange="document.form1.submit()"> <td><select id="filter" name="filter" class="form-control" style="z-index: -10;" onchange="document.form1.submit()">
<option value="local"<?php if ($curfilter == "local") echo " selected=\"selected\"";?>>Local</option> <option value="local"<?php if ($curfilter == "local") echo " selected=\"selected\"";?>><?= gettext('Local') ?></option>
<option value="remote"<?php if ($curfilter == "remote") echo " selected=\"selected\"";?>>Remote</option> <option value="remote"<?php if ($curfilter == "remote") echo " selected=\"selected\"";?>><?= gettext('Remote') ?></option>
<option value="all"<?php if ($curfilter == "all") echo " selected=\"selected\"";?>>All</option> <option value="all"<?php if ($curfilter == "all") echo " selected=\"selected\"";?>><?= gettext('All') ?></option>
</select></td> </select></td>
<td><select id="hostipformat" name="hostipformat" class="form-control" style="z-index: -10;" onchange="document.form1.submit()"> <td><select id="hostipformat" name="hostipformat" class="form-control" style="z-index: -10;" onchange="document.form1.submit()">
<option value="">IP Address</option> <option value=""><?= gettext('IP Address') ?></option>
<option value="hostname"<?php if ($curhostipformat == "hostname") echo " selected";?>>Host Name</option> <option value="hostname"<?php if ($curhostipformat == "hostname") echo " selected";?>><?= gettext('Host Name') ?></option>
<option value="fqdn"<?php if ($curhostipformat == "fqdn") echo " selected=\"selected\"";?>>FQDN</option> <option value="fqdn"<?php if ($curhostipformat == "fqdn") echo " selected=\"selected\"";?>><?= gettext('FQDN') ?></option>
</select></td> </select></td>
</tr> </tr>
</tbody> </tbody>
......
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