[pLog-svn] r1100 - in plugins/trunk/delicious: . install/templates locale

mark at devel.plogworld.net mark at devel.plogworld.net
Tue Feb 15 18:51:13 GMT 2005


Author: mark
Date: 2005-02-15 18:51:13 +0000 (Tue, 15 Feb 2005)
New Revision: 1100

Modified:
   plugins/trunk/delicious/install/templates/delicious.template
   plugins/trunk/delicious/locale/locale_en_UK.php
   plugins/trunk/delicious/locale/locale_zh_TW.php
   plugins/trunk/delicious/readme.txt
Log:
Add locale for template use. And also modify readme.txt regarding to the changes.

Modified: plugins/trunk/delicious/install/templates/delicious.template
===================================================================
--- plugins/trunk/delicious/install/templates/delicious.template	2005-02-15 18:48:36 UTC (rev 1099)
+++ plugins/trunk/delicious/install/templates/delicious.template	2005-02-15 18:51:13 UTC (rev 1100)
@@ -1,12 +1,14 @@
 {include file="$blogtemplate/header.template"}
-{if $delicious->isEnabled()}
- {assign var=tagId value=$smarty.request.tag}
- {assign var=deliciousTags value=$delicious->getTagList()}
- {foreach item=deliciousTag from=$deliciousTags}
-  {math equation="ceil(x/y)+1" assign=fontsize x=$deliciousTag.count y=5}
-  <font size={$fontsize}><a href="{$deliciousTag.deliciousUrl}" style="border-bottom: 0px;" title="{$deliciousTag.count} Posts">{$deliciousTag.id}</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
- {/foreach}
-{else}
- {$locale->tr("error_delicious_not_enabled")}
+{if !empty($delicious)}
+ {if $delicious->isEnabled()}
+  {assign var=tagId value=$smarty.request.tag}
+  {assign var=deliciousTags value=$delicious->getTagList()}
+  {foreach item=deliciousTag from=$deliciousTags}
+   {math equation="ceil(x/y)+1" assign=fontsize x=$deliciousTag.count y=5}
+   <font size={$fontsize}><a href="{$deliciousTag.deliciousUrl}" style="border-bottom: 0px;" title="{$deliciousTag.count} Posts">{$deliciousTag.id}</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
+  {/foreach}
+ {else}
+  {$locale->tr("error_delicious_not_enabled")}
+ {/if}
 {/if}
 {include file="$blogtemplate/footer.template"}
\ No newline at end of file

Modified: plugins/trunk/delicious/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/delicious/locale/locale_en_UK.php	2005-02-15 18:48:36 UTC (rev 1099)
+++ plugins/trunk/delicious/locale/locale_en_UK.php	2005-02-15 18:51:13 UTC (rev 1100)
@@ -1,6 +1,7 @@
 <?php
 $messages["manageIntegrationPlugins"] = "Integration Management";
 $messages["Delicious"] = "Del.icio.us Bookmark";
+$messages["delicious"] = "Del.icio.us Bookmark";
 
 $messages["delicious_username"] = "Input your Del.icio.us Account";
 $messages["delicious_password"] = "Input your Del.icio.us Password";

Modified: plugins/trunk/delicious/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/delicious/locale/locale_zh_TW.php	2005-02-15 18:48:36 UTC (rev 1099)
+++ plugins/trunk/delicious/locale/locale_zh_TW.php	2005-02-15 18:51:13 UTC (rev 1100)
@@ -1,6 +1,7 @@
 <?php
 $messages["manageIntegrationPlugins"] = "站外系統整合管理";
 $messages["Delicious"] = "Del.icio.us 書籤整合設定";
+$messages["delicious"] = "Del.icio.us 書籤";
 
 $messages["delicious_username"] = "請輸入你的 Del.icio.us 帳號";
 $messages["delicious_password"] = "請輸入你的 Del.icio.us 密碼";

Modified: plugins/trunk/delicious/readme.txt
===================================================================
--- plugins/trunk/delicious/readme.txt	2005-02-15 18:48:36 UTC (rev 1099)
+++ plugins/trunk/delicious/readme.txt	2005-02-15 18:51:13 UTC (rev 1100)
@@ -6,9 +6,11 @@
 This plugin offers you to integrate with Del.icio.us service. 
 
 Install:
-1. Copy the install/templates/flickr.template to your plog template folder.
+1. Copy the install/templates/delicious.template to your plog template folder.
+2. Configurate your Del.icio.us plugin in your pLog control center
+3. Use $delicious->pluginTemplatePage() to get delicious template page url
 
 Usage:
-Use the following URL to call your pLog Flickr Plugin Page
+Use the following URL to call your pLog Delicous Plugin Page
 http://your-plog/index.php?op=DeliciousShow&blogId=1
 




More information about the pLog-svn mailing list