[pLog-svn] r1138 - in plugins/trunk/karma: class/view locale
mark at devel.plogworld.net
mark at devel.plogworld.net
Sat Feb 19 11:27:00 GMT 2005
Author: mark
Date: 2005-02-19 11:27:00 +0000 (Sat, 19 Feb 2005)
New Revision: 1138
Modified:
plugins/trunk/karma/class/view/adminkarmapluginsettingsview.class.php
plugins/trunk/karma/locale/locale_en_UK.php
plugins/trunk/karma/locale/locale_zh_TW.php
Log:
Update locels, and add initial value of view,
Modified: plugins/trunk/karma/class/view/adminkarmapluginsettingsview.class.php
===================================================================
--- plugins/trunk/karma/class/view/adminkarmapluginsettingsview.class.php 2005-02-19 10:50:41 UTC (rev 1137)
+++ plugins/trunk/karma/class/view/adminkarmapluginsettingsview.class.php 2005-02-19 11:27:00 UTC (rev 1138)
@@ -1,6 +1,7 @@
<?php
include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/karma/class/karma/karmalib.class.php" );
/**
* implements the main view of the feed reader plugin
@@ -19,8 +20,11 @@
$blogSettings = $this->_blogInfo->getSettings();
$pluginEnabled = $blogSettings->getValue( "plugin_karma_enabled" );
$disableNegative = $blogSettings->getValue( "plugin_karma_disable_negative_articles" );
+ if ($disableNegative == "") $disableNegative = 1;
$negativeThreshold = $blogSettings->getValue( "plugin_karma_negative_threshold" );
+ if ($negativeThreshold == "") $negativeThreshold = PLUGIN_KARMA_DEFAULT_NEGATIVE_THRESHOLD;
$trackVoters = $blogSettings->getValue( "plugin_karma_track_voters" );
+ if ($trackVoters == "") $trackVoters = 1;
$scoring = $blogSettings->getValue( "plugin_karma_scoring_coefficient" );
// create a view and export the settings to the template
Modified: plugins/trunk/karma/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/karma/locale/locale_en_UK.php 2005-02-19 10:50:41 UTC (rev 1137)
+++ plugins/trunk/karma/locale/locale_en_UK.php 2005-02-19 11:27:00 UTC (rev 1138)
@@ -25,7 +25,8 @@
$messages["karma_1.5_times"] = "50% More";
$messages["karma_2_times"] ="Twice More";
-$messages["error_fetching_moderated_down_article"] = "There were errors when fetching the moderated down articels.";
+$messages["error_fetching_moderated_down_article"] = "There were errors when fetching the moderated down article.";
+$messages["error_fetching_moderated_down_articles"] = "There were errors when fetching the moderated down articles.";
$messages["error_karma_blogid_not_valid"] = "The blog identifier is not valid.";
$messages["error_karma_articleid_not_valid"] = "The article identifier is not valid.";
$messages["error_karma_modeid_not_valid"] = "The mode identifier is not valid.";
Modified: plugins/trunk/karma/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/karma/locale/locale_zh_TW.php 2005-02-19 10:50:41 UTC (rev 1137)
+++ plugins/trunk/karma/locale/locale_zh_TW.php 2005-02-19 11:27:00 UTC (rev 1138)
@@ -26,6 +26,7 @@
$messages["karma_2_times"] = "正向評鑑的價值是負向評價的 2 倍";
$messages["error_fetching_moderated_down_article"] = "在讀取下架文章時發生錯誤。";
+$messages["error_fetching_moderated_down_articles"] = "在讀取下架文章列表時發生錯誤。";
$messages["error_karma_blogid_not_valid"] = "網誌代碼錯誤。";
$messages["error_karma_articleid_not_valid"] = "文章代碼錯誤。";
$messages["error_karma_modeid_not_valid"] = "文章評鑑操作代碼錯誤。";
More information about the pLog-svn
mailing list