www: more translation fixes for #427

This commit is contained in:
Franco Fichtner 2015-11-07 22:25:28 +01:00
parent 77ec6d5d38
commit 91a6e982b7
8 changed files with 10 additions and 10 deletions

View File

@ -39,7 +39,7 @@ if (isset($_POST['backupcount'])) {
} else {
unset($config['system']['backupcount']);
}
write_config('Changed backup revision count');
write_config(gettext('Changed backup revision count.'));
} elseif (isset($_POST['newver']) && $_POST['newver'] != '') {
foreach ($confvers as $filename => $revision) {
if (isset($revision['time']) && $revision['time'] == $_POST['newver']) {

View File

@ -87,7 +87,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} else {
$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');
}
header("Location: firewall_nat_1to1.php");

View File

@ -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"';
//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
$width=200; //SVG internal width : do not modify

View File

@ -68,7 +68,7 @@ if (!is_array($config['ppps']['ppp'])) {
$a_ppps = $config['ppps']['ppp'];
$pgtitle = gettext("Interfaces: PPPs");
$pgtitle = array(gettext('Interfaces'), gettext('PPPs'));
include("head.inc");

View File

@ -51,7 +51,7 @@ $pgtitle = array(gettext("Services"), gettext("RFC 2136 clients"));
include("head.inc");
$main_buttons = array(
array('label'=>'Add', 'href'=>'services_rfc2136_edit.php'),
array('label' => gettext('Add'), 'href' => 'services_rfc2136_edit.php'),
);
?>

View File

@ -166,7 +166,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname");?></td>
<td width="78%" class="vtable">
<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>
</tr>
<tr>

View File

@ -462,7 +462,7 @@ function enable_change(whichone) {
<td width="22%" valign="top" class="vncellreq"><?=gettext("Bind Interface"); ?></td>
<td width="78%" class="vtable">
<select name="bindip" class="formselect">
<option value="">All</option>
<option value=""><?= gettext('All') ?></option>
<?php $listenips = get_possible_listen_ips();
foreach ($listenips as $lip):
$selected = "";

View File

@ -1050,11 +1050,11 @@ endforeach;
<td></td>
<td width="20px"></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="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="200px">Normal User</td>
<td width="200px"><?= gettext('Normal User') ?></td>
<td></td>
</tr>
</table>