aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_blocked.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_blocked.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_blocked.php')
-rw-r--r--config/snort/snort_blocked.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php
index babb6bea..10d0bb60 100644
--- a/config/snort/snort_blocked.php
+++ b/config/snort/snort_blocked.php
@@ -153,30 +153,30 @@ if ($pconfig['brefresh'] == 'on')
<table id="maintable" class="tabcont" width="100%" border="0"
cellpadding="0" cellspacing="0">
<tr>
- <td width="22%" colspan="0" class="listtopic">Last <?=$bnentries;?>
- Blocked.</td>
- <td width="78%" class="listtopic">This page lists hosts that have
- been blocked by Snort.&nbsp;&nbsp;<?=$blocked_msg_txt;?></td>
+ <td width="22%" colspan="0" class="listtopic"><?php printf(gettext("Last %s " .
+ "Blocked."), $bnentries); ?></td>
+ <td width="78%" class="listtopic"><?php echo gettext("This page lists hosts that have " .
+ "been blocked by Snort."); ?>&nbsp;&nbsp;<?=$blocked_msg_txt;?></td>
</tr>
<tr>
- <td width="22%" class="vncell">Save or Remove Hosts</td>
+ <td width="22%" class="vncell"><?php echo gettext("Save or Remove Hosts"); ?></td>
<td width="78%" class="vtable">
- <input name="download" type="submit" class="formbtn" value="Download"> All
- blocked hosts will be saved. <input name="remove" type="submit"
- class="formbtn" value="Clear"> <span class="red"><strong>Warning:</strong></span>
- all hosts will be removed.</form>
+ <input name="download" type="submit" class="formbtn" value="Download"> <?php echo gettext("All " .
+ "blocked hosts will be saved."); ?> <input name="remove" type="submit"
+ class="formbtn" value="Clear"> <span class="red"><strong><?php echo gettext("Warning:"); ?></strong></span>
+ <?php echo gettext("all hosts will be removed."); ?></form>
</td>
</tr>
<tr>
- <td width="22%" class="vncell">Auto Refresh and Log View</td>
+ <td width="22%" class="vncell"><?php echo gettext("Auto Refresh and Log View"); ?></td>
<td width="78%" class="vtable">
- <input name="save" type="submit" class="formbtn" value="Save"> Refresh <input
+ <input name="save" type="submit" class="formbtn" value="Save"> <?php echo gettext("Refresh"); ?> <input
name="brefresh" type="checkbox" value="on"
<?php if ($config['installedpackages']['snortglobal']['alertsblocks']['brefresh']=="on" || $config['installedpackages']['snortglobal']['alertsblocks']['brefresh']=='') echo "checked"; ?>>
- <strong>Default</strong> is <strong>ON</strong>. <input
+ <?php printf(gettext("%sDefault%s is %sON%s."), '<strong>', '</strong>', '<strong>', '</strong>'); ?> <input
name="blertnumber" type="text" class="formfld" id="blertnumber"
- size="5" value="<?=htmlspecialchars($bnentries);?>"> Enter the
- number of blocked entries to view. <strong>Default</strong> is <strong>500</strong>.
+ size="5" value="<?=htmlspecialchars($bnentries);?>"> <?php printf(gettext("Enter the " .
+ "number of blocked entries to view. %sDefault%s is %s500%s."), '<strong>', '</strong>', '<strong>', '</strong>'); ?>
</td>
</tr>
<tr>
@@ -185,9 +185,9 @@ if ($pconfig['brefresh'] == 'on')
cellpadding="0" cellspacing="0">
<tr id="frheader">
<td width="5%" class="listhdrr">#</td>
- <td width="15%" class="listhdrr">IP</td>
- <td width="70%" class="listhdrr">Alert Description</td>
- <td width="5%" class="listhdrr">Remove</td>
+ <td width="15%" class="listhdrr"><?php echo gettext("IP"); ?></td>
+ <td width="70%" class="listhdrr"><?php echo gettext("Alert Description"); ?></td>
+ <td width="5%" class="listhdrr"><?php echo gettext("Remove"); ?></td>
</tr>
<?php
/* set the arrays */
@@ -248,7 +248,7 @@ if ($pconfig['brefresh'] == 'on')
<td width='15%' >&nbsp;{$blocked_ip}</td>
<td width='70%' >&nbsp;{$blocked_desc}</td>
<td width='5%' align=\"center\" valign=\"top\"'><a href='snort_blocked.php?todelete=" . trim(urlencode($blocked_ip)) . "'>
- <img title=\"Delete\" border=\"0\" name='todelete' id='todelete' alt=\"Delete\" src=\"../themes/{$g['theme']}/images/icons/icon_x.gif\"></a></td>
+ <img title=\"" . gettext("Delete") . "\" border=\"0\" name='todelete' id='todelete' alt=\"Delete\" src=\"../themes/{$g['theme']}/images/icons/icon_x.gif\"></a></td>
</tr>\n";
}