From 9c5bebaec415ab901f8eb6396eb3778fcf5854c5 Mon Sep 17 00:00:00 2001
From: garvinhicking <garvinhicking>
Date: Tue, 11 Oct 2005 17:43:58 +0000
Subject: [PATCH] Allow to show the category/entry count

---
 docs/NEWS                                 |  3 +-
 include/plugin_internal.inc.php           | 34 +++++++++++++++++++++--
 lang/UTF-8/serendipity_lang_bg.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_cn.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_cs.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_cz.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_da.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_de.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_en.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_es.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_fa.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_fi.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_fr.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_hu.inc.php    |  1 +
 lang/UTF-8/serendipity_lang_is.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_it.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_ja.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_ko.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_nl.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_no.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_pt.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_pt_PT.inc.php |  1 +
 lang/UTF-8/serendipity_lang_ro.inc.php    |  1 +
 lang/UTF-8/serendipity_lang_ru.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_se.inc.php    |  1 +
 lang/UTF-8/serendipity_lang_tn.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_tw.inc.php    |  3 +-
 lang/UTF-8/serendipity_lang_zh.inc.php    |  3 +-
 lang/addlang.txt                          |  3 +-
 lang/serendipity_lang_bg.inc.php          |  1 +
 lang/serendipity_lang_cn.inc.php          |  1 +
 lang/serendipity_lang_cs.inc.php          |  1 +
 lang/serendipity_lang_cz.inc.php          |  1 +
 lang/serendipity_lang_da.inc.php          |  1 +
 lang/serendipity_lang_de.inc.php          |  1 +
 lang/serendipity_lang_en.inc.php          |  1 +
 lang/serendipity_lang_es.inc.php          |  1 +
 lang/serendipity_lang_fa.inc.php          |  1 +
 lang/serendipity_lang_fi.inc.php          |  1 +
 lang/serendipity_lang_fr.inc.php          |  1 +
 lang/serendipity_lang_hu.inc.php          |  1 +
 lang/serendipity_lang_is.inc.php          |  1 +
 lang/serendipity_lang_it.inc.php          |  1 +
 lang/serendipity_lang_ja.inc.php          |  1 +
 lang/serendipity_lang_ko.inc.php          |  1 +
 lang/serendipity_lang_nl.inc.php          |  1 +
 lang/serendipity_lang_no.inc.php          |  1 +
 lang/serendipity_lang_pt.inc.php          |  1 +
 lang/serendipity_lang_pt_PT.inc.php       |  1 +
 lang/serendipity_lang_ro.inc.php          |  1 +
 lang/serendipity_lang_ru.inc.php          |  1 +
 lang/serendipity_lang_se.inc.php          |  1 +
 lang/serendipity_lang_tn.inc.php          |  1 +
 lang/serendipity_lang_tw.inc.php          |  1 +
 lang/serendipity_lang_zh.inc.php          |  1 +
 55 files changed, 109 insertions(+), 27 deletions(-)

diff --git a/docs/NEWS b/docs/NEWS
index afb7a05..5bdf7c9 100644
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -8,7 +8,8 @@ Version 0.9-beta2 ()
       Martin Eichenberg! (garvinhicking)
 
     * The output of the category plugin can now be styled via Smarty
-      templating (plugin_categories.tpl)
+      templating (plugin_categories.tpl). Also you can now enable showing
+      the number of entries per category. (garvinhicking)
 
     * Admin entry overview: Show pagination on bottom of the list and
       allow filtering for showing drafts/publishs (garvinhicking)
diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php
index f7ca5f7..7abf7b8 100644
--- a/include/plugin_internal.inc.php
+++ b/include/plugin_internal.inc.php
@@ -1151,7 +1151,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Serendipity Team');
         $propbag->add('version',       '2.0');
-        $propbag->add('configuration', array('authorid', 'parent_base', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel', 'smarty'));
+        $propbag->add('configuration', array('authorid', 'parent_base', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel', 'show_count', 'smarty'));
         $propbag->add('groups',        array('FRONTEND_VIEWS'));
     }
 
@@ -1245,6 +1245,13 @@ class serendipity_categories_plugin extends serendipity_plugin {
                 $propbag->add('default',     false);
                 break;
 
+            case 'show_count':
+                $propbag->add('type',        'boolean');
+                $propbag->add('name',        CATEGORY_PLUGIN_SHOWCOUNT);
+                $propbag->add('description', '');
+                $propbag->add('default',     false);
+                break;
+
             default:
                 return false;
         }
@@ -1267,6 +1274,24 @@ class serendipity_categories_plugin extends serendipity_plugin {
         $categories = serendipity_fetchCategories(empty($which_category) ? 'all' : $which_category, '', $sort);
         $title = $this->title;
 
+        $cat_count = array();
+        if (serendipity_db_bool($this->get_config('show_count'))) {
+            $cat_sql        = "SELECT c.categoryid, c.category_name, count(e.id) as postings
+                                            FROM {$serendipity['dbPrefix']}entrycat ec,
+                                                 {$serendipity['dbPrefix']}category c,
+                                                 {$serendipity['dbPrefix']}entries e
+                                            WHERE ec.categoryid = c.categoryid AND ec.entryid = e.id
+                                            GROUP BY ec.categoryid, c.category_name
+                                            ORDER BY postings DESC";
+            $category_rows  = serendipity_db_query($cat_sql);
+            if (is_array($category_rows)) {
+                foreach($category_rows AS $cat) {
+                    $cat_count[$cat['categoryid']] = $cat['postings'];
+                }
+            }
+            
+        }
+
         $html       = '';
 
         if (!$smarty && $is_form) {
@@ -1320,6 +1345,11 @@ class serendipity_categories_plugin extends serendipity_plugin {
                 $categories[$cid]['feedCategoryURL'] = serendipity_feedCategoryURL($cat, 'serendipityHTTPPath');
                 $categories[$cid]['categoryURL']     = serendipity_categoryURL($cat, 'serendipityHTTPPath');
                 $categories[$cid]['paddingPx']       = $cat['depth']*6;
+                
+                if (!empty($cat_count[$cid])) {
+                    $categories[$cid]['true_category_name'] = $cat['category_name'];
+                    $categories[$cid]['category_name'] .= ' (' . $cat_count[$cid] . ')';
+                }
 
                 if (!$smarty) {
                     $html .= '<div style="padding-bottom: 2px;">';
@@ -1331,7 +1361,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
                     if ( !empty($image) ) {
                         $html .= '<a href="'. $categories[$cid]['feedCategoryURL'] .'"><img src="'. $image .'" alt="XML" style="border: 0px" /></a> ';
                     }
-                    $html .= '<a href="'. $categories[$cid]['categoryURL'] .'" title="'. htmlspecialchars($cat['category_description']) .'" style="padding-left: '. $categories[$cid]['paddingPx'] .'px">'. htmlspecialchars($cat['category_name']) .'</a>';
+                    $html .= '<a href="'. $categories[$cid]['categoryURL'] .'" title="'. htmlspecialchars($cat['category_description']) .'" style="padding-left: '. $categories[$cid]['paddingPx'] .'px">'. htmlspecialchars($categories[$cid]['category_name']) .'</a>';
                     $html .= '</div>' . "\n";
                 }
             }
diff --git a/lang/UTF-8/serendipity_lang_bg.inc.php b/lang/UTF-8/serendipity_lang_bg.inc.php
index a521658..198bb1c 100644
--- a/lang/UTF-8/serendipity_lang_bg.inc.php
+++ b/lang/UTF-8/serendipity_lang_bg.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_bg.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_bg.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) 2004 Bogomil Shopov <bogomil@spisanie.com>
@@ -779,3 +779,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_cn.inc.php b/lang/UTF-8/serendipity_lang_cn.inc.php
index f88e688..bc56586 100644
--- a/lang/UTF-8/serendipity_lang_cn.inc.php
+++ b/lang/UTF-8/serendipity_lang_cn.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_cn.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_cn.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_cs.inc.php b/lang/UTF-8/serendipity_lang_cs.inc.php
index ceac710..448c6b4 100644
--- a/lang/UTF-8/serendipity_lang_cs.inc.php
+++ b/lang/UTF-8/serendipity_lang_cs.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_cs.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_cs.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) 2005 Josef Klimosz <ok2wo@centrum.cz>
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_cz.inc.php b/lang/UTF-8/serendipity_lang_cz.inc.php
index f4d739c..2e5949f 100644
--- a/lang/UTF-8/serendipity_lang_cz.inc.php
+++ b/lang/UTF-8/serendipity_lang_cz.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_cz.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_cz.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) 2004 Josef Klimosz <ok2wo@centrum.cz>
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_da.inc.php b/lang/UTF-8/serendipity_lang_da.inc.php
index e39111e..884e580 100644
--- a/lang/UTF-8/serendipity_lang_da.inc.php
+++ b/lang/UTF-8/serendipity_lang_da.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_da.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_da.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Tom Sommer, <ts@dreamcoder.dk>
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_de.inc.php b/lang/UTF-8/serendipity_lang_de.inc.php
index 18fb042..15bed7c 100644
--- a/lang/UTF-8/serendipity_lang_de.inc.php
+++ b/lang/UTF-8/serendipity_lang_de.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_de.inc.php 524 2005-10-04 10:11:02Z garvinhicking $
+<?php # $Id: serendipity_lang_de.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) Jannis Hermanns, Garvin Hicking and others
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Zeigt die Liste aller Autoren');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Smarty-Templating aktivieren?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'Falls diese Option aktiviert ist, wird das Kategorie-Plugin die Liste mittels Smarty-Templates ausgeben. Durch die Aktivierung der Option kann dann das Layout mittels der Template-Datei "plugin_categories.tpl" angepasst werden. Das Aktivieren dieser Option bringt Einbußungen bei der Performance mit sich, und daher sollten Sie die Option nur dann aktivieren, wenn ihnen die Anpassungen wichtig sind.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_en.inc.php b/lang/UTF-8/serendipity_lang_en.inc.php
index 237a129..89ec4f2 100644
--- a/lang/UTF-8/serendipity_lang_en.inc.php
+++ b/lang/UTF-8/serendipity_lang_en.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_en.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_en.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_es.inc.php b/lang/UTF-8/serendipity_lang_es.inc.php
index 235d5ad..ecbcef6 100644
--- a/lang/UTF-8/serendipity_lang_es.inc.php
+++ b/lang/UTF-8/serendipity_lang_es.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_es.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_es.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Luis Cervantes <LuisCervantes@ono.com>,
@@ -806,3 +806,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_fa.inc.php b/lang/UTF-8/serendipity_lang_fa.inc.php
index 16e04c1..0b4c0a7 100644
--- a/lang/UTF-8/serendipity_lang_fa.inc.php
+++ b/lang/UTF-8/serendipity_lang_fa.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_fa.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_fa.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved. See LICENSE file for licensing details
 # this translation, translated by Omid Mottaghi <http://oxygenws.com>
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_fi.inc.php b/lang/UTF-8/serendipity_lang_fi.inc.php
index 802afee..c898b7f 100644
--- a/lang/UTF-8/serendipity_lang_fi.inc.php
+++ b/lang/UTF-8/serendipity_lang_fi.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_fi.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_fi.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_fr.inc.php b/lang/UTF-8/serendipity_lang_fr.inc.php
index 8df80ed..6120586 100644
--- a/lang/UTF-8/serendipity_lang_fr.inc.php
+++ b/lang/UTF-8/serendipity_lang_fr.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_fr.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_fr.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation by Sebastian Mordziol <argh@php-tools.net>
@@ -799,3 +799,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_hu.inc.php b/lang/UTF-8/serendipity_lang_hu.inc.php
index 60599f8..08ca03f 100644
--- a/lang/UTF-8/serendipity_lang_hu.inc.php
+++ b/lang/UTF-8/serendipity_lang_hu.inc.php
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_is.inc.php b/lang/UTF-8/serendipity_lang_is.inc.php
index 402d36c..c7c8f86 100644
--- a/lang/UTF-8/serendipity_lang_is.inc.php
+++ b/lang/UTF-8/serendipity_lang_is.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_is.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_is.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_it.inc.php b/lang/UTF-8/serendipity_lang_it.inc.php
index 2f4d3a0..911845f 100644
--- a/lang/UTF-8/serendipity_lang_it.inc.php
+++ b/lang/UTF-8/serendipity_lang_it.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_it.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_it.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Alessandro Pellizzari <alex@amiran.it>
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_ja.inc.php b/lang/UTF-8/serendipity_lang_ja.inc.php
index e74df9f..6ee69df 100644
--- a/lang/UTF-8/serendipity_lang_ja.inc.php
+++ b/lang/UTF-8/serendipity_lang_ja.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_ja.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_ja.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) Tadashi Jokagi <elf2000@users.sourceforge.net>, 2004-2005.
@@ -796,3 +796,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_ko.inc.php b/lang/UTF-8/serendipity_lang_ko.inc.php
index e69363d..0458ba4 100644
--- a/lang/UTF-8/serendipity_lang_ko.inc.php
+++ b/lang/UTF-8/serendipity_lang_ko.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_ko.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_ko.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translated by: Wesley Hwang-Chung <wesley96@gmail.com> 
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_nl.inc.php b/lang/UTF-8/serendipity_lang_nl.inc.php
index 105a10b..465aff4 100644
--- a/lang/UTF-8/serendipity_lang_nl.inc.php
+++ b/lang/UTF-8/serendipity_lang_nl.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_nl.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_nl.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Christiaan Heerze <webmaster@heimp.nl>
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_no.inc.php b/lang/UTF-8/serendipity_lang_no.inc.php
index bb4790c..aa08e58 100644
--- a/lang/UTF-8/serendipity_lang_no.inc.php
+++ b/lang/UTF-8/serendipity_lang_no.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_no.inc.php 526 2005-10-04 11:36:21Z garvinhicking $
+<?php # $Id: serendipity_lang_no.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Jo Christian Oterhals <oterhals@gmail.com>
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_pt.inc.php b/lang/UTF-8/serendipity_lang_pt.inc.php
index 47e238f..a5342c9 100644
--- a/lang/UTF-8/serendipity_lang_pt.inc.php
+++ b/lang/UTF-8/serendipity_lang_pt.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_pt.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_pt.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Agner Olson <agner@agner.net> 
@@ -797,3 +797,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_pt_PT.inc.php b/lang/UTF-8/serendipity_lang_pt_PT.inc.php
index ff58fec..4dc29a7 100644
--- a/lang/UTF-8/serendipity_lang_pt_PT.inc.php
+++ b/lang/UTF-8/serendipity_lang_pt_PT.inc.php
@@ -796,3 +796,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_ro.inc.php b/lang/UTF-8/serendipity_lang_ro.inc.php
index 8fd65e2..843c408 100644
--- a/lang/UTF-8/serendipity_lang_ro.inc.php
+++ b/lang/UTF-8/serendipity_lang_ro.inc.php
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_ru.inc.php b/lang/UTF-8/serendipity_lang_ru.inc.php
index 7b46470..6fbe049 100644
--- a/lang/UTF-8/serendipity_lang_ru.inc.php
+++ b/lang/UTF-8/serendipity_lang_ru.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_ru.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_ru.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -795,3 +795,4 @@ $i18n_filename_to   = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_se.inc.php b/lang/UTF-8/serendipity_lang_se.inc.php
index 829bc0a..9e0e168 100644
--- a/lang/UTF-8/serendipity_lang_se.inc.php
+++ b/lang/UTF-8/serendipity_lang_se.inc.php
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_tn.inc.php b/lang/UTF-8/serendipity_lang_tn.inc.php
index bf0f475..fd3f7f9 100644
--- a/lang/UTF-8/serendipity_lang_tn.inc.php
+++ b/lang/UTF-8/serendipity_lang_tn.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_tn.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_tn.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translated by CapriSkye <admin@capriskye.com>
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_tw.inc.php b/lang/UTF-8/serendipity_lang_tw.inc.php
index 712f0cc..ec4df91 100644
--- a/lang/UTF-8/serendipity_lang_tw.inc.php
+++ b/lang/UTF-8/serendipity_lang_tw.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_tw.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_tw.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translated by CapriSkye <admin@capriskye.com>
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/UTF-8/serendipity_lang_zh.inc.php b/lang/UTF-8/serendipity_lang_zh.inc.php
index 6869236..8abf4b0 100644
--- a/lang/UTF-8/serendipity_lang_zh.inc.php
+++ b/lang/UTF-8/serendipity_lang_zh.inc.php
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_zh.inc.php 522 2005-10-01 21:12:31Z jtate $
+<?php # $Id: serendipity_lang_zh.inc.php 541 2005-10-10 12:41:33Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/addlang.txt b/lang/addlang.txt
index d3a8961..b4417b4 100644
--- a/lang/addlang.txt
+++ b/lang/addlang.txt
@@ -1,2 +1 @@
-@define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
-@define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_bg.inc.php b/lang/serendipity_lang_bg.inc.php
index 8f65db1..e687467 100644
--- a/lang/serendipity_lang_bg.inc.php
+++ b/lang/serendipity_lang_bg.inc.php
@@ -779,3 +779,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_cn.inc.php b/lang/serendipity_lang_cn.inc.php
index ef7b7a7..a586d9d 100644
--- a/lang/serendipity_lang_cn.inc.php
+++ b/lang/serendipity_lang_cn.inc.php
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_cs.inc.php b/lang/serendipity_lang_cs.inc.php
index f26b857..6359430 100644
--- a/lang/serendipity_lang_cs.inc.php
+++ b/lang/serendipity_lang_cs.inc.php
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_cz.inc.php b/lang/serendipity_lang_cz.inc.php
index 3313ba0..bf5e9f3 100644
--- a/lang/serendipity_lang_cz.inc.php
+++ b/lang/serendipity_lang_cz.inc.php
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_da.inc.php b/lang/serendipity_lang_da.inc.php
index f318ccf..9b8e55f 100644
--- a/lang/serendipity_lang_da.inc.php
+++ b/lang/serendipity_lang_da.inc.php
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_de.inc.php b/lang/serendipity_lang_de.inc.php
index 5dd2866..af7ec86 100644
--- a/lang/serendipity_lang_de.inc.php
+++ b/lang/serendipity_lang_de.inc.php
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Zeigt die Liste aller Autoren');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Smarty-Templating aktivieren?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'Falls diese Option aktiviert ist, wird das Kategorie-Plugin die Liste mittels Smarty-Templates ausgeben. Durch die Aktivierung der Option kann dann das Layout mittels der Template-Datei "plugin_categories.tpl" angepasst werden. Das Aktivieren dieser Option bringt Einbußungen bei der Performance mit sich, und daher sollten Sie die Option nur dann aktivieren, wenn ihnen die Anpassungen wichtig sind.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_en.inc.php b/lang/serendipity_lang_en.inc.php
index 5229511..e4d67fe 100644
--- a/lang/serendipity_lang_en.inc.php
+++ b/lang/serendipity_lang_en.inc.php
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_es.inc.php b/lang/serendipity_lang_es.inc.php
index 30689b2..632209e 100644
--- a/lang/serendipity_lang_es.inc.php
+++ b/lang/serendipity_lang_es.inc.php
@@ -806,3 +806,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_fa.inc.php b/lang/serendipity_lang_fa.inc.php
index c02277d..cd4fe2e 100644
--- a/lang/serendipity_lang_fa.inc.php
+++ b/lang/serendipity_lang_fa.inc.php
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_fi.inc.php b/lang/serendipity_lang_fi.inc.php
index 92cc121..a51dacc 100644
--- a/lang/serendipity_lang_fi.inc.php
+++ b/lang/serendipity_lang_fi.inc.php
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_fr.inc.php b/lang/serendipity_lang_fr.inc.php
index 44c5ec7..8fc6072 100644
--- a/lang/serendipity_lang_fr.inc.php
+++ b/lang/serendipity_lang_fr.inc.php
@@ -799,3 +799,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_hu.inc.php b/lang/serendipity_lang_hu.inc.php
index cb48eff..178d9b5 100644
--- a/lang/serendipity_lang_hu.inc.php
+++ b/lang/serendipity_lang_hu.inc.php
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_is.inc.php b/lang/serendipity_lang_is.inc.php
index fa2bfae..eadee0a 100644
--- a/lang/serendipity_lang_is.inc.php
+++ b/lang/serendipity_lang_is.inc.php
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_it.inc.php b/lang/serendipity_lang_it.inc.php
index c1805fa..d1be35a 100644
--- a/lang/serendipity_lang_it.inc.php
+++ b/lang/serendipity_lang_it.inc.php
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_ja.inc.php b/lang/serendipity_lang_ja.inc.php
index 8c8cf18..14358d7 100644
--- a/lang/serendipity_lang_ja.inc.php
+++ b/lang/serendipity_lang_ja.inc.php
@@ -796,3 +796,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_ko.inc.php b/lang/serendipity_lang_ko.inc.php
index c282091..f22b14b 100644
--- a/lang/serendipity_lang_ko.inc.php
+++ b/lang/serendipity_lang_ko.inc.php
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_nl.inc.php b/lang/serendipity_lang_nl.inc.php
index ea51fec..2e1093e 100644
--- a/lang/serendipity_lang_nl.inc.php
+++ b/lang/serendipity_lang_nl.inc.php
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_no.inc.php b/lang/serendipity_lang_no.inc.php
index a3a699d..7f7e97c 100644
--- a/lang/serendipity_lang_no.inc.php
+++ b/lang/serendipity_lang_no.inc.php
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_pt.inc.php b/lang/serendipity_lang_pt.inc.php
index 62cccf6..121ed74 100644
--- a/lang/serendipity_lang_pt.inc.php
+++ b/lang/serendipity_lang_pt.inc.php
@@ -797,3 +797,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_pt_PT.inc.php b/lang/serendipity_lang_pt_PT.inc.php
index 131db5b..4d66711 100644
--- a/lang/serendipity_lang_pt_PT.inc.php
+++ b/lang/serendipity_lang_pt_PT.inc.php
@@ -796,3 +796,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_ro.inc.php b/lang/serendipity_lang_ro.inc.php
index 8fd65e2..843c408 100644
--- a/lang/serendipity_lang_ro.inc.php
+++ b/lang/serendipity_lang_ro.inc.php
@@ -792,3 +792,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_ru.inc.php b/lang/serendipity_lang_ru.inc.php
index 0b9be08..371fb47 100644
--- a/lang/serendipity_lang_ru.inc.php
+++ b/lang/serendipity_lang_ru.inc.php
@@ -795,3 +795,4 @@ $i18n_filename_to   = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_se.inc.php b/lang/serendipity_lang_se.inc.php
index 261252e..8370553 100644
--- a/lang/serendipity_lang_se.inc.php
+++ b/lang/serendipity_lang_se.inc.php
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_tn.inc.php b/lang/serendipity_lang_tn.inc.php
index fda660f..87ebe93 100644
--- a/lang/serendipity_lang_tn.inc.php
+++ b/lang/serendipity_lang_tn.inc.php
@@ -795,3 +795,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_tw.inc.php b/lang/serendipity_lang_tw.inc.php
index 6702b6f..51db37f 100644
--- a/lang/serendipity_lang_tw.inc.php
+++ b/lang/serendipity_lang_tw.inc.php
@@ -794,3 +794,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
diff --git a/lang/serendipity_lang_zh.inc.php b/lang/serendipity_lang_zh.inc.php
index de9c033..092f89f 100644
--- a/lang/serendipity_lang_zh.inc.php
+++ b/lang/serendipity_lang_zh.inc.php
@@ -793,3 +793,4 @@
 @define('AUTHOR_PLUGIN_DESC', 'Shows a list of authors');
 @define('CATEGORY_PLUGIN_TEMPLATE', 'Enable Smarty-Templates?');
 @define('CATEGORY_PLUGIN_TEMPLATE_DESC', 'If this option is enabled, the plugin will utilize Smarty-Templating features to output the category listing. If you enable this, you can change the layout via the "plugin_categories.tpl" template file. Enabling this option will impact performance, so if you do not need to make customizations, leave it disabled.');
+@define('CATEGORY_PLUGIN_SHOWCOUNT', 'Show number of entries per category?');
-- 
2.39.5