Skip to content

Commit

Permalink
Outsourcing statistics panel
Browse files Browse the repository at this point in the history
- Outsourcing of the fixed statistics panel in a plugin
  • Loading branch information
Fraenkiman committed Apr 11, 2024
1 parent 4f2deb9 commit 05b6906
Show file tree
Hide file tree
Showing 29 changed files with 416 additions and 233 deletions.
16 changes: 4 additions & 12 deletions admin/panels/entry/admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,18 @@
* @author NoWhereMan <real_nowhereman at users dot sf dot com>
*
*/


class admin_entry extends AdminPanel {

var $panelname = "entry";
var $actions = array(
'list' => true,
'write' => true,
'write' => true,
'commentlist' => false,
'commedit' => false,
'delete' => false,
'cats' => true,
'stats' => true
'cats' => true
);
var $defaultaction = 'list';

}





}
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/cs-cz/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Spravovat příspěvky',
'write' => 'Přidat nový příspěvek',
'cats' => 'Manage Categories',
'stats' => 'Statistiky'
'cats' => 'Manage Categories'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'Při pokusu smazat kategorie nastala chyba.',
-3 => 'ID kategorií musí být KLADNÉ!!'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Statistiky',
'entries' => 'Záznamy',
'you_have' => 'Máte',
'entries_using' => 'záznamů s',
'characters_in' => 'znaky v',
'words' => 'slovech',
'total_disk_space_is' => 'Celkový prostor v paměti je',
'comments' => 'Komentáře',
'comments_using' => 'komentářů s',
'the' => '',
'most_commented_entries' => 'nejkomentovanější příspěvky'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/da-dk/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Administrer bidrag',
'write' => 'Skriv et bidrag',
'cats' => 'Administrer kategorier',
'stats' => 'Statistik'
'cats' => 'Administrer kategorier'
);

/* default action */
Expand Down Expand Up @@ -160,19 +159,4 @@
-2 => 'Der opstod en fejl ved sletning af kategorierne',
-3 => 'Kategori ID <strong>skal være større end 0</strong>. Værdien <strong>0</strong> er ikke tilladt.'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Statistik',
'entries' => 'Bidrag',
'you_have' => 'Du har',
'entries_using' => 'indlæg med',
'characters_in' => 'tegn i',
'words' => 'ord',
'total_disk_space_is' => 'Den samlede lagerplads er',
'comments' => 'Kommentarer',
'comments_using' => 'Kommentarer med',
'the' => 'De',
'most_commented_entries' => 'mest kommenterede indlæg'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/de-de/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Beiträge verwalten',
'write' => 'Beitrag schreiben',
'cats' => 'Kategorien verwalten',
'stats' => 'Statistiken'
'cats' => 'Kategorien verwalten'
);

/* default action */
Expand Down Expand Up @@ -160,19 +159,4 @@
-2 => 'Ein Fehler ist beim Löschen der Kategorien aufgetreten',
-3 => 'Die Kategorie ID <strong>muss größer als 0 sein</strong>. Der Wert <strong>0</strong> ist nicht erlaubt.'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Statistiken',
'entries' => 'Beiträge',
'you_have' => 'Du hast',
'entries_using' => 'Beiträge mit',
'characters_in' => 'Zeichen in',
'words' => 'Wörtern',
'total_disk_space_is' => 'Der gesamte Speicherplatz beträgt',
'comments' => 'Kommentare',
'comments_using' => 'Kommentare mit',
'the' => 'Die',
'most_commented_entries' => 'meist kommentierten Beiträge'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/el-gr/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Διαχείριση καταχωρήσεων',
'write' => 'Δημιουργία καταχώρησης',
'cats' => 'Διαχείριση κατηγοριών',
'stats' => 'Στατιστική'
'cats' => 'Διαχείριση κατηγοριών'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'Προέκυψε κάποιο σφάλμα κατά τη διαγραφή των κατηγοριών',
-3 => 'Τα IDs των κατηγοριών πρέπει να είναι οπωσδήποτε θετικά (το 0 δεν επιτρέπεται)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Στατιστική',
'entries' => 'Ενδείξεις',
'you_have' => 'Έχετε',
'entries_using' => 'καταχωρήσεις με',
'characters_in' => 'χαρακτήρες',
'words' => 'λέξεις',
'total_disk_space_is' => 'Ο συνολικός χώρος αποθήκευσης είναι',
'comments' => 'Σχόλια',
'comments_using' => 'σχόλια με',
'the' => 'Οι',
'most_commented_entries' => 'πιο σχολιασμένες αναρτήσεις'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/en-us/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Manage Entries',
'write' => 'Write Entry',
'cats' => 'Manage Categories',
'stats' => 'Stats'
'cats' => 'Manage Categories'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'An error occurred while trying to clear categories',
-3 => 'Category IDs must be strictly positive (0 is not allowed)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Stats',
'entries' => 'Entries',
'you_have' => 'You have',
'entries_using' => 'entries using',
'characters_in' => 'characters in',
'words' => 'words',
'total_disk_space_is' => 'Total disk space is',
'comments' => 'Comments',
'comments_using' => 'comments using',
'the' => 'The',
'most_commented_entries' => 'most commented entries'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/es-es/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Administrar entradas',
'write' => 'Escribir entrada',
'cats' => 'Administrar Categorías',
'stats' => 'Estadísticas'
'cats' => 'Administrar Categorías'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'Se produjo un error al intentar vaciar categorías',
-3 => 'Los ID de categoría deben ser estrictamente positivos (0 is not allowed)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Estadísticas',
'entries' => 'Entradas',
'you_have' => 'Tiene',
'entries_using' => 'entradas con',
'characters_in' => 'caracteres en',
'words' => 'palabras',
'total_disk_space_is' => 'El espacio de almacenamiento total es de',
'comments' => 'Comentarios',
'comments_using' => 'comentarios con',
'the' => 'Las',
'most_commented_entries' => 'entradas más comentadas'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/fr-fr/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'G&eacute;rer les billets',
'write' => '&Eacute;crire un billet',
'cats' => 'G&eacute;rer les cat&eacute;gories',
'stats' => 'Statistiques'
'cats' => 'G&eacute;rer les cat&eacute;gories'
);

/* action par défaut */
Expand Down Expand Up @@ -160,19 +159,4 @@
-2 => 'Une erreur est survenue pendant la suppression des cat&eacute;gories',
-3 => 'Le num&eacute;ro de cat&eacute;gorie doit &ecirc;tre positif (0 pas permis)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Statistiques',
'entries' => 'Entrées',
'you_have' => 'Tu as',
'entries_using' => 'entrées avec',
'characters_in' => 'caractères dans',
'words' => 'mots',
'total_disk_space_is' => 'L\'espace mémoire total est de',
'comments' => 'Commentaires',
'comments_using' => 'commentaires avec',
'the' => 'Les',
'most_commented_entries' => 'entrées les plus commentées'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/it-it/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Gestione Articoli',
'write' => 'Scrivi Articolo',
'cats' => 'Gestione Categorie',
'stats' => 'Statistiche'
'cats' => 'Gestione Categorie'
);

/* default action */
Expand Down Expand Up @@ -160,19 +159,4 @@
-2 => 'Si è verificato un errore durante l\'eliminazione delle categorie',
-3 => 'Gli ID delle categorie devono essere assolutamente positivi (lo 0 non è consentito)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Statistiche',
'entries' => 'Entrate',
'you_have' => 'Hai',
'entries_using' => 'voci con',
'characters_in' => 'caratteri in',
'words' => 'parole',
'total_disk_space_is' => 'Lo spazio di archiviazione totale è di',
'comments' => 'Commenti',
'comments_using' => 'commenti con',
'the' => 'Gli',
'most_commented_entries' => 'articoli più commentati'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/ja-jp/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => '記事の管理',
'write' => '記事の作成',
'cats' => '記事カテゴリの管理',
'stats' => '統計情報'
'cats' => '記事カテゴリの管理'
);

/* default action */
Expand Down Expand Up @@ -158,19 +157,4 @@
-2 => 'カテゴリデータの消去ができませんでした。',
-3 => 'Category IDs must be strictly positive (0 is not allowed)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => '統計情報',
'entries' => 'エントリー',
'you_have' => '',
'entries_using' => '件、',
'characters_in' => '文字、',
'words' => '語。',
'total_disk_space_is' => '総収納容量は',
'comments' => 'コメント',
'comments_using' => '',
'the' => 'コメント数が多かった',
'most_commented_entries' => '作品'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/nl-nl/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Vermeldingen beheren',
'write' => 'Schrijf vermelding',
'cats' => 'Categorie beheren',
'stats' => 'Statistieken'
'cats' => 'Categorie beheren'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'Er is een fout opgetreden tijdens het wissen van categorie',
-3 => 'Categorie ID moeten strikt positief zijn (0 is niet toegestaan)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Statistieken',
'entries' => 'Vermeldingen',
'you_have' => 'Je hebt',
'entries_using' => 'berichten met',
'characters_in' => 'tekens in',
'words' => 'woorden',
'total_disk_space_is' => 'De totale opslagruimte is',
'comments' => 'Reacties',
'comments_using' => 'reacties met',
'the' => 'De',
'most_commented_entries' => 'meest becommentarieerde inzendingen'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/pt-br/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Lista de posts',
'write' => 'Criar um post',
'cats' => 'Administrar as categorias',
'stats' => 'Estatísticas'
'cats' => 'Administrar as categorias'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'Ocorreu um erro ao tentar apagar as categorias.',
-3 => 'Os IDs da categoria devem ser apenas positivos. (0 não é permitido.)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Estatísticas',
'entries' => 'Entradas',
'you_have' => 'Você tem',
'entries_using' => 'entradas com',
'characters_in' => 'caracteres em',
'words' => 'palavras',
'total_disk_space_is' => 'O espaço total de armazenamento é de',
'comments' => 'Comentários',
'comments_using' => 'comentários com',
'the' => 'As',
'most_commented_entries' => 'entradas mais comentadas'
);
?>
18 changes: 1 addition & 17 deletions fp-interface/lang/ru-ru/lang.admin.entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
$lang ['admin'] ['entry'] ['submenu'] = array(
'list' => 'Управление записями',
'write' => 'Создать запись',
'cats' => 'Управление категориями',
'stats' => 'Статистика'
'cats' => 'Управление категориями'
);

/* default action */
Expand Down Expand Up @@ -159,19 +158,4 @@
-2 => 'При попытке очистить категории возникла ошибка',
-3 => 'Идентификаторы категорий должны быть строго положительными (0 не допускается)'
);

/* stats */
$lang ['admin'] ['entry'] ['stats'] = array(
'head' => 'Статистика',
'entries' => 'Записи',
'you_have' => 'Количество:',
'entries_using' => 'В них',
'characters_in' => 'символов в',
'words' => 'словах',
'total_disk_space_is' => 'Общее дисковое пространство составляет',
'comments' => 'Комментарии:',
'comments_using' => 'В них',
'the' => 'Самые комментируемые записи:',
'most_commented_entries' => ''
);
?>
Loading

0 comments on commit 05b6906

Please sign in to comment.