Commit 91a6e982 authored by Franco Fichtner's avatar Franco Fichtner

www: more translation fixes for #427

parent 77ec6d5d
...@@ -39,7 +39,7 @@ if (isset($_POST['backupcount'])) { ...@@ -39,7 +39,7 @@ if (isset($_POST['backupcount'])) {
} else { } else {
unset($config['system']['backupcount']); unset($config['system']['backupcount']);
} }
write_config('Changed backup revision count'); write_config(gettext('Changed backup revision count.'));
} elseif (isset($_POST['newver']) && $_POST['newver'] != '') { } elseif (isset($_POST['newver']) && $_POST['newver'] != '') {
foreach ($confvers as $filename => $revision) { foreach ($confvers as $filename => $revision) {
if (isset($revision['time']) && $revision['time'] == $_POST['newver']) { if (isset($revision['time']) && $revision['time'] == $_POST['newver']) {
......
...@@ -87,7 +87,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -87,7 +87,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} else { } else {
$a_1to1[$id]['disabled'] = true; $a_1to1[$id]['disabled'] = true;
} }
if (write_config("Firewall: NAT: Outbound, enable/disable NAT rule")) { if (write_config(gettext('Toggled NAT rule'))) {
mark_subsystem_dirty('natconf'); mark_subsystem_dirty('natconf');
} }
header("Location: firewall_nat_1to1.php"); header("Location: firewall_nat_1to1.php");
......
...@@ -76,7 +76,7 @@ $attribs['error']='fill="blue" font-family="Arial" font-size="4"'; ...@@ -76,7 +76,7 @@ $attribs['error']='fill="blue" font-family="Arial" font-size="4"';
$attribs['collect_initial']='fill="gray" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"'; $attribs['collect_initial']='fill="gray" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"';
//Error text if we cannot fetch data : depends on which method is used //Error text if we cannot fetch data : depends on which method is used
$error_text = "Cannot get data about interface " . htmlspecialchars($ifnum); $error_text = sprintf(gettext('Cannot get data about interface %s'), htmlspecialchars($ifnum));
$height=100; //SVG internal height : do not modify $height=100; //SVG internal height : do not modify
$width=200; //SVG internal width : do not modify $width=200; //SVG internal width : do not modify
......
...@@ -68,7 +68,7 @@ if (!is_array($config['ppps']['ppp'])) { ...@@ -68,7 +68,7 @@ if (!is_array($config['ppps']['ppp'])) {
$a_ppps = $config['ppps']['ppp']; $a_ppps = $config['ppps']['ppp'];
$pgtitle = gettext("Interfaces: PPPs"); $pgtitle = array(gettext('Interfaces'), gettext('PPPs'));
include("head.inc"); include("head.inc");
......
...@@ -51,7 +51,7 @@ $pgtitle = array(gettext("Services"), gettext("RFC 2136 clients")); ...@@ -51,7 +51,7 @@ $pgtitle = array(gettext("Services"), gettext("RFC 2136 clients"));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('label'=>'Add', 'href'=>'services_rfc2136_edit.php'), array('label' => gettext('Add'), 'href' => 'services_rfc2136_edit.php'),
); );
?> ?>
......
...@@ -166,7 +166,7 @@ include("head.inc"); ...@@ -166,7 +166,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="host" type="text" class="formfld unknown" id="host" size="30" value="<?=htmlspecialchars($pconfig['host']);?>" /> <input name="host" type="text" class="formfld unknown" id="host" size="30" value="<?=htmlspecialchars($pconfig['host']);?>" />
<br /><span>Fully qualified hostname of the host to be updated</span> <br /><span><?= gettext('Fully qualified hostname of the host to be updated.') ?></span>
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -462,7 +462,7 @@ function enable_change(whichone) { ...@@ -462,7 +462,7 @@ function enable_change(whichone) {
<td width="22%" valign="top" class="vncellreq"><?=gettext("Bind Interface"); ?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Bind Interface"); ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select name="bindip" class="formselect"> <select name="bindip" class="formselect">
<option value="">All</option> <option value=""><?= gettext('All') ?></option>
<?php $listenips = get_possible_listen_ips(); <?php $listenips = get_possible_listen_ips();
foreach ($listenips as $lip): foreach ($listenips as $lip):
$selected = ""; $selected = "";
......
...@@ -1050,11 +1050,11 @@ endforeach; ...@@ -1050,11 +1050,11 @@ endforeach;
<td></td> <td></td>
<td width="20px"></td> <td width="20px"></td>
<td width="20px"><span class="glyphicon glyphicon-user text-danger"></span></td> <td width="20px"><span class="glyphicon glyphicon-user text-danger"></span></td>
<td width="200px">System Admininistrator</td> <td width="200px"><?= gettext('System Admininistrator') ?></td>
<td width="20px"><span class="glyphicon glyphicon-user text-muted"></span></td> <td width="20px"><span class="glyphicon glyphicon-user text-muted"></span></td>
<td width="200px">Disabled User</td> <td width="200px"><?= gettext('Disabled User') ?></td>
<td width="20px"><span class="glyphicon glyphicon-user text-info"></span></td> <td width="20px"><span class="glyphicon glyphicon-user text-info"></span></td>
<td width="200px">Normal User</td> <td width="200px"><?= gettext('Normal User') ?></td>
<td></td> <td></td>
</tr> </tr>
</table> </table>
......
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