Projet

Général

Profil

« Précédent | Suivant » 

Révision d6c9dcf9

Ajouté par Renato Botelho il y a plus de 9 ans

Add missing gettext calls

Voir les différences:

usr/local/www/diag_ipsec.php
139 139
				<td class="listr">
140 140
<?php
141 141
				if (!is_array($ikesa['local']))
142
					echo "Unknown";
142
					echo gettext("Unknown");
143 143
				else {
144 144
					if (!empty($ikesa['local']['identification'])) {
145 145
						if ($ikesa['local']['identification'] == '%any')
146
							echo 'Any identifier';
146
							echo gettext('Any identifier');
147 147
						else
148 148
							echo htmlspecialchars($ikesa['local']['identification']);
149 149
					} else
150
						echo 'Unknown';
150
						echo gettext("Unknown");
151 151
				}
152 152
?>
153 153
				</td>
154 154
				<td class="listr">
155 155
<?php
156 156
				if (!is_array($ikesa['local']))
157
					echo "Unknown";
157
					echo gettext("Unknown");
158 158
				else {
159 159
					if (!empty($ikesa['local']['address']))
160
						echo htmlspecialchars($ikesa['local']['address']) . '<br/>Port:' . htmlspecialchars($ikesa['local']['port']);
160
						echo htmlspecialchars($ikesa['local']['address']) . '<br/>' .
161
							gettext('Port: ') . htmlspecialchars($ikesa['local']['port']);
161 162
					else
162
						echo 'Unknown';
163
						echo gettext("Unknown");
163 164
					if ($ikesa['local']['nat'] != 'false')
164 165
						echo " NAT-T";
165 166
				}
......
168 169
				<td class="listr">
169 170
<?php
170 171
				if (!is_array($ikesa['remote']))
171
					echo "Unknown";
172
					echo gettext("Unknown");
172 173
				else {
173 174
					$identity = "";
174 175
					if (!empty($ikesa['remote']['identification'])) {
......
183 184
						echo "<br/>{$identity}";
184 185
					} else {
185 186
						if (empty($identity))
186
							echo "Unknown";
187
							echo gettext("Unknown");
187 188
						else
188 189
							echo $identity;
189 190
					}
......
193 194
				<td class="listr">
194 195
<?php
195 196
				if (!is_array($ikesa['remote']))
196
					echo "Unknown";
197
					echo gettext("Unknown");
197 198
				else {
198 199
					if (!empty($ikesa['remote']['address']))
199
						echo htmlspecialchars($ikesa['remote']['address']) . '<br/>Port:' . htmlspecialchars($ikesa['remote']['port']);
200
						echo htmlspecialchars($ikesa['remote']['address']) . '<br/>' .
201
							gettext('Port: ') . htmlspecialchars($ikesa['remote']['port']);
200 202
					else
201
						echo 'Unknown';
203
						echo gettext("Unknown");
202 204
					if ($ikesa['remote']['nat'] != 'false')
203 205
						echo " NAT-T";
204 206
				}
......
240 242
?>
241 243
					<center>
242 244
						<a href="diag_ipsec.php?act=connect&amp;ikeid=<?php echo $con_id; ?>">
243
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_start.gif" alt="Connect VPN" title="Connect VPN" border="0"/>
245
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_start.gif" alt=<?php echo gettext("Connect VPN");?> title=<?php echo gettext("Connect VPN");?> border="0"/>
244 246
						</a>
245 247
					</center>
246 248
<?php
......
248 250
?>
249 251
					<center>
250 252
						<a href="diag_ipsec.php?act=ikedisconnect&amp;ikeid=<?php echo $con_id; ?>">
251
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_stop.gif" alt="Disconnect VPN" title="Disconnect VPN" border="0"/>
253
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_stop.gif" alt=<?php echo gettext("Disconnect VPN");?> title=<?php echo gettext("Disconnect VPN");?> border="0"/>
252 254
						</a>
253 255
						<a href="diag_ipsec.php?act=ikedisconnect&amp;ikeid=<?php echo $con_id; ?>&amp;ikesaid=<?php echo $ikesa['id']; ?>">
254
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" alt="Disconnect VPN Connection" title="Disconnect VPN Connection" border="0"/>
256
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" alt=<?php echo gettext("Disconnect VPN Connection");?> title=<?php echo gettext("Disconnect VPN Connection");?> border="0"/>
255 257
						</a>
256 258
					</center>
257 259
<?php
......
296 298
								foreach ($childsa['local']['networks']['network'] as $lnets)
297 299
									echo htmlspecialchars(ipsec_fixup_network($lnets)) . "<br />";
298 300
							else
299
								echo "Unknown";
301
								echo gettext("Unknown");
300 302
?>
301 303
							</td>
302 304
							<td class="listr nowrap">
303 305
<?php
304 306
							if (is_array($childsa['local']))
305
								echo "Local: " . htmlspecialchars($childsa['local']['spi']);
307
								echo gettext("Local: ") . htmlspecialchars($childsa['local']['spi']);
306 308
							if (is_array($childsa['remote']))
307
								echo "<br/>Remote: " . htmlspecialchars($childsa['remote']['spi']);
309
								echo "<br/>" . gettext("Remote: ") . htmlspecialchars($childsa['remote']['spi']);
308 310
?>
309 311
							</td>
310 312
							<td class="listr nowrap">
......
315 317
								foreach ($childsa['remote']['networks']['network'] as $rnets)
316 318
									echo htmlspecialchars(ipsec_fixup_network($rnets)) . "<br />";
317 319
							else
318
								echo "Unknown";
320
								echo gettext("Unknown");
319 321
?>
320 322
							</td>
321 323
							<td class="listr nowrap">
322 324
<?php
323
								echo "Rekey: " . htmlspecialchars($childsa['rekey']);
324
								echo "<br/>Life: " . htmlspecialchars($childsa['lifetime']);
325
								echo "<br/>Install: " .htmlspecialchars($childsa['installtime']);
325
								echo gettext("Rekey: ") . htmlspecialchars($childsa['rekey']);
326
								echo "<br/>" . gettext("Life: ") . htmlspecialchars($childsa['lifetime']);
327
								echo "<br/>" . gettext("Install: ") .htmlspecialchars($childsa['installtime']);
326 328

  
327 329
?>
328 330
							</td>
......
344 346
									echo htmlspecialchars($childsa['esn']);
345 347
									echo "<br/>";
346 348
								}
347
								echo "IPComp: " . htmlspecialchars($childsa['ipcomp']);
349
								echo gettext("IPComp: ") . htmlspecialchars($childsa['ipcomp']);
348 350
?>
349 351
							</td>
350 352
							<td class="listr nowrap">
351 353
<?php
352
								echo "Bytes-In: " . htmlspecialchars($childsa['bytesin']) . "<br/>Packets-In: " . htmlspecialchars($childsa['packetsin']);;
354
								echo gettext("Bytes-In: ") . htmlspecialchars($childsa['bytesin']);
353 355
								echo "<br/>";
354
								echo "Bytes-Out: " . htmlspecialchars($childsa['bytesout']) . "<br/>Packets-Out: " . htmlspecialchars($childsa['packetsout']);;
356
								echo gettext("Packets-In: ") . htmlspecialchars($childsa['packetsin']);
357
								echo "<br/>";
358
								echo gettext("Bytes-Out: ") . htmlspecialchars($childsa['bytesout']);
359
								echo "<br/>";
360
								echo gettext("Packets-Out: ") . htmlspecialchars($childsa['packetsout']);
355 361
?>
356 362
							</td>
357 363
							<td>
358 364
								<center>
359 365
									<a href="diag_ipsec.php?act=childdisconnect&amp;ikeid=<?php echo $con_id; ?>&amp;ikesaid=<?php echo $childsa['reqid']; ?>">
360
									<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" alt="Disconnect Child SA" title="Disconnect Child SA" border="0"/>
366
									<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif" alt=<?php echo gettext("Disconnect Child SA");?> title=<?php echo gettext("Disconnect Child SA");?> border="0"/>
361 367
									</a>
362 368
								</center>
363 369
							</td>
......
397 403
<?php
398 404
				list ($myid_type, $myid_data) = ipsec_find_id($ph1ent, "local");
399 405
				if (empty($myid_data))
400
					echo "Unknown";
406
					echo gettext("Unknown");
401 407
				else
402 408
					echo htmlspecialchars($myid_data);
403 409
?>
......
406 412
<?php
407 413
				$ph1src = ipsec_get_phase1_src($ph1ent);
408 414
				if (empty($ph1src))
409
					echo "Unknown";
415
					echo gettext("Unknown");
410 416
				else
411 417
					echo htmlspecialchars($ph1src);
412 418
?>
......
415 421
<?php
416 422
				list ($peerid_type, $peerid_data) = ipsec_find_id($ph1ent, "peer", $rgmap);
417 423
				if (empty($peerid_data))
418
					echo "Unknown";
424
					echo gettext("Unknown");
419 425
				else
420 426
					echo htmlspecialchars($peerid_data);
421 427
?>
......
424 430
<?php
425 431
				$ph1src = ipsec_get_phase1_dst($ph1ent);
426 432
				if (empty($ph1src))
427
					echo "Unknown";
433
					echo gettext("Unknown");
428 434
				else
429 435
					echo htmlspecialchars($ph1src);
430 436
?>
......
444 450
				<td >
445 451
					<center>
446 452
						<a href="diag_ipsec.php?act=connect&amp;ikeid=<?php echo $ph1ent['ikeid']; ?>">
447
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_start.gif" alt="Connect VPN" title="Connect VPN" border="0"/>
453
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_start.gif" alt=<?php echo gettext("Connect VPN");?> title=<?php echo gettext("Connect VPN");?> border="0"/>
448 454
						</a>
449 455
					</center>
450 456
				</td>

Formats disponibles : Unified diff