[pLog-svn] r1026 - in plugins/trunk/hostblock: . class/action
locale templates
mark at devel.plogworld.net
mark at devel.plogworld.net
Wed Feb 9 18:39:00 GMT 2005
Author: mark
Date: 2005-02-09 18:39:00 +0000 (Wed, 09 Feb 2005)
New Revision: 1026
Added:
plugins/trunk/hostblock/locale/locale_zh_TW.php
Modified:
plugins/trunk/hostblock/class/action/admineditblockedhostaction.class.php
plugins/trunk/hostblock/class/action/admineditblogblockedhostaction.class.php
plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php
plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php
plugins/trunk/hostblock/locale/locale_en_UK.php
plugins/trunk/hostblock/pluginhostblock.class.php
plugins/trunk/hostblock/templates/addblockedhost.template
plugins/trunk/hostblock/templates/addblogblockedhost.template
plugins/trunk/hostblock/templates/blogblockedhosts.template
plugins/trunk/hostblock/templates/editblockedhost.template
plugins/trunk/hostblock/templates/editblogblockedhost.template
Log:
Update hostblock plugins locales, include zh_TW and en_UK.
Modified: plugins/trunk/hostblock/class/action/admineditblockedhostaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/admineditblockedhostaction.class.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/class/action/admineditblockedhostaction.class.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -25,7 +25,7 @@
// data validation stuff
$this->registerFieldValidator( "hostId", new IntegerValidator());
$view = new AdminBlockedHostsView( $this->_blogInfo );
- $view->setErrorMessage( $this->_locale->tr("error_incorrect_blocked_host_id") );
+ $view->setErrorMessage( $this->_locale->tr("error_incorrect_host_id") );
$this->setValidationErrorView( $view );
}
Modified: plugins/trunk/hostblock/class/action/admineditblogblockedhostaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/admineditblogblockedhostaction.class.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/class/action/admineditblogblockedhostaction.class.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -25,7 +25,7 @@
// data validation stuff
$this->registerFieldValidator( "hostId", new IntegerValidator());
$view = new AdminBlogBlockedHostsView( $this->_blogInfo );
- $view->setErrorMessage( $this->_locale->tr("error_incorrect_blocked_host_id") );
+ $view->setErrorMessage( $this->_locale->tr("error_incorrect_host_id") );
$this->setValidationErrorView( $view );
}
Modified: plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -34,7 +34,7 @@
$blogs = new Blogs();
if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
$this->_view = new AdminBlogBlockedHostsView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
+ $this->_view->setErrorMessage( $this->_locale->tr("error_updating_host_block_settings"));
$this->setCommonData();
return false;
@@ -46,7 +46,7 @@
$this->saveSession();
$this->_view = new AdminBlogBlockedHostsView( $this->_blogInfo );
- $this->_view->setSuccessMessage( $this->_locale->tr("hostblock_settings_saved_ok"));
+ $this->_view->setSuccessMessage( $this->_locale->tr("host_block_settings_updated_ok"));
$this->setCommonData();
return true;
Modified: plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -34,7 +34,7 @@
$blogs = new Blogs();
if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
$this->_view = new AdminBlockedHostsView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
+ $this->_view->setErrorMessage( $this->_locale->tr("error_updating_host_block_settings"));
$this->setCommonData();
return false;
@@ -46,7 +46,7 @@
$this->saveSession();
$this->_view = new AdminBlockedHostsView( $this->_blogInfo );
- $this->_view->setSuccessMessage( $this->_locale->tr("hostblock_settings_saved_ok"));
+ $this->_view->setSuccessMessage( $this->_locale->tr("host_block_settings_updated_ok"));
$this->setCommonData();
return true;
Modified: plugins/trunk/hostblock/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/hostblock/locale/locale_en_UK.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/locale/locale_en_UK.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -1,58 +1,43 @@
<?php
-$messages["blockedHosts"] = "Blocked Hosts";
-$messages["global_blocked_hosts"] = "Globally Blocked Hosts";
-$messages["newBlockedHost"] = "Block Host";
-$messages["mask"] = "Mask";
+$messages["hostblock_plugin_enabled"] = "Enable this plugin";
+
+$messages["siteSecurity"] = "Site Security";
+$messages["blogSecurity"] = "Blog Security";
+$messages["blockedHosts"] = "Global Blocked Hosts";
+$messages["blogBlockedHosts"] = "Blocked Hosts";
+$messages["newBlockedHost"] = "Add Global Blocked Hosts";
+$messages["newBlogBlockedHost"] = "Add Blocked Hosts";
+
+$messages["ip_address"] = "IP Address";
+$messages["host_to_block_help"] = "This section will allow you to block a specific address or entire subnet from your Blog. You can select if you want them to be able to see it, but unable to post or simply unable to access it at all. Copy the offending address into the spaces provided and choose the proper subnet address space if necessary. Example: To block just the address of 192.168.1.123 you would choose the '32 bits' option to match the entire address. This blocks just this one address and works well for banning someone with a Static IP address. If you're seeing multiple IP Addresses for a particular individual (say 192.168.1.123, 192.168.1.225, 192.168.1.21 and 192.168.1.67) then you will want to ban a particular subnet range. Enter one of the IP Addresses that you see and choose '24 bits', '16 bits' or '8 bits' to match the first 3 sections, first 2 sections or the first section respectively.";
+$messages["bits"] = "Bits";
+$messages["block_type"] = "Block Type";
+$messages["block_type_help"] = "The 'Block type' drop-down list will allow you to choose whether to block this host from completely accessign the site (an error page will be sent to the client's browser whenever trying to access) or simply block it from posting new comments. If the latter is chosen, the host will still be allowed to read articles and other people's comments.";
+$messages["reason"] = "Reason";
+$messages["reason_help"] = "You can also attach a reason/description to this host blocking rule, so that you can remember in the future why it was set up.";
$messages["access_blocked"] = "Access Blocked";
$messages["posting_blocked"] = "Posting Blocked";
-$messages["block_host_intro"] = "Hosts added here will be blocked from accessiny only this blog. Please see <a href=\"javascript:help_window('admin.php?op=Help&helpId=newBlogBlockedHost');\">Help</a> for more detailed information about this feature.";
-$messages["global_block_host_intro"] = "Hosts added here will be blocked from accessing any blog in this site. Please see this related <a href=\"javascript:help_window('admin.php?op=Help&helpId=newBlogBlockedHost');\">help item</a> for more information about this feature.";
-$messages["block_type"] = "Block type";
-$messages["error_invalid_ip_address"] = "The IP address is not valid.";
-$messages["error_adding_blocked_host"] = "There was an error blocking the given host.";
-$messages["blocked_host_added_ok"] = "Host %s added successfully to the list of blocked hosts.";
-$messages["error_no_blocked_hosts_selected"] = "There were no hosts selected to remove.";
-$messages["blocked_host_deleted_ok"] = "Host \"%s\" deleted successfully.";
-$messages["error_deleting_blocked_host"] = "There was an error deleting blocked host \"%s\"";
+$messages["add_blocked_host"] = "Add Blocked Host";
$messages["edit_blocked_host"] = "Edit Blocked Host";
+
+$messages["error_provide_host_to_block"] = "You must provide some hostt to block.";
+$messages["error_adding_blocked_host"] = "There was an error when adding the blocked host.";
+$messages["error_incorrect_host_id"] = "The blocked host ID is incorrect.";
+$messages["error_no_block_host_selected"] = "There were no hosts selected to remove.";
$messages["error_fetching_blocked_host"] = "There was an error fetching the blocked host.";
$messages["error_updating_blocked_host"] = "There was an error updating the blocked host.";
-$messages["help_blogBlockedHosts"] = "This is a list with all the hosts that have been blocked so far in this blog. At
-a glance, it is possible to see for each host the reason why it was blocked, the date when it was blocked and
-the type of the block applied. Lastly, you can also select any of the host blocking rules and press the
-<b>'Delete Selected'</b> button when you are sure that you want to remove those rules.";
+$messages["error_updating_host_block_settings"] = "There was an error when updating the host block plugin settings.";
+$messages["error_invalid_ip_address"] = "The IP address is not valid.";
+$messages["error_deleting_blocked_host"] = "There was an error when deleteing the blocked host %s.";
-$messages["help_newBlogBlockedHost"] = "<p>This section will allow you to block a specific address or entire subnet from your Blog. You can select if you want them to be able to see it, but unable to post or simply unable to access it at all. Copy the offending address into the spaces provided and choose the proper subnet address space if necessary. Example: To block just the address of 192.168.1.123 you would choose the '32 bits' option to match the entire address. This blocks just this one address and works well for banning someone with a Static IP address. If you're seeing multiple IP Addresses for a particular individual (say 192.168.1.123, 192.168.1.225, 192.168.1.21 and 192.168.1.67) then you will want to ban a particular subnet range. Enter one of the IP Addresses that you see and choose '24 bits', '16 bits' or '8 bits' to match the first 3 sections, first 2 sections or the first section respectively.<br/>
-<br/>
-<b>EXAMPLES</b>:<br/>
-<br/>
-192.168.1.123 - 32 bits: Matches only the 192.168.1.123 address<br/>
-192.168.1.123 - 24 bits: Matches any address that starts with 192.168.1<br/>
-192.168.1.123 - 16 bits: Matches any address that starts with 192.168<br/>
-192.168.1.123 - 8 bits: Matches any address that starts with 192<br/>
-</p>
-<p>The <b>'Block type'</b> drop-down list will allow you to choose whether to block this host from
-completely accessign the site (an error page will be sent to the client's browser whenever trying to access) or
-simply block it from posting new comments. If the latter is chosen, the host will still be allowed to read
-articles and other people's comments.</p>
-<p>You can also attach a reason/description to this host blocking rule, so that you can remember in the future why
-it was set up.</p>";
+$messages["blocked_host_updated_ok"] = "Blocked host updated successfully.";
+$messages["blocked_host_added_ok"] = "Blocked host added successfully.";
+$messages["host_block_settings_updated_ok"] = "Host block pluing settings updated successfully.";
+$messages["blocked_hosts_deleted_ok"] = "%s blocked hosts deleted successfully.";
+$messages["blocked_host_deleted_ok"] = "Blocked hosts %s deleted successfully.";
-$messages["editBlogBlockedHost"] = "You will be able to edit a host blocking rule from this section. The options
-available are exactly the same as in <a href=\"admin.php?op=Help&helpId=newBlogBlockedHost\">here</a>.";
+$messages["error_you_have_been_blocked"] = "You are not allowed to proceed with this request.";
-$messages["help_blockedHosts"] = "This is a list with all the hosts that have been blocked so far system-wide.
-Clicking a rule IP address will allow us to edit the settings of that rule. These rules always take
-precedence over blog-speficic rules, so that if one these global rules matches a host, all the other after
-it will be ignored.";
-
-$messages["help_newBlockedHost"] = "From here it is possible to add a new <b>global</b> host-blocking rule. See
-<a href=\"admin.php?op=Help&helpId=newBlogBlockedHost\">here</a> for more information about the options
-available.";
-
-$messages["editBlockedHost"] = "You will be able to edit a host blocking rule from this section. The options
-available are exactly the same as in <a href=\"admin.php?op=Help&helpId=newBlogBlockedHost\">here</a>.";
-
-$messages["blogBlockedHosts"] = $messages["blockedHosts"];
-$messages["newBlogBlockedHost"] = $messages["newBlockedHost"];
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
?>
\ No newline at end of file
Added: plugins/trunk/hostblock/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/hostblock/locale/locale_zh_TW.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/locale/locale_zh_TW.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -0,0 +1,43 @@
+<?php
+$messages["hostblock_plugin_enabled"] = "åå夿ç¨å¼";
+
+$messages["siteSecurity"] = "系統å®å
¨";
+$messages["blogSecurity"] = "系統å®å
¨";
+$messages["blockedHosts"] = "å
¨å黿䏻æ©å表";
+$messages["blogBlockedHosts"] = "黿䏻æ©å表";
+$messages["newBlockedHost"] = "æ°å¢å
¨å黿䏻æ©";
+$messages["newBlogBlockedHost"] = "æ°å¢é»æä¸»æ©";
+
+$messages["ip_address"] = "IP ä½å";
+$messages["host_to_block_help"] = "æ¨å¯ä»¥å¨éè£¡é»ææåç¹å®ç網路ä½ç½®ï¼ææ¯æåç¶²è·¯åæ®µï¼ä¸è®å¾éåä½ç½®ä¾ç使ç¨è
ç覽æ¨çç¶²èªç«å°ãæ¨ä¹å¯ä»¥è¨å®æè®ä»åå¯ä»¥ç覽ï¼ä½æ¯ä¸å¯ä»¥ç¼è¡¨æç« ãè«è¼¸å
¥ç¶²è·¯ä½ç½®ï¼ä¸¦ä¸åé©ç¶çè¨å®ãæ¯æ¹èªªï¼å¦ææ¨è¦é»æ 192.168.1.123 éåä½ç½®ï¼æ¨ä¾¿å¿
é å¨å¡«å
¥IPä½ç½®å¾ï¼ä¸¦è¨å®çºã32 bitsãï¼é麼ä¸ä¾ä¾¿å¯ä»¥é»æå¾æååºå®IPé£ç·ç使ç¨è
ãå¦ææ¨æ³è¦é»æå¤åä½ç½®ï¼èä¸åªæ¯è¦é»æå®ä¸ä½ç½®ï¼ä¾å¦æ¨åææ³è¦é»æ 192.168.1.123ã192.168.1.225ã192.168.1.21 以å 192.168.1.67 çè©±ï¼æ¨å¯ä»¥æªææ´åç¶²è·¯åæ®µãè«å¨è¼¸å
¥ IP ä½ç½®å¾ï¼é¸æã24 bitsããã16 bitsãæã8 bitsãï¼é»æä¸åç¯åçåæ®µã";
+$messages["bits"] = "ä½å
";
+$messages["block_type"] = "黿é¡å¥";
+$messages["block_type_help"] = "ã黿é¡å¥ãéå䏿é¸å®ï¼å¯ä»¥è®æ¨æ±ºå®è¢«é»æç使ç¨è
æéå°ççæ³ï¼æ¨å¯ä»¥è®ä»ç¡æ³ç覽æ¨çç¶²èªç«å°ï¼ç³»çµ±æéåºä¸åé¯èª¤è¨æ¯ï¼ï¼ææ¯è®ä»ä¸è½å¤ ç¼è¡¨æç« ã妿æ¨é¸æå¾è
ï¼é£éº¼ä»éæ¯å¯ä»¥é±è®ç«ä¸çæç« 以åè¿´é¿çè¨ã";
+$messages["reason"] = "åå ";
+$messages["reason_help"] = "æ¨ä¹å¯ä»¥å°é»æä¸»æ©ççç±ç¨ä½èªªæï¼æ¹ä¾¿æ¨æ¥å¾å¯ä»¥ç¥éæ¨ç¶åçºä»éº¼æå°æ¹æªæäºã";
+$messages["access_blocked"] = "ç¦æ¢ç覽";
+$messages["posting_blocked"] = "ç¦æ¢ç¼è¡¨";
+$messages["add_blocked_host"] = "æ°å¢é»æä¸»æ©";
+$messages["edit_blocked_host"] = "ç·¨è¼¯é»æä¸»æ©";
+
+$messages["error_provide_host_to_block"] = "æ¨å¿
é è¦è¼¸å
¥æ¨è¦é»æçä¸»æ© IP ä½åã";
+$messages["error_adding_blocked_host"] = "卿°å¢é»æä¸»æ©æç¼çé¯èª¤ã";
+$messages["error_incorrect_host_id"] = "æ¨æé¸æç黿䏻æ©ä»£èé¯èª¤ã";
+$messages["error_no_block_host_selected"] = "ä½ æ²æé¸æä»»ä½ç黿䏻æ©ã";
+$messages["error_fetching_blocked_host"] = "å¨è®åé»æä¸»æ©æç¼çé¯èª¤ã";
+$messages["error_updating_blocked_host"] = "卿´æ°é»æä¸»æ©æç¼çé¯èª¤ã";
+$messages["error_updating_host_block_settings"] = "卿´æ°è¨å®æç¼çé¯èª¤ã";
+$messages["error_invalid_ip_address"] = "æ¨è¼¸å
¥ç IP ä½å䏿£ç¢ºã";
+$messages["error_deleting_blocked_host"] = "å¨åªé¤é»æä¸»æ© %s æç¼çé¯èª¤ã";
+
+$messages["blocked_host_updated_ok"] = "黿䏻æ©é 婿´æ°ã";
+$messages["blocked_host_added_ok"] = "黿䏻æ©é 婿°å¢ã";
+$messages["host_block_settings_updated_ok"] = "è¨å®é 婿´æ°ã";
+$messages["blocked_hosts_deleted_ok"] = "é å©åªé¤ %s å黿䏻æ©ã";
+$messages["blocked_host_deleted_ok"] = "é å©åªé¤é»æä¸»æ© %sã";
+
+$messages["error_you_have_been_blocked"] = "æ±æï¼ä½ ç¡æ³å¨æ¬ç¶²èªè¿´é¿ãä½ ææä¾çè¿´é¿å«æä¸è¢«å
許çå
§å®¹ææ¯ä½ ç主æ©å·²è¢«åå
¥æ¬ç¶²èªç黿䏻æ©å表ä¸ã";
+
+$messages["label_configuration"] = "è¨å®";
+$messages["label_enable"] = "åå";
+?>
\ No newline at end of file
Modified: plugins/trunk/hostblock/pluginhostblock.class.php
===================================================================
--- plugins/trunk/hostblock/pluginhostblock.class.php 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/pluginhostblock.class.php 2005-02-09 18:39:00 UTC (rev 1026)
@@ -27,7 +27,7 @@
$this->id = "hostblock";
$this->description = "Allows to block hosts";
$this->author = "The pLog Team";
- $this->locales = Array( "en_UK" );
+ $this->locales = Array( "en_UK", "zh_TW" );
$this->init();
}
Modified: plugins/trunk/hostblock/templates/addblockedhost.template
===================================================================
--- plugins/trunk/hostblock/templates/addblockedhost.template 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/templates/addblockedhost.template 2005-02-09 18:39:00 UTC (rev 1026)
@@ -3,7 +3,7 @@
{include file="common.template"}
<form name="newBlockedHost" action="admin.php" method="post" onSubmit="return checkIpAddress(this);">
<fieldset class="inputField">
- <legend>{$locale->tr("addBlockedHost")}</legend>
+ <legend>{$locale->tr("add_blocked_host")}</legend>
{include file="$admintemplatepath/successmessage.template"}
{include file="$admintemplatepath/errormessage.template"}
<div class="field">
Modified: plugins/trunk/hostblock/templates/addblogblockedhost.template
===================================================================
--- plugins/trunk/hostblock/templates/addblogblockedhost.template 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/templates/addblogblockedhost.template 2005-02-09 18:39:00 UTC (rev 1026)
@@ -3,7 +3,7 @@
{include file="common.template"}
<form name="newBlogBlockedHost" action="admin.php" method="post" onSubmit="return checkIpAddress(this);">
<fieldset class="inputField">
- <legend>{$locale->tr("addBlogBlockedHost")}</legend>
+ <legend>{$locale->tr("add_blocked_host")}</legend>
{include file="$admintemplatepath/successmessage.template"}
{include file="$admintemplatepath/errormessage.template"}
<div class="field">
Modified: plugins/trunk/hostblock/templates/blogblockedhosts.template
===================================================================
--- plugins/trunk/hostblock/templates/blogblockedhosts.template 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/templates/blogblockedhosts.template 2005-02-09 18:39:00 UTC (rev 1026)
@@ -9,7 +9,7 @@
<label for="pluginEnabled">{$locale->tr("label_enable")}</label>
<span class="required"></span>
<div class="formHelp">
- <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("hotblock_plugin_enabled")}
+ <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("hostblock_plugin_enabled")}
</div>
</div>
<div class="list_nav_option">
Modified: plugins/trunk/hostblock/templates/editblockedhost.template
===================================================================
--- plugins/trunk/hostblock/templates/editblockedhost.template 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/templates/editblockedhost.template 2005-02-09 18:39:00 UTC (rev 1026)
@@ -3,7 +3,7 @@
{include file="common.template"}
<form name="editBlockedHost" action="admin.php" method="post" onSubmit="return checkIpAddress(this);">
<fieldset class="inputField">
- <legend>{$locale->tr("editBlockedHost")}</legend>
+ <legend>{$locale->tr("edit_blocked_host")}</legend>
{include file="$admintemplatepath/successmessage.template"}
{include file="$admintemplatepath/errormessage.template"}
<div class="field">
Modified: plugins/trunk/hostblock/templates/editblogblockedhost.template
===================================================================
--- plugins/trunk/hostblock/templates/editblogblockedhost.template 2005-02-09 18:37:24 UTC (rev 1025)
+++ plugins/trunk/hostblock/templates/editblogblockedhost.template 2005-02-09 18:39:00 UTC (rev 1026)
@@ -3,7 +3,7 @@
{include file="common.template"}
<form name="editBlogBlockedHost" action="admin.php" method="post" onSubmit="return checkIpAddress(this);">
<fieldset class="inputField">
- <legend>{$locale->tr("editBlockedHost")}</legend>
+ <legend>{$locale->tr("edit_blocked_host")}</legend>
{include file="$admintemplatepath/successmessage.template"}
{include file="$admintemplatepath/errormessage.template"}
<div class="field">
More information about the pLog-svn
mailing list