[pLog-svn] r1241 - in plugins/trunk/templateeditor: . class/action class/view locale templates

mark at devel.plogworld.net mark at devel.plogworld.net
Mon Feb 28 14:59:56 GMT 2005


Author: mark
Date: 2005-02-28 14:59:55 +0000 (Mon, 28 Feb 2005)
New Revision: 1241

Modified:
   plugins/trunk/templateeditor/class/action/pluginsiteupdatetemplatefileaction.class.php
   plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php
   plugins/trunk/templateeditor/locale/locale_en_UK.php
   plugins/trunk/templateeditor/locale/locale_zh_TW.php
   plugins/trunk/templateeditor/plugintemplateeditor.class.php
   plugins/trunk/templateeditor/templates/siteedittemplatefile.template
   plugins/trunk/templateeditor/templates/sitetemplatesetslist.template
   plugins/trunk/templateeditor/templates/sitetemplateslist.template
Log:
Update locales, include zh_TW and en_UK.

Modified: plugins/trunk/templateeditor/class/action/pluginsiteupdatetemplatefileaction.class.php
===================================================================
--- plugins/trunk/templateeditor/class/action/pluginsiteupdatetemplatefileaction.class.php	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/class/action/pluginsiteupdatetemplatefileaction.class.php	2005-02-28 14:59:55 UTC (rev 1241)
@@ -31,7 +31,7 @@
 			$this->registerField( "backupId" );
 
         	$view = new PluginSiteEditTemplateFileView( $this->_blogInfo, $this->_templateId, $this->_fileId, $this->_backupId );
-        	$view->setErrorMessage( $this->_locale->tr("error_updating_post"));
+        	$view->setErrorMessage( $this->_locale->tr("error_updating_template_file"));
         	$this->setValidationErrorView( $view );			
 		}
 		

Modified: plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php	2005-02-28 14:59:55 UTC (rev 1241)
@@ -52,7 +52,7 @@
                 if ( $backupFileCount < MAX_BACKUP_FILES ) {
                     $bakElements = explode ( "_" ,$bakFile);
                     $bakId = $bakElements[count($bakElements)-1];
-                    $bakTime = strftime ( "%Y/%m/%d - %H:%M:%S ", $bakId );
+                    $bakTime = strftime ( "%Y/%m/%d - %H:%M:%S", $bakId );
                     $file['time'] = $bakTime;
                     $file['backupId'] = basename($bakId);
                     array_push ($backupFiles, $file);

Modified: plugins/trunk/templateeditor/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/templateeditor/locale/locale_en_UK.php	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/locale/locale_en_UK.php	2005-02-28 14:59:55 UTC (rev 1241)
@@ -1,12 +1,21 @@
 <?php
-$messages["manageAntiSpamPlugins"] = "Anti Spam Management";
-$messages["NoFollow"] = "NoFollow";
+$messages["SiteTemplateEditor"] = "Site Template Editor";
+$messages["BlogTemplateEditor"] = "Blog Template Editor";
 
-$messages["nofollow_plugin_enabled"] = "Enable this plugin";
-$messages["nofollow_plugin"] = "No Follow Plugin";
+$messages["templateeditor_backupfile"] = "Please select the date that you want to recover, template editor will load it to editor automatically. Each template file can has 5 backup files in total.";
+$messages["templateeditor_choose_backupfile"] = "Select backup file to recover";
+$messages["templateeditor_currentfile"] = "Current File";
+$messages["templateeditor_filecontent"] = "Modify your template file.";
+$messages["templateeditor_recover_from"] = "Recover From";
 
-$messages["nofollow_settings_saved_ok"] = "No Follow settings saved successfully!";
+$messages["error_no_files_selected"] = "No files were selected to delete.";
+$messages["error_removing_template_file"] = "There was an error deleting template file %s.";
+$messages["error_updating_template_file"] = "There was an error updating template file %s.";
 
-$messages["label_configuration"] = "Configuration";
-$messages["label_enable"] = "Enable";
+$messages["template_file_removed_ok"] = "Template file %s deleted successfully.";
+$messages["template_files_removed_ok"] = "%s templates files deleted successfully";
+$messages["templateeditor_file_saved_ok"] = "Template file saved successfully.";
+
+$messages["label_edit"] = "Edit";
+$messages["label_backupfile"] = "Backup Recover";
 ?>
\ No newline at end of file

Modified: plugins/trunk/templateeditor/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/templateeditor/locale/locale_zh_TW.php	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/locale/locale_zh_TW.php	2005-02-28 14:59:55 UTC (rev 1241)
@@ -1,12 +1,21 @@
 <?php
-$messages["manageAntiSpamPlugins"] = "防制垃圾干擾管理";
-$messages["NoFollow"] = "NoFollow 協議設定";
+$messages["SiteTemplateEditor"] = "全域模版編輯器";
+$messages["BlogTemplateEditor"] = "網誌模版編輯器";
 
-$messages["nofollow_plugin_enabled"] = "啟動外掛程式";
-$messages["nofollow_plugin"] = "No Follow 外掛程式";
+$messages["templateeditor_backupfile"] = "請選擇您要回復的備份日期,模版編輯器會自動將備份檔載入編輯器中。pLog 系統預設為儲存 5 個備份檔。";
+$messages["templateeditor_choose_backupfile"] = "請選擇要回復的備份檔";
+$messages["templateeditor_currentfile"] = "載入最新模版檔";
+$messages["templateeditor_filecontent"] = "修改模版檔案內容,完成修改後請記得按下更新。否則您將看不到任何修改效果。";
+$messages["templateeditor_recover_from"] = "回覆自";
 
-$messages["nofollow_settings_saved_ok"] = "No Follow 設定儲存成功。";
+$messages["error_no_files_selected"] = "您沒有選擇任何模版檔案。";
+$messages["error_removing_template_file"] = "在刪除模版檔案 %s 時發生錯誤。";
+$messages["error_updating_template_file"] = "在更新模版檔案 %s 時發生錯誤。";
 
-$messages["label_configuration"] = "設定";
-$messages["label_enable"] = "啟動";
+$messages["template_file_removed_ok"] = "模版檔案「%s」已順利刪除。";
+$messages["template_files_removed_ok"] = "已順利刪除「%s」個模版檔案。";
+$messages["templateeditor_file_saved_ok"] = "模版檔案儲存成功。";
+
+$messages["label_edit"] = "編輯";
+$messages["label_backupfile"] = "備份回覆";
 ?>
\ No newline at end of file

Modified: plugins/trunk/templateeditor/plugintemplateeditor.class.php
===================================================================
--- plugins/trunk/templateeditor/plugintemplateeditor.class.php	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/plugintemplateeditor.class.php	2005-02-28 14:59:55 UTC (rev 1241)
@@ -30,7 +30,7 @@
             $this->registerAdminAction( "siteEditTemplateFile", "PluginSiteEditTemplateFileAction" );
             $this->registerAdminAction( "siteUpdateTemplateFile", "PluginSiteUpdateTemplateFileAction" );
 			
-			$this->addMenuEntry( "/menu/adminSettings/Templates", "templateEditor", "admin.php?op=siteTemplateSetsList", "templateEditor", false, true );
+			$this->addMenuEntry( "/menu/adminSettings/Templates", "SiteTemplateEditor", "admin.php?op=siteTemplateSetsList", "SiteTemplateEditor", false, true );
 		}
 	}
 ?>
\ No newline at end of file

Modified: plugins/trunk/templateeditor/templates/siteedittemplatefile.template
===================================================================
--- plugins/trunk/templateeditor/templates/siteedittemplatefile.template	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/templates/siteedittemplatefile.template	2005-02-28 14:59:55 UTC (rev 1241)
@@ -1,8 +1,8 @@
 {include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=templateEditor title=$locale->tr("templateEditor")}
-<link rel="stylesheet" href="js/editor/plogeditor.css" type="text/css" />
+{include file="$admintemplatepath/navigation.template" showOpt=SiteTemplateEditor title=$locale->tr("SiteTemplateEditor")}
+<link rel="stylesheet" href="plugins/templateeditor/js/editor/smartyeditor.css" type="text/css" />
 {literal}
-<script type="text/javascript" src="js/editor/plogeditor.js"></script>
+<script type="text/javascript" src="plugins/templateeditor/js/editor/smartyeditor.js"></script>
 <script type="text/javascript">
 function MM_jumpMenu(targ,selObj,restore){ //v3.0 
     eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
@@ -30,10 +30,10 @@
   </div>
 
   <div class="field">
-   <label for="fileContent"><a href="?op=siteTemplatesList&amp;templateId={$currentTemplate}">{$currentTemplate}</a> &raquo; {$currentFile} {if !empty($backupId)}&raquo; {$locale->tr("templateeditor_recover_from")}: {$backupId}{/if}</label>
+   <label for="fileContent"><a href="?op=siteTemplatesList&amp;templateId={$currentTemplate}">{$currentTemplate}</a> &raquo; {$currentFile} {if !empty($backupId)}&raquo; {$locale->tr("templateeditor_recover_from")}: {$backupId|date_format:"%Y/%m/%d - %H:%M:%S"}{/if}</label>
    <span class="required">*</span>
    <div class="formHelp">{$locale->tr("templateeditor_filecontent")}</div>
-   <script type="text/javascript">var ed1 = new pLogEditor('fileContent','ed1');</script>
+   <script type="text/javascript">var ed1 = new SmartyEditor('fileContent','ed1');</script>
    <textarea rows="25" id="fileContent" name="fileContent" style="width:100%">{$fileContent|escape:"html"}</textarea>
   </div>
   

Modified: plugins/trunk/templateeditor/templates/sitetemplatesetslist.template
===================================================================
--- plugins/trunk/templateeditor/templates/sitetemplatesetslist.template	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/templates/sitetemplatesetslist.template	2005-02-28 14:59:55 UTC (rev 1241)
@@ -1,5 +1,5 @@
 {include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=templateEditor title=$locale->tr("templateEditor")}
+{include file="$admintemplatepath/navigation.template" showOpt=SiteTemplateEditor title=$locale->tr("SiteTemplateEditor")}
  <form id="siteTemplateSetsList" method="post" action="admin.php">
  <div id="list">
   {include file="$admintemplatepath/successmessage.template"}

Modified: plugins/trunk/templateeditor/templates/sitetemplateslist.template
===================================================================
--- plugins/trunk/templateeditor/templates/sitetemplateslist.template	2005-02-28 14:09:56 UTC (rev 1240)
+++ plugins/trunk/templateeditor/templates/sitetemplateslist.template	2005-02-28 14:59:55 UTC (rev 1241)
@@ -1,5 +1,5 @@
 {include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=templateEditor title=$locale->tr("templateEditor")}
+{include file="$admintemplatepath/navigation.template" showOpt=SiteTemplateEditor title=$locale->tr("SiteTemplateEditor")}
 
 <div id="list_nav_bar">
  <div id="list_nav_select">




More information about the pLog-svn mailing list