[pLog-svn] r1115 - in plugins/trunk/secret: class/action locale

mark at devel.plogworld.net mark at devel.plogworld.net
Thu Feb 17 15:46:44 GMT 2005


Author: mark
Date: 2005-02-17 15:46:44 +0000 (Thu, 17 Feb 2005)
New Revision: 1115

Modified:
   plugins/trunk/secret/class/action/adminsecretpluginupdatesettingsaction.class.php
   plugins/trunk/secret/locale/locale_en_UK.php
   plugins/trunk/secret/locale/locale_zh_TW.php
Log:
Update locales of secret plugins. Now custom fileds has differe locales.

Modified: plugins/trunk/secret/class/action/adminsecretpluginupdatesettingsaction.class.php
===================================================================
--- plugins/trunk/secret/class/action/adminsecretpluginupdatesettingsaction.class.php	2005-02-17 15:01:05 UTC (rev 1114)
+++ plugins/trunk/secret/class/action/adminsecretpluginupdatesettingsaction.class.php	2005-02-17 15:46:44 UTC (rev 1115)
@@ -40,8 +40,8 @@
 			// check if the checkbox fields exists
 			if( !array_key_exists( "password_protected", $blogFields )) {
 				_debug("creating password field!");
-				$protectedField = new CustomField( "password_protected",
-				                                   "** Password protect this entry",
+				$protectedField = new CustomField( $this->_locale->tr("password_protected"),
+				                                   $this->_locale->tr("password_protected_help"),
 												   CUSTOM_FIELD_CHECKBOX,
 												   $this->_blogInfo->getId());
 				$customFields->addCustomField( $protectedField );
@@ -56,8 +56,8 @@
 			// check if the field for the password exists
 			if( !array_key_exists( "password_field", $blogFields )) {
 				_debug("creating pass-word field!");
-				$passwordField = new CustomField( "password_field",
-				                                  "** Password for this entry (only applies if the post is password protected, otherwise it will be ignored)",
+				$passwordField = new CustomField( $this->_locale->tr("password_field"),
+				                                  $this->_locale->tr("password_field_help"),
 												   CUSTOM_FIELD_TEXTBOX,
 												   $this->_blogInfo->getId());
 				$customFields->addCustomField( $passwordField );

Modified: plugins/trunk/secret/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/secret/locale/locale_en_UK.php	2005-02-17 15:01:05 UTC (rev 1114)
+++ plugins/trunk/secret/locale/locale_en_UK.php	2005-02-17 15:46:44 UTC (rev 1115)
@@ -11,6 +11,11 @@
 $messages["label_configuration"] = "Configuration";
 $messages["label_enable"] = "Enable";
 
+$messages["password_protected"] = "Password Protected";
+$messages["password_protected_help"] = "Enable Password Protection";
+$messages["password_field"] = "Password";
+$messages["password_field_help"] = "Password for this entry (only applies if the post is enabling password protection, otherwise it will be ignored).";
+
 $messages["item_protected"] = "Secret Post";
 $messages["item_protected_help"] = "Please kindly input your password! This is a secret post, you can not read this article without password.";
 $messages["send"] = "Send";

Modified: plugins/trunk/secret/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/secret/locale/locale_zh_TW.php	2005-02-17 15:01:05 UTC (rev 1114)
+++ plugins/trunk/secret/locale/locale_zh_TW.php	2005-02-17 15:46:44 UTC (rev 1115)
@@ -11,6 +11,11 @@
 $messages["label_configuration"] = "設定";
 $messages["label_enable"] = "啟動";
 
+$messages["password_protected"] = "密碼保護";
+$messages["password_protected_help"] = "啟用密碼保護";
+$messages["password_field"] = "文章密碼";
+$messages["password_field_help"] = "本篇文章密碼(只有在啟用密碼保護時才需要輸入,否則將會被忽略)。";
+
 $messages["item_protected"] = "秘密文章";
 $messages["item_protected_help"] = "請輸入密碼!本文章是秘密文章,如果您沒有密碼將無法觀看本文章。";
 $messages["send"] = "確定";




More information about the pLog-svn mailing list