Project

General

Profile

« Previous | Next » 

Revision 49031495

Added by Jeann almost 15 years ago

Implemment gettext() calls

View differences:

usr/local/www/diag_dns.php
124 124
							<b><?=gettext("Server");?></b>
125 125
						</td>
126 126
						<td>
127
							<b><?=gettext("Query time");></b>
127
							<b><?=gettext("Query time");?></b>
128 128
						</td>
129 129
					</tr>
130 130
<?php
usr/local/www/firewall_aliases.php
169 169
<form action="firewall_aliases.php" method="post">
170 170
<?php if ($savemsg) print_info_box($savemsg); ?>
171 171
<?php if (is_subsystem_dirty('aliases')): ?><p>
172
<?php print_info_box_np gettext("The alias list has been changed.<br>You must apply the changes in order for them to take effect.");?>
172
<?php print_info_box_np (gettext("The alias list has been changed.") <br> gettext("You must apply the changes in order for them to take effect.")); ?>
173 173
<?php endif; ?>
174 174

  
175 175
<table width="100%" border="0" cellpadding="0" cellspacing="0">
usr/local/www/firewall_aliases_edit.php
137 137
	$x = is_validaliasname($_POST['name']);
138 138
	if (!isset($x)) {
139 139
		$input_errors[] = gettext("Reserved word used for alias name.");
140
	} else if ($_POST['type'] == "port" && (getservbyname($_POST['name'], "tcp") || getservbyname($_POST['name'], "udp"))) {
141
		$input_errors[] = gettext("Reserved word used for alias name.)";
142
	} else {
143
		if (is_validaliasname($_POST['name']) == false)
140
	} 
141
		else if ($_POST['type'] == "port" && (getservbyname($_POST['name'], "tcp") || getservbyname($_POST['name'], "udp"))) 
142
		{
143
		$input_errors[] = gettext("Reserved word used for alias name.");
144
		} 
145
		else {
146
			if (is_validaliasname($_POST['name']) == false)
144 147
			$input_errors[] = gettext("The alias name may only consist of the characters a-z, A-Z, 0-9, _.");
145
	}
148
		}
146 149
	/* check for name conflicts */
147 150
	if (empty($a_aliases[$id])) {
148 151
		foreach ($a_aliases as $alias) {
......
259 262
					if (!is_ipaddr($_POST["address{$x}"])
260 263
					 && !is_hostname($_POST["address{$x}"])
261 264
					 && !is_iprange($_POST["address{$x}"]))
262
						$input_errors[] = sprintf(gettext("%s is not a valid %s alias."), $_POST["address{$x}"], $_POST['type'];
265
						$input_errors[] = sprintf(gettext("%s is not a valid %s alias."), $_POST["address{$x}"], $_POST['type']);
263 266
				}
264 267
				if (is_iprange($_POST["address{$x}"])) {
265 268
					list($startip, $endip) = explode('-', $_POST["address{$x}"]);
usr/local/www/firewall_nat.php
174 174
<?php if (is_subsystem_dirty('natconf')): ?><p>
175 175
<?php
176 176
	if($savemsg)
177
		print_info_box_np("{$savemsg}<br>gettext("The NAT configuration has been changed.")<br>gettext("You must apply the changes in order for them to take effect.")");
177
		print_info_box_np("{$savemsg} <br> gettext("The NAT configuration has been changed.") <br> gettext("You must apply the changes in order for them to take effect.")");
178 178
	else
179 179
		print_info_box_np(gettext("The NAT configuration has been changed.<br>You must apply the changes in order for them to take effect."));
180 180
?>
usr/local/www/firewall_nat_out.php
291 291
</script>
292 292
<?php if ($savemsg) print_info_box($savemsg); ?>
293 293
<?php if (is_subsystem_dirty('natconf')): ?><p>
294
<?php print_info_box_np gettext(("The NAT configuration has been changed.")<br>gettext("You must apply the changes in order for them to take effect."));?><br>
294
<?php print_info_box_np gettext(("The NAT configuration has been changed.") <br> gettext("You must apply the changes in order for them to take effect."));?><br>
295 295
<?php endif; ?>
296 296
<table width="100%" border="0" cellpadding="0" cellspacing="0">  <tr><td>
297 297
<?php
usr/local/www/firewall_rules_edit.php
45 45
require("filter.inc");
46 46
require("shaper.inc");
47 47

  
48
$specialsrcdst = explode(" ", gettext("any pptp pppoe l2tp openvpn"););
48
$specialsrcdst = explode(" ", gettext("any pptp pppoe l2tp openvpn"));
49 49
$ifdisp = get_configured_interface_with_descr();
50 50
foreach ($ifdisp as $kif => $kdescr) {
51 51
	$specialsrcdst[] = "{$kif}";
......
901 901
								<option value="any" <?php $bfound = 0; if ($pconfig['dstbeginport'] == "any") { echo "selected"; $bfound = 1; } ?>><?=gettext("any");?></option>
902 902
<?php 							foreach ($wkports as $wkport => $wkportdesc): ?>
903 903
									<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstbeginport']) { echo "selected"; $bfound = 1; }?>><?=htmlspecialchars($wkportdesc);?></option>
904
<?php 							endforeach; ?>
904
<?php 							endforeach ;?>
905 905
							</select>
906 906
							<input<?php echo ($edit_disabled===true?' DISABLED':''); ?> autocomplete='off' class="formfldalias" name="dstbeginport_cust" id="dstbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstbeginport']) echo $pconfig['dstbeginport']; ?>">
907 907
						</td>
......
910 910
						<td><?=gettext("to:");?></td>
911 911
						<td>
912 912
							<select<?php echo ($edit_disabled===true?' DISABLED':''); ?> name="dstendport" class="formselect" onchange="ext_change()">
913
								<option value=""><?=gettext("(other)"?></option>
913
								<option value=""><?=gettext("(other)")?></option>
914 914
								<option value="any" <?php $bfound = 0; if ($pconfig['dstendport'] == "any") { echo "selected"; $bfound = 1; } ?>><?=gettext("any");?></option>
915 915
<?php							foreach ($wkports as $wkport => $wkportdesc): ?>
916 916
									<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstendport']) { echo "selected"; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option>
......
934 934
				<input name="log" type="checkbox" id="log" value="yes" <?php if ($pconfig['log']) echo "checked"; ?>>
935 935
				<strong><?=gettext("Log packets that are handled by this rule");?></strong>
936 936
				<br />
937
				<span class="vexpl"><?=gettext("Hint: the firewall has limited local log space. Don't turn on logging for everything. If you want to do a lot of logging, consider using a remote syslog server (see the <a href="diag_logs_settings.php">Diagnostics: System logs: Settings</a> page).");?></span>
937
				<span class="vexpl"><?=gettext("Hint: the firewall has limited local log space.") gettext("Don't turn on logging for everything.") gettext("If you want to do a lot of logging, consider using a remote syslog server (see the <a href="diag_logs_settings.php">Diagnostics: System logs: Settings</a> page).");?></span>
938 938
			</td>
939 939
		</tr>
940 940
		<tr>

Also available in: Unified diff