summaryrefslogtreecommitdiff
path: root/lib/plugins/popularity
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2010-10-07 09:44:02 +0200
committerAdrian Lang <mail@adrianlang.de>2010-10-07 09:44:02 +0200
commitd9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5 (patch)
tree39c26d5412170ca4fa176962e60e9962dc643667 /lib/plugins/popularity
parent2c053ed58376c6709596ab48fc40dceb90d4e89d (diff)
parent85dd53ceb1c2d9a7abe01b5ec50d155dcb142c59 (diff)
downloadrpg-d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5.tar.gz
rpg-d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5.tar.bz2
Merge branch 'master' into stable
Diffstat (limited to 'lib/plugins/popularity')
-rw-r--r--lib/plugins/popularity/admin.php10
-rw-r--r--lib/plugins/popularity/lang/de-informal/lang.php3
-rw-r--r--lib/plugins/popularity/lang/eo/lang.php1
-rw-r--r--lib/plugins/popularity/lang/es/lang.php1
-rw-r--r--lib/plugins/popularity/lang/pt-br/lang.php1
-rw-r--r--lib/plugins/popularity/lang/ru/intro.txt4
6 files changed, 15 insertions, 5 deletions
diff --git a/lib/plugins/popularity/admin.php b/lib/plugins/popularity/admin.php
index c72beafdb..71ea40799 100644
--- a/lib/plugins/popularity/admin.php
+++ b/lib/plugins/popularity/admin.php
@@ -13,7 +13,7 @@ if(!defined('DOKU_INC')) die();
* need to inherit from this class
*/
class admin_plugin_popularity extends DokuWiki_Admin_Plugin {
- var $version = '2008-02-20';
+ var $version = '2010-09-17';
/**
@@ -26,7 +26,7 @@ class admin_plugin_popularity extends DokuWiki_Admin_Plugin {
'date' => $this->version,
'name' => 'Popularity Feedback Plugin',
'desc' => 'Send anonymous data about your wiki to the developers.',
- 'url' => 'http://dokuwiki.org/plugin:popularity',
+ 'url' => 'http://www.dokuwiki.org/plugin:popularity',
);
}
@@ -114,6 +114,8 @@ class admin_plugin_popularity extends DokuWiki_Admin_Plugin {
$data['page_size'] = $list['file_size'];
$data['page_biggest'] = $list['file_max'];
$data['page_smallest'] = $list['file_min'];
+ $data['page_nscount'] = $list['dir_count'];
+ $data['page_nsnest'] = $list['dir_nest'];
if($list['file_count']) $data['page_avg'] = $list['file_size'] / $list['file_count'];
$data['page_oldest'] = $list['file_oldest'];
unset($list);
@@ -125,6 +127,8 @@ class admin_plugin_popularity extends DokuWiki_Admin_Plugin {
$data['media_size'] = $list['file_size'];
$data['media_biggest'] = $list['file_max'];
$data['media_smallest'] = $list['file_min'];
+ $data['media_nscount'] = $list['dir_count'];
+ $data['media_nsnest'] = $list['dir_nest'];
if($list['file_count']) $data['media_avg'] = $list['file_size'] / $list['file_count'];
unset($list);
@@ -209,6 +213,7 @@ class admin_plugin_popularity extends DokuWiki_Admin_Plugin {
function _search_count(&$data,$base,$file,$type,$lvl,$opts){
// traverse
if($type == 'd'){
+ if($data['dir_nest'] < $lvl) $data['dir_nest'] = $lvl;
$data['dir_count']++;
return true;
}
@@ -223,6 +228,7 @@ class admin_plugin_popularity extends DokuWiki_Admin_Plugin {
if($data['file_max'] < $size) $data['file_max'] = $size;
if(!isset($data['file_oldest']) || $data['file_oldest'] > $date) $data['file_oldest'] = $date;
}
+
return false;
}
diff --git a/lib/plugins/popularity/lang/de-informal/lang.php b/lib/plugins/popularity/lang/de-informal/lang.php
index 004d028e0..076b37115 100644
--- a/lib/plugins/popularity/lang/de-informal/lang.php
+++ b/lib/plugins/popularity/lang/de-informal/lang.php
@@ -5,6 +5,7 @@
* @author Alexander Fischer <tbanus@os-forge.net>
* @author Juergen Schwarzer <jschwarzer@freenet.de>
* @author Marcel Metz <marcel_metz@gmx.de>
+ * @author Matthias Schulte <post@lupo49.de>
*/
-$lang['name'] = 'Polularitätsrückmeldung (kann eine Weile dauern, bis es fertig geladen wurde)';
+$lang['name'] = 'Popularitätsrückmeldung (kann eine Weile dauern, bis es fertig geladen wurde)';
$lang['submit'] = 'Sende Daten';
diff --git a/lib/plugins/popularity/lang/eo/lang.php b/lib/plugins/popularity/lang/eo/lang.php
index a9d1fdaff..9326cc741 100644
--- a/lib/plugins/popularity/lang/eo/lang.php
+++ b/lib/plugins/popularity/lang/eo/lang.php
@@ -8,6 +8,7 @@
* @author Erik Pedersen <erik pedersen@shaw.ca>
* @author Erik Pedersen <erik.pedersen@shaw.ca>
* @author Robert Bogenschneider <robog@GMX.de>
+ * @author Robert BOGENSCHNEIDER <robog@gmx.de>
*/
$lang['name'] = 'Populareca enketo (eble la ŝargo prokrastos iomete)';
$lang['submit'] = 'Sendi datenaron';
diff --git a/lib/plugins/popularity/lang/es/lang.php b/lib/plugins/popularity/lang/es/lang.php
index 4fe24a8f0..c76190c2c 100644
--- a/lib/plugins/popularity/lang/es/lang.php
+++ b/lib/plugins/popularity/lang/es/lang.php
@@ -15,6 +15,7 @@
* @author Fernando J. Gómez <fjgomez@gmail.com>
* @author Victor Castelan <victorcastelan@gmail.com>
* @author Mauro Javier Giamberardino <mgiamberardino@gmail.com>
+ * @author Oscar M. Lage <r0sk10@gmail.com>
*/
$lang['name'] = 'Retroinformación (Feedback) plugin Popularity';
$lang['submit'] = 'Enviar datos';
diff --git a/lib/plugins/popularity/lang/pt-br/lang.php b/lib/plugins/popularity/lang/pt-br/lang.php
index 67732e8ef..907b4db5d 100644
--- a/lib/plugins/popularity/lang/pt-br/lang.php
+++ b/lib/plugins/popularity/lang/pt-br/lang.php
@@ -13,6 +13,7 @@
* @author Jair Henrique <jair.henrique@gmail.com>
* @author Luis Dantas <luisdantas@gmail.com>
* @author Sergio Motta sergio@cisne.com.br
+ * @author Isaias Masiero Filho <masiero@masiero.org>
*/
$lang['name'] = 'Retorno de popularidade (pode demorar um pouco para carregar)';
$lang['submit'] = 'Enviar dados';
diff --git a/lib/plugins/popularity/lang/ru/intro.txt b/lib/plugins/popularity/lang/ru/intro.txt
index 9250e20ae..587a7ae85 100644
--- a/lib/plugins/popularity/lang/ru/intro.txt
+++ b/lib/plugins/popularity/lang/ru/intro.txt
@@ -1,10 +1,10 @@
====== Сбор информации о популярности ======
-Этот инструмент собирает анонимные данные о вашей вики и позволяет вам отправить их разработчикам DokuWiki. Эти данные помогут им понять то, как именно используется DokuWiki, и удостовериться, что принимаемые проектные решения соответствуют жизненным реалиям.
+Этот инструмент собирает анонимные данные о вашей вики и позволяет вам отправить их разработчикам «ДокуВики». Эти данные помогут им понять то, как именно используется «ДокуВики», и удостовериться, что принимаемые проектные решения соответствуют жизненным реалиям.
Отправляйте данные время от времени для того, чтобы сообщить разработчикам о том, что ваша вики «подросла». Отправленные вами данные будут идентифицированы по анонимному ID.
-Собранные данные содержат такую информацию, как: версия DokuWiki, количество и размер ваших страниц и файлов, установленные плагины, информацию об установленном PHP.
+Собранные данные содержат такую информацию, как: версия «ДокуВики», количество и размер ваших страниц и файлов, установленные плагины, информацию об установленном PHP.
Данные, которые будут посланы, представлены ниже. Пожалуйста, используйте кнопку «Отправить данные», чтобы передать информацию.