aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_global.php
diff options
context:
space:
mode:
authorRenato Botelho <rbgarga@gmail.com>2012-07-24 10:28:14 -0300
committerRenato Botelho <rbgarga@gmail.com>2012-07-24 10:28:14 -0300
commit52b44ab8f4781ebf82821fb4f2968aa360b7b87d (patch)
tree98b2a2f49df7844e9cd72390e390c8e09853da47 /config/snort/snort_interfaces_global.php
parent5b7a1a95cd5a18180cfa3e83e65577a0b30583fa (diff)
downloadpfsense-packages-52b44ab8f4781ebf82821fb4f2968aa360b7b87d.tar.gz
pfsense-packages-52b44ab8f4781ebf82821fb4f2968aa360b7b87d.tar.bz2
pfsense-packages-52b44ab8f4781ebf82821fb4f2968aa360b7b87d.zip
Implement gettext() calls on strings
Diffstat (limited to 'config/snort/snort_interfaces_global.php')
-rw-r--r--config/snort/snort_interfaces_global.php94
1 files changed, 47 insertions, 47 deletions
diff --git a/config/snort/snort_interfaces_global.php b/config/snort/snort_interfaces_global.php
index 6974a9c3..0642211c 100644
--- a/config/snort/snort_interfaces_global.php
+++ b/config/snort/snort_interfaces_global.php
@@ -129,30 +129,30 @@ if ($input_errors)
<td class="tabcont">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">Please Choose The
- Type Of Rules You Wish To Download</td>
+ <td colspan="2" valign="top" class="listtopic"><?php echo gettext("Please Choose The " .
+ "Type Of Rules You Wish To Download"); ?></td>
</tr>
- <td width="22%" valign="top" class="vncell">Install Snort.org rules</td>
+ <td width="22%" valign="top" class="vncell"><?php echo gettext("Install Snort.org rules"); ?></td>
<td width="78%" class="vtable">
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><input name="snortdownload" type="radio"
id="snortdownload" value="off"
<?php if($pconfig['snortdownload']=='off' || $pconfig['snortdownload']=='') echo 'checked'; ?>>
- Do <strong>NOT</strong> Install</td>
+ <?php printf(gettext("Do %sNOT%s Install"), '<strong>', '</strong>'); ?></td>
</tr>
<tr>
<td colspan="2"><input name="snortdownload" type="radio"
id="snortdownload" value="on"
- <?php if($pconfig['snortdownload']=='on') echo 'checked'; ?>> Install
- Basic Rules or Premium rules <br>
+ <?php if($pconfig['snortdownload']=='on') echo 'checked'; ?>> <?php echo gettext("Install " .
+ "Basic Rules or Premium rules"); ?> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
- href="https://www.snort.org/signup" target="_blank">Sign Up for a
- Basic Rule Account</a><br>
+ href="https://www.snort.org/signup" target="_blank"><?php echo gettext("Sign Up for a " .
+ "Basic Rule Account"); ?></a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href="http://www.snort.org/vrt/buy-a-subscription"
- target="_blank">Sign Up for Sourcefire VRT Certified Premium
- Rules. This Is Highly Recommended</a></td>
+ target="_blank"><?php echo gettext("Sign Up for Sourcefire VRT Certified Premium " .
+ "Rules. This Is Highly Recommended"); ?></a></td>
</tr>
<tr>
<td>&nbsp;</td>
@@ -160,72 +160,72 @@ if ($input_errors)
</table>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="optsect_t2">Oinkmaster code</td>
+ <td colspan="2" valign="top" class="optsect_t2"><?php echo gettext("Oinkmaster code"); ?></td>
</tr>
<tr>
- <td class="vncell" valign="top">Code</td>
+ <td class="vncell" valign="top"><?php echo gettext("Code"); ?></td>
<td class="vtable"><input name="oinkmastercode" type="text"
class="formfld" id="oinkmastercode" size="52"
value="<?=htmlspecialchars($pconfig['oinkmastercode']);?>"><br>
- Obtain a snort.org Oinkmaster code and paste here.</td>
+ <?php echo gettext("Obtain a snort.org Oinkmaster code and paste here."); ?></td>
</table>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Install <strong>Emergingthreats</strong>
- rules</td>
+ <td width="22%" valign="top" class="vncell"><?php printf(gettext("Install %sEmergingthreats%s " .
+ "rules"), '<strong>' , '</strong>'); ?></td>
<td width="78%" class="vtable"><input name="emergingthreats"
type="checkbox" value="yes"
<?php if ($config['installedpackages']['snortglobal']['emergingthreats']=="on") echo "checked"; ?>
><br>
- Emerging Threats is an open source community that produces fastest
- moving and diverse Snort Rules.</td>
+ <?php echo gettext("Emerging Threats is an open source community that produces fastest " .
+ "moving and diverse Snort Rules."); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Update rules
- automatically</td>
+ <td width="22%" valign="top" class="vncell"><?php echo gettext("Update rules " .
+ "automatically"); ?></td>
<td width="78%" class="vtable">
<select name="autorulesupdate7" class="formselect" id="autorulesupdate7">
<?php
- $interfaces3 = array('never_up' => 'NEVER', '6h_up' => '6 HOURS', '12h_up' => '12 HOURS', '1d_up' => '1 DAY', '4d_up' => '4 DAYS', '7d_up' => '7 DAYS', '28d_up' => '28 DAYS');
+ $interfaces3 = array('never_up' => gettext('NEVER'), '6h_up' => gettext('6 HOURS'), '12h_up' => gettext('12 HOURS'), '1d_up' => gettext('1 DAY'), '4d_up' => gettext('4 DAYS'), '7d_up' => gettext('7 DAYS'), '28d_up' => gettext('28 DAYS'));
foreach ($interfaces3 as $iface3 => $ifacename3): ?>
<option value="<?=$iface3;?>"
<?php if ($iface3 == $pconfig['autorulesupdate7']) echo "selected"; ?>>
<?=htmlspecialchars($ifacename3);?></option>
<?php endforeach; ?>
</select><br>
- <span class="vexpl">Please select the update times for rules.<br>
- Hint: in most cases, every 12 hours is a good choice.</span></td>
+ <span class="vexpl"><?php echo gettext("Please select the update times for rules."); ?><br>
+ <?php echo gettext("Hint: in most cases, every 12 hours is a good choice."); ?></span></td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">General Settings</td>
+ <td colspan="2" valign="top" class="listtopic"><?php echo gettext("General Settings"); ?></td>
</tr>
<tr>
<?php $snortlogCurrentDSKsize = round(exec('df -k /var | grep -v "Filesystem" | awk \'{print $4}\'') / 1024); ?>
- <td width="22%" valign="top" class="vncell">Log Directory Size
- Limit<br/>
+ <td width="22%" valign="top" class="vncell"><?php echo gettext("Log Directory Size " .
+ "Limit"); ?><br/>
<br/>
<br/>
- <span class="red"><strong>Note</span>:</strong><br>
- Available space is <strong><?php echo $snortlogCurrentDSKsize; ?>MB</strong></td>
+ <span class="red"><strong><?php echo gettext("Note"); ?></span>:</strong><br>
+ <?php echo gettext("Available space is"); ?> <strong><?php echo $snortlogCurrentDSKsize; ?>MB</strong></td>
<td width="78%" class="vtable">
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><input name="snortloglimit" type="radio"
id="snortloglimit" value="on"
<?php if($pconfig['snortloglimit']=='on') echo 'checked'; ?>>
- <strong>Enable</strong> directory size limit (<strong>Default</strong>)</td>
+ <strong><?php echo gettext("Enable"); ?></strong> <?php echo gettext("directory size limit"); ?> (<strong><?php echo gettext("Default"); ?></strong>)</td>
</tr>
<tr>
<td colspan="2"><input name="snortloglimit" type="radio"
id="snortloglimit" value="off"
-<?php if($pconfig['snortloglimit']=='off') echo 'checked'; ?>> <strong>Disable</strong>
- directory size limit<br>
+<?php if($pconfig['snortloglimit']=='off') echo 'checked'; ?>> <strong><?php echo gettext("Disable"); ?></strong>
+ <?php echo gettext("directory size limit"); ?><br>
<br>
- <span class="red"><strong>Warning</span>:</strong> Nanobsd
- should use no more than 10MB of space.</td>
+ <span class="red"><strong><?php echo gettext("Warning"); ?></span>:</strong> <?php echo gettext("Nanobsd " .
+ "should use no more than 10MB of space."); ?></td>
</tr>
<tr>
<td>&nbsp;</td>
@@ -233,41 +233,41 @@ if ($input_errors)
</table>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td class="vncell3">Size in <strong>MB</strong></td>
+ <td class="vncell3"><?php echo gettext("Size in"); ?> <strong>MB</strong></td>
<td class="vtable"><input name="snortloglimitsize" type="text"
class="formfld" id="snortloglimitsize" size="7"
value="<?=htmlspecialchars($pconfig['snortloglimitsize']);?>">
- Default is <strong>20%</strong> of available space.</td>
+ <?php echo gettext("Default is"); ?> <strong>20%</strong> <?php echo gettext("of available space."); ?></td>
</table>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Remove blocked hosts
- every</td>
+ <td width="22%" valign="top" class="vncell"><?php echo gettext("Remove blocked hosts " .
+ "every"); ?></td>
<td width="78%" class="vtable">
<select name="rm_blocked" class="formselect" id="rm_blocked">
<?php
- $interfaces3 = array('never_b' => 'NEVER', '1h_b' => '1 HOUR', '3h_b' => '3 HOURS', '6h_b' => '6 HOURS', '12h_b' => '12 HOURS', '1d_b' => '1 DAY', '4d_b' => '4 DAYS', '7d_b' => '7 DAYS', '28d_b' => '28 DAYS');
+ $interfaces3 = array('never_b' => gettext('NEVER'), '1h_b' => gettext('1 HOUR'), '3h_b' => gettext('3 HOURS'), '6h_b' => gettext('6 HOURS'), '12h_b' => gettext('12 HOURS'), '1d_b' => gettext('1 DAY'), '4d_b' => gettext('4 DAYS'), '7d_b' => gettext('7 DAYS'), '28d_b' => gettext('28 DAYS'));
foreach ($interfaces3 as $iface3 => $ifacename3): ?>
<option value="<?=$iface3;?>"
<?php if ($iface3 == $pconfig['rm_blocked']) echo "selected"; ?>>
<?=htmlspecialchars($ifacename3);?></option>
<?php endforeach; ?>
</select><br>
- <span class="vexpl">Please select the amount of time you would like
- hosts to be blocked for.<br>
- Hint: in most cases, 1 hour is a good choice.</span></td>
+ <span class="vexpl"><?php echo gettext("Please select the amount of time you would like " .
+ "hosts to be blocked for."); ?><br>
+ <?php echo gettext("Hint: in most cases, 1 hour is a good choice."); ?></span></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Keep snort settings
- after deinstall</td>
+ <td width="22%" valign="top" class="vncell"><?php echo gettet("Keep snort settings " .
+ "after deinstall"); ?></td>
<td width="78%" class="vtable"><input name="forcekeepsettings"
id="forcekeepsettings" type="checkbox" value="yes"
<?php if ($config['installedpackages']['snortglobal']['forcekeepsettings']=="on") echo "checked"; ?>
><br>
- Settings will not be removed during deinstall.</td>
+ <?php echo gettext("Settings will not be removed during deinstall."); ?></td>
</tr>
<tr>
<td width="22%" valign="top">
@@ -277,10 +277,10 @@ if ($input_errors)
</tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
- <td width="78%"><span class="vexpl"><span class="red"><strong>Note:<br>
- </strong></span> Changing any settings on this page will affect all
- interfaces. Please, double check if your oink code is correct and
- the type of snort.org account you hold.</span></td>
+ <td width="78%"><span class="vexpl"><span class="red"><strong><?php echo gettext("Note:"); ?><br>
+ </strong></span> <?php echo gettext("Changing any settings on this page will affect all " .
+ "interfaces. Please, double check if your oink code is correct and " .
+ "the type of snort.org account you hold."); ?></span></td>
</tr>
</table>
</td></tr>