Project

General

Profile

« Previous | Next » 

Revision 1eacdc8a

Added by Carlos Eduardo Ramos about 15 years ago

Implement gettext()

View differences:

usr/local/www/system_advanced_admin.php
76 76
	/* input validation */
77 77
	if ($_POST['webguiport'])
78 78
		if(!is_port($_POST['webguiport']))
79
			$input_errors[] = "You must specify a valid webConfigurator port number";
79
			$input_errors[] = gettext("You must specify a valid webConfigurator port number");
80 80

  
81 81
	if ($_POST['sshport'])
82 82
		if(!is_port($_POST['sshport']))
83
			$input_errors[] = "You must specify a valid port number";
83
			$input_errors[] = gettext("You must specify a valid port number");
84 84

  
85 85
	if($_POST['sshdkeyonly'] == "yes")
86 86
		$config['system']['ssh']['sshdkeyonly'] = "enabled";
......
157 157
	    $savemsg = get_std_save_message($retval);
158 158

  
159 159
		if ($restart_webgui)
160
			$savemsg .= "<br />One moment...redirecting to {$url} in 20 seconds.";
160
			#$savemsg .= sprintf("<br />" . gettext("One moment...redirecting to %s in 20 seconds."),{$url});
161
			$savemsg .= "<br />" . gettext("One moment...redirecting to {$url} in 20 seconds.");
161 162

  
162 163
		conf_mount_rw();
163 164
		setup_serial_port();
......
212 213
					<div class="tabcont">
213 214
						<span class="vexpl">
214 215
							<span class="red">
215
								<strong>NOTE:&nbsp</strong>
216
								<strong><?=gettext("NOTE"); ?>:&nbsp</strong>
216 217
							</span>
217
							The options on this page are intended for use by advanced users only.
218
							<?=gettext("The options on this page are intended for use by advanced users only."); ?>
218 219
							<br/>
219 220
						</span>
220 221
						<br/>
221 222
						<table width="100%" border="0" cellpadding="6" cellspacing="0">
222 223
							<tr>
223
								<td colspan="2" valign="top" class="listtopic">webConfigurator</td>
224
								<td colspan="2" valign="top" class="listtopic"><?=gettext("webConfigurator"); ?></td>
224 225
							</tr>
225 226
							<tr>
226
								<td width="22%" valign="top" class="vncell">Protocol</td>
227
								<td width="22%" valign="top" class="vncell"><?=gettext("Protocol"); ?></td>
227 228
								<td width="78%" class="vtable">
228 229
									<?php
229 230
										if ($pconfig['webguiproto'] == "http")
......
240 241
									HTTPS
241 242
									<?php if (!$certs_available): ?>
242 243
									<br/>
243
									No Certificates have been defined. You must
244
									<a href="system_certmanager.php">Create or Import</a>
245
									a Certificate before SSL can be enabled.
244
									<?=gettext("No Certificates have been defined. You must"); ?>
245
									<a href="system_certmanager.php"><?=gettext("Create or Import"); ?></a>
246
									<?=gettext("a Certificate before SSL can be enabled."); ?>
246 247
									<?php endif; ?>
247 248
								</td>
248 249
							</tr>
249 250
							<tr id="ssl_opts">
250
								<td width="22%" valign="top" class="vncell">SSL Certificate</td>
251
								<td width="22%" valign="top" class="vncell"><?=gettext("SSL Certificate"); ?></td>
251 252
								<td width="78%" class="vtable">
252 253
									<select name="ssl-certref" id="ssl-certref" class="formselect">
253 254
										<?php
......
262 263
								</td>
263 264
							</tr>
264 265
							<tr>
265
								<td valign="top" class="vncell">TCP port</td>
266
								<td valign="top" class="vncell"><?=gettext("TCP port"); ?></td>
266 267
								<td class="vtable">
267 268
									<input name="webguiport" type="text" class="formfld unknown" id="webguiport" "size="5" value="<?=htmlspecialchars($config['system']['webgui']['port']);?>">
268 269
									<br>
269 270
									<span class="vexpl">
270
										Enter a custom port number for the webConfigurator
271
										<?=gettext("Enter a custom port number for the webConfigurator
271 272
										above if you want to override the default (80 for HTTP, 443
272
										for HTTPS). Changes will take effect immediately after save.
273
										for HTTPS). Changes will take effect immediately after save."); ?>
273 274
									</span>
274 275
								</td>
275 276
							</tr>
......
283 284
											$lockout_interface = "WAN";
284 285
									?>
285 286
									<input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked"; ?> />
286
									<strong>Disable webConfigurator anti-lockout rule</strong>
287
									<strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong>
287 288
									<br/>
288
									When this is unchecked, access to the webConfigurator on the <?=$lockout_interface;?>
289
									<?=gettext("When this is unchecked, access to the webConfigurator on the $lockout_interface
289 290
									interface is always permitted, regardless of the user-defined firewall
290 291
									rule set. Check this box to disable this automatically added rule, so access
291 292
									to the webConfigurator is controlled by the user-defined firewall rules 
292
									(ensure you have a firewall rule in place that allows you in, or you will
293
									lock yourself out!). <em> Hint: the &quot;Set interface(s) IP address&quot;
294
									option in the console menu resets this setting as well. </em>
293
									(ensure you have a firewall rule in place that allows you in, or you will"); ?>
294
									<?=gettext("lock yourself out!)"); ?>. <em> <?=gettext("Hint: the &quot;Set interface(s) IP address&quot;
295
									option in the console menu resets this setting as well."); ?> </em>
295 296
								</td>
296 297
							</tr>
297 298
							<tr>
298 299
								<td colspan="2" class="list" height="12">&nbsp;</td>
299 300
							</tr>
300 301
							<tr>
301
								<td colspan="2" valign="top" class="listtopic">Secure Shell</td>
302
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Secure Shell"); ?></td>
302 303
							</tr>
303 304
							<tr>
304 305
								<td width="22%" valign="top" class="vncell">Secure Shell Server</td>
305 306
								<td width="78%" class="vtable">
306 307
									<input name="enablesshd" type="checkbox" id="enablesshd" value="yes" <?php if (isset($pconfig['enablesshd'])) echo "checked"; ?> />
307
									<strong>Enable Secure Shell</strong>
308
									<strong><?=gettext("Enable Secure Shell"); ?></strong>
308 309
								</td>
309 310
							</tr>
310 311
							<tr>
311
								<td width="22%" valign="top" class="vncell">Authentication Method</td>
312
								<td width="22%" valign="top" class="vncell"><?=gettext("Authentication Method"); ?></td>
312 313
								<td width="78%" class="vtable">
313 314
									<input name="sshdkeyonly" type="checkbox" id="sshdkeyonly" value="yes" <?php if ($pconfig['sshdkeyonly']) echo "checked"; ?> />
314
									<strong>Disable Password login for Secure Shell (rsa key only)</strong>
315
									<strong><?=gettext("Disable Password login for Secure Shell (rsa key only)"); ?></strong>
315 316
									<br/>
316
									When enabled, authorized keys need to be configured for each
317
									<?=gettext("When enabled, authorized keys need to be configured for each"); ?>
317 318
									<a href="system_usermanager.php">user</a>
318
									that has been granted secure shell access.
319
									<?=gettext("that has been granted secure shell access."); ?>
319 320
								</td>
320 321
							</tr>
321 322
							<tr>
322
								<td width="22%" valign="top" class="vncell">SSH port</td>
323
								<td width="22%" valign="top" class="vncell"><?=gettext("SSH port"); ?></td>
323 324
								<td width="78%" class="vtable">
324 325
									<input name="sshport" type="text" id="sshport" value="<?php echo $pconfig['sshport']; ?>" />
325 326
									<br/>
326
									<span class="vexpl">Note:  Leave this blank for the default of 22</span>
327
									<span class="vexpl"><?=gettext("Note:  Leave this blank for the default of 22"); ?></span>
327 328
								</td>
328 329
							</tr>
329 330
							<tr>
......
331 332
							</tr>
332 333
							<?php if($g['platform'] == "pfSense" || $g['platform'] == "cdrom"): ?>
333 334
							<tr>
334
								<td colspan="2" valign="top" class="listtopic">Serial Communcations</td>
335
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communcations"); ?></td>
335 336
							</tr>
336 337
							<tr>
337
								<td width="22%" valign="top" class="vncell">Serial Terminal</td>
338
								<td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td>
338 339
								<td width="78%" class="vtable">
339 340
									<input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked"; ?> />
340
									<strong>This will enable the first serial port with 9600/8/N/1</strong>
341
									<strong><?=gettext("This will enable the first serial port with 9600/8/N/1"); ?></strong>
341 342
									<br>
342
									<span class="vexpl">Note:  This will disable the internal video card/keyboard</span>
343
									<span class="vexpl"><?=gettext("Note:  This will disable the internal video card/keyboard"); ?></span>
343 344
								</td>
344 345
							</tr>
345 346
							<tr>
......
347 348
							</tr>
348 349
							<?php endif; ?>
349 350
							<tr>
350
								<td colspan="2" valign="top" class="listtopic">Console Options</td>
351
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Console Options"); ?></td>
351 352
							</tr>
352 353
							<tr>
353
								<td width="22%" valign="top" class="vncell">Console menu</td>
354
								<td width="22%" valign="top" class="vncell"><?=gettext("Console menu"); ?></td>
354 355
								<td width="78%" class="vtable">
355 356
									<input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked"; ?>  />
356
									<strong>Password protect the console menu</strong>
357
									<strong><?=gettext("Password protect the console menu"); ?></strong>
357 358
									<br/>
358
									<span class="vexpl">Changes to this option will take effect after a reboot.</span>
359
									<span class="vexpl"><?=gettext("Changes to this option will take effect after a reboot."); ?></span>
359 360
								</td>
360 361
							</tr>
361 362
							<tr>
......
392 393
if ($restart_sshd) {
393 394

  
394 395
	mwexec("/usr/bin/killall sshd");
395
	log_error("secure shell configuration has changed. Stopping sshd.");
396
	log_error(gettext("secure shell configuration has changed. Stopping sshd."));
396 397

  
397 398
	if ($config['system']['enablesshd']) {
398
		log_error("secure shell configuration has changed. Restarting sshd.");
399
		log_error(gettext("secure shell configuration has changed. Restarting sshd."));
399 400
		touch("{$g['tmp_path']}/start_sshd");
400 401
	}
401 402
}
402 403
if ($restart_webgui) {
403 404
	ob_flush();
404 405
	flush();
405
	log_error("webConfigurator configuration has changed. Restarting webConfigurator.");
406
	log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
406 407
	touch("{$g['tmp_path']}/restart_webgui");
407 408
}
408 409

  
usr/local/www/system_advanced_misc.php
101 101
		$retval = 0;
102 102
		$retval = filter_configure();
103 103
		if(stristr($retval, "error") <> true)
104
		    $savemsg = get_std_save_message($retval);
104
		    $savemsg = get_std_save_message(gettext($retval));
105 105
		else
106
		    $savemsg = $retval;
106
		    $savemsg = gettext($retval);
107 107
		
108 108
		activate_powerd();
109 109
		load_glxsb();
......
144 144
					<div class="tabcont">
145 145
						<span class="vexpl">
146 146
							<span class="red">
147
								<strong>NOTE:&nbsp</strong>
147
								<strong><?=gettext("NOTE:"); ?>&nbsp</strong>
148 148
							</span>
149
							The options on this page are intended for use by advanced users only.
149
							<?=gettext("The options on this page are intended for use by advanced users only."); ?>
150 150
							<br/>
151 151
						</span>
152 152
						<br/>
153 153
						<table width="100%" border="0" cellpadding="6" cellspacing="0">
154 154
							<tr>
155
								<td colspan="2" valign="top" class="listtopic">Load Balancing</td>
155
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Load Balancing"); ?></td>
156 156
							</tr>
157 157
							<tr>
158
								<td width="22%" valign="top" class="vncell">Load Balancing</td>
158
								<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
159 159
								<td width="78%" class="vtable">
160 160
									<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> />
161
									<strong>Use sticky connections</strong><br/>
162
									Successive connections will be redirected to the servers
161
									<strong><?=gettext("Use sticky connections"); ?></strong><br/>
162
									<?=gettext("Successive connections will be redirected to the servers
163 163
									in a round-robin manner with connections from the same
164
									source being sent to the same web server. This "sticky
165
									connection" will exist as long as there are states that
164
									source being sent to the same web server. This 'sticky
165
									connection' will exist as long as there are states that
166 166
									refer to this connection. Once the states expire, so will
167 167
									the sticky connection. Further connections from that host
168 168
									will be redirected to the next web server in the round
169
									robin.
169
									robin."); ?>
170 170
								</td>
171 171
							</tr>
172 172
							<tr>
173 173
								<td colspan="2" class="list" height="12">&nbsp;</td>
174 174
							</tr>
175 175
							<tr>
176
								<td colspan="2" valign="top" class="listtopic">Power savings</td>
176
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Power savings"); ?></td>
177 177
							</tr>
178 178
							<tr>
179
								<td width="22%" valign="top" class="vncell">PowerD</td>
179
								<td width="22%" valign="top" class="vncell"><?=gettext("PowerD"); ?></td>
180 180
								<td width="78%" class="vtable">
181 181
									<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked"; ?> />
182
									<strong>Use PowerD</strong><br/>
182
									<strong><?=gettext("Use PowerD"); ?></strong><br/>
183 183
									<br />
184
								     The powerd utility monitors the system state and sets various power control 
184
								     <?=gettext("The powerd utility monitors the system state and sets various power control 
185 185
								     options accordingly.	It offers three modes (maximum, minimum, and
186 186
								     adaptive) that can be individually selected while on AC power or batteries.  
187 187
								     The modes maximum, minimum, and adaptive may be abbreviated max,
......
190 190
								     Adaptive mode attempts to strike a balance by degrading performance when
191 191
								     the system appears idle and increasing it when the system is busy.  It
192 192
								     offers a good balance between a small performance loss for greatly
193
								     increased power savings.  The default mode for pfSense is adaptive.
193
								     increased power savings.  The default mode for pfSense is adaptive."); ?>
194 194
								</td>
195 195
							</tr>
196 196
							<tr>
197 197
								<td colspan="2" class="list" height="12">&nbsp;</td>
198 198
							</tr>
199 199
							<tr>
200
								<td colspan="2" valign="top" class="listtopic">glxsb Crypto Acceleration</td>
200
								<td colspan="2" valign="top" class="listtopic"><?=gettext("glxsb Crypto Acceleration"); ?></td>
201 201
							</tr>
202 202
							<tr>
203
								<td width="22%" valign="top" class="vncell">glxsb</td>
203
								<td width="22%" valign="top" class="vncell"><?=gettext("glxsb"); ?></td>
204 204
								<td width="78%" class="vtable">
205 205
									<input name="glxsb_enable" type="checkbox" id="glxsb_enable" value="yes" <?php if ($pconfig['glxsb_enable']) echo "checked"; ?> />
206
									<strong>Use glxsb</strong><br/>
206
									<strong><?=gettext("Use glxsb"); ?></strong><br/>
207 207
									<br />
208
								     The AMD Geode LX Security Block will accelerate some cryptographic functions
208
								     <?=gettext("The AMD Geode LX Security Block will accelerate some cryptographic functions
209 209
								     on systems which have the chip. Do not enable this option if you have a
210 210
								     Hifn cryptographic acceleration card, as this will take precedence and the
211 211
								     Hifn card will not be used. Acceleration should be automatic for IPsec 
212
								     when using Rijndael (AES). OpenVPN should be set for AES-128-CBC.
212
								     when using Rijndael (AES). OpenVPN should be set for AES-128-CBC."); ?>
213 213
								     <br/><br/>
214
								     If you do not have a glxsb chip in your system, this option will have no 
215
								     effect. To unload the module, uncheck this option and then reboot.
214
								     <?=gettext("If you do not have a glxsb chip in your system, this option will have no 
215
								     effect. To unload the module, uncheck this option and then reboot."); ?>
216 216
								</td>
217 217
							</tr>
218 218
							<tr>
219 219
								<td colspan="2" class="list" height="12">&nbsp;</td>
220 220
							</tr>
221 221
							<tr>
222
								<td colspan="2" valign="top" class="listtopic">IP Security</td>
222
								<td colspan="2" valign="top" class="listtopic"><?=gettext("IP Security"); ?></td>
223 223
							</tr>
224 224
							<tr>
225
								<td width="22%" valign="top" class="vncell">Security Assocications</td>
225
								<td width="22%" valign="top" class="vncell"><?=gettext("Security Assocications"); ?></td>
226 226
								<td width="78%" class="vtable">
227 227
									<input name="preferoldsa_enable" type="checkbox" id="preferoldsa_enable" value="yes" <?php if ($pconfig['preferoldsa_enable']) echo "checked"; ?> />
228
									<strong>Prefer older IPsec SAs</strong>
228
									<strong><?=gettext("Prefer older IPsec SAs"); ?></strong>
229 229
									<br />
230
									By default, if several SAs match, the newest one is
230
									<?=gettext("By default, if several SAs match, the newest one is
231 231
									preferred if it's at least 30 seconds old. Select this
232
									option to always prefer old SAs over new ones.
232
									option to always prefer old SAs over new ones."); ?>
233 233
								</td>
234 234
							</tr>
235 235
                                                        <tr>
236 236
                                                                <td colspan="2" class="list" height="12">&nbsp;</td>
237 237
                                                        </tr>
238 238
                                                        <tr>
239
                                                                <td colspan="2" valign="top" class="listtopic">Schedules</td>
239
                                                                <td colspan="2" valign="top" class="listtopic"><?=gettext("Schedules"); ?></td>
240 240
                                                        </tr>
241 241
                                                        <tr>
242
                                                                <td width="22%" valign="top" class="vncell">Schedule States</td>
242
                                                                <td width="22%" valign="top" class="vncell"><?=gettext("Schedule States"); ?></td>
243 243
                                                                <td width="78%" class="vtable">
244 244
                                                                        <input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked"; ?> />
245 245
                                                                        <br />
246
									By default schedules clear the states of existing connections when expiry time has come.
247
									This option allows to override this setting by not clearing states for existing connections.
246
									<?=gettext("By default schedules clear the states of existing connections when expiry time has come.
247
									This option allows to override this setting by not clearing states for existing connections."); ?>
248 248
                                                                </td>
249 249
                                                        </tr>
250 250
							<tr>
......
252 252
							</tr>
253 253
							<?php if($g['platform'] == "pfSenseDISABLED"): ?>
254 254
							<tr>
255
								<td colspan="2" valign="top" class="listtopic">Hardware Settings</td>
255
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Hardware Settings"); ?></td>
256 256
							</tr>
257 257
							<tr>
258
								<td width="22%" valign="top" class="vncell">Hard disk standby time </td>
258
								<td width="22%" valign="top" class="vncell"><?=gettext("Hard disk standby time "); ?></td>
259 259
								<td width="78%" class="vtable">
260 260
									<select name="harddiskstandby" class="formselect">
261 261
										<?php
262 262
										 	## Values from ATA-2 http://www.t13.org/project/d0948r3-ATA-2.pdf (Page 66)
263 263
											$sbvals = explode(" ", "0.5,6 1,12 2,24 3,36 4,48 5,60 7.5,90 10,120 15,180 20,240 30,241 60,242");
264 264
										?>
265
										<option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>>Always on</option>
265
										<option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>><?=gettext("Always on"); ?></option>
266 266
										<?php
267 267
											foreach ($sbvals as $sbval):
268 268
												list($min,$val) = explode(",", $sbval);
269 269
										?>
270
										<option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> minutes</option>
270
										<option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> <?=gettext("minutes"); ?></option>
271 271
										<?php endforeach; ?>
272 272
									</select>
273 273
									<br/>
274
									Puts the hard disk into standby mode when the selected amount of time after the last
275
									access has elapsed. <em>Do not set this for CF cards.</em>
274
									<?=gettext("Puts the hard disk into standby mode when the selected amount of time after the last
275
									access has elapsed."); ?> <em><?=gettext("Do not set this for CF cards."); ?></em>
276 276
								</td>
277 277
							</tr>
278 278
							<tr>
usr/local/www/system_advanced_network.php
63 63
    $pconfig = $_POST;
64 64

  
65 65
	if ($_POST['ipv6nat_enable'] && !is_ipaddr($_POST['ipv6nat_ipaddr']))
66
		$input_errors[] = "You must specify an IP address to NAT IPv6 packets.";
66
		$input_errors[] = gettext("You must specify an IP address to NAT IPv6 packets.");
67 67

  
68 68
    ob_flush();
69 69
    flush();
......
125 125

  
126 126
		$retval = filter_configure();
127 127
		if(stristr($retval, "error") <> true)
128
		    $savemsg = get_std_save_message($retval);
128
		    $savemsg = get_std_save_message(gettext($retval));
129 129
		else
130
		    $savemsg = $retval;
130
		    $savemsg = gettext($retval);
131 131
	}
132 132
}
133 133

  
......
180 180
					<div class="tabcont">
181 181
						<span class="vexpl">
182 182
		    	        	<span class="red">
183
								<strong>NOTE:&nbsp</strong>
183
								<strong><?=gettext("NOTE:"); ?>&nbsp</strong>
184 184
							</span>
185
							The options on this page are intended for use by advanced users only.
185
							<?=gettext("The options on this page are intended for use by advanced users only."); ?>
186 186
							<br/>
187 187
						</span>
188 188
						<br/>
189 189
						<table width="100%" border="0" cellpadding="6" cellspacing="0">
190 190
							<tr>
191
								<td colspan="2" valign="top" class="listtopic">IPv6 Options</td>
191
								<td colspan="2" valign="top" class="listtopic"><?=gettext("IPv6 Options"); ?></td>
192 192
							</tr>
193 193
							<tr>
194
								<td width="22%" valign="top" class="vncell">Allow IPv6</td>
194
								<td width="22%" valign="top" class="vncell"><?=gettext("Allow IPv6"); ?></td>
195 195
								<td width="78%" class="vtable">
196 196
									<input name="ipv6allow" type="checkbox" id="ipv6allow" value="yes" <?php if ($pconfig['ipv6allow']) echo "checked"; ?> onclick="enable_change(false)" />
197
									<strong>Allow IPv6</strong><br/>
198
									All IPv6 will be blocked unless this box is checked.<br/>
197
									<strong><?=gettext("Allow IPv6"); ?></strong><br/>
198
									<?=gettext("All IPv6 will be blocked unless this box is checked."); ?><br/>
199 199
									<br/>
200 200
								</td>
201 201
							</tr>
202 202
							<tr>
203
								<td width="22%" valign="top" class="vncell">IPv6 over IPv4 Tunneling</td>
203
								<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 over IPv4 Tunneling"); ?></td>
204 204
								<td width="78%" class="vtable">
205 205
									<input name="ipv6nat_enable" type="checkbox" id="ipv6nat_enable" value="yes" <?php if ($pconfig['ipv6nat_enable']) echo "checked"; ?> onclick="enable_change(false)" />
206
									<strong>Enable IPv4 NAT encapsulation of IPv6 packets</strong><br/>
207
									This provides an RFC 2893 compatibility mechanism
206
									<strong><?=gettext("Enable IPv4 NAT encapsulation of IPv6 packets"); ?></strong><br/>
207
									<?=gettext("This provides an RFC 2893 compatibility mechanism
208 208
									that can be used to tunneling IPv6 packets over IPv4
209 209
									routing	infrastructures. If enabled, don't forget to
210
									add a firewall rule to permit IPv6 packets.<br/>
210
									add a firewall rule to permit IPv6 packets."); ?><br/>
211 211
									<br/>
212
									IP address :&nbsp;
212
									<?=gettext("IP address :"); ?>&nbsp;
213 213
									<input name="ipv6nat_ipaddr" type="text" class="formfld unknown" id="ipv6nat_ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipv6nat_ipaddr']);?>" />
214 214
								</td>
215 215
							</tr>
......
217 217
								<td colspan="2" class="list" height="12">&nbsp;</td>
218 218
							</tr>
219 219
							<tr>
220
								<td colspan="2" valign="top" class="listtopic">Network Interfaces</td>
220
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Network Interfaces"); ?></td>
221 221
							</tr>
222 222
							<tr>
223
								<td width="22%" valign="top" class="vncell">Device polling</td>
223
								<td width="22%" valign="top" class="vncell"><?=gettext("Device polling"); ?></td>
224 224
								<td width="78%" class="vtable">
225 225
									<input name="polling_enable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['polling_enable']) echo "checked"; ?>>
226
									<strong>Enable device polling</strong><br>
227
									Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This prevents your webConfigurator, SSH, etc. from being inaccessible due to interrupt floods when under extreme load. Generally this is not recommended.
228
									Not all NICs support polling; see the <?= $g['product_name'] ?> homepage for a list of supported cards.
226
									<strong><?=gettext("Enable device polling"); ?></strong><br>
227
									<?=gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This prevents your webConfigurator, SSH, etc. from being inaccessible due to interrupt floods when under extreme load. Generally this is not recommended.
228
									Not all NICs support polling; see the $g['product_name'] homepage for a list of supported cards."); ?>
229 229
								</td>
230 230
							</tr>
231 231
							<tr>
232
								<td width="22%" valign="top" class="vncell">Hardware Checksum Offloading</td>
232
								<td width="22%" valign="top" class="vncell"><?=gettext("Hardware Checksum Offloading"); ?></td>
233 233
								<td width="78%" class="vtable">
234 234
									<input name="disablechecksumoffloading" type="checkbox" id="disablechecksumoffloading" value="yes" <?php if (isset($config['system']['disablechecksumoffloading'])) echo "checked"; ?> />
235
									<strong>Disable hardware checksum offload</strong><br>
236
									Checking this option will disable hardware checksum offloading. Checksum offloading is broken in some hardware, particularly some Realtek cards. Rarely, drivers may have problems with checksum offloading and some specific NICs.
235
									<strong><?=gettext("Disable hardware checksum offload"); ?></strong><br>
236
									<?=gettext("Checking this option will disable hardware checksum offloading. Checksum offloading is broken in some hardware, particularly some Realtek cards. Rarely, drivers may have problems with checksum offloading and some specific NICs."); ?>
237 237
								</td>
238 238
							</tr>		
239 239
							<tr>
240
								<td width="22%" valign="top" class="vncell">ARP Handling</td>
240
								<td width="22%" valign="top" class="vncell"><?=gettext("ARP Handling"); ?></td>
241 241
								<td width="78%" class="vtable">
242 242
									<input name="sharednet" type="checkbox" id="sharednet" value="yes" <?php if (isset($pconfig['sharednet'])) echo "checked"; ?> />
243
									<strong>Suppress ARP messages</strong><br>
244
									This option will suppress ARP log messages when multiple interfaces reside on the same broadcast domain</strong>
243
									<strong><?=gettext("Suppress ARP messages"); ?></strong><br>
244
									<?=gettext("This option will suppress ARP log messages when multiple interfaces reside on the same broadcast domain"); ?></strong>
245 245
								</td>
246 246
							</tr>
247 247
<?php 

Also available in: Unified diff