Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_recententries
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27899/serendipity_plugin_recententries
Modified Files:
serendipity_plugin_recententries.php
Log Message:
Moved languages inside plugins
Index: serendipity_plugin_recententries.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- serendipity_plugin_recententries.php 20 Jan 2004 09:11:52 -0000 1.1
+++ serendipity_plugin_recententries.php 9 Feb 2004 15:14:39 -0000 1.2
@@ -2,11 +2,30 @@
// Contributed by Christian Machmeier <cm...@re...>
+switch ($serendipity['lang']) {
+ case 'de':
+ @define('PLUGIN_RECENTENTRIES_TITLE', 'Aktuelle Einträge');
+ @define('PLUGIN_RECENTENTRIES_BLAHBLAH', 'Zeigt die Titel der aktuellsten Einträge mit Datum');
+ @define('PLUGIN_RECENTENTRIES_NUMBER', 'Anzahl der Einträge');
+ @define('PLUGIN_RECENTENTRIES_NUMBER_BLAHBLAH', 'Wieviele Einträge sollen angezeigt werden? (Standard: 10)');
+ break;
+
+ case 'en':
+ case 'es':
+ default:
+ @define('PLUGIN_RECENTENTRIES_TITLE', 'Recent Entries');
+ @define('PLUGIN_RECENTENTRIES_BLAHBLAH', 'Shows the titles and dates of the most recent entries');
+ @define('PLUGIN_RECENTENTRIES_NUMBER', 'Number of entries');
+ @define('PLUGIN_RECENTENTRIES_NUMBER_BLAHBLAH', 'How many entries should be displayed? (Default: 10)');
+
+ break;
+}
+
class serendipity_plugin_recententries extends serendipity_plugin {
function introspect(&$propbag) {
- $propbag->add('name', RECENTENTRIES_PLUGIN_TITLE);
- $propbag->add('description', RECENTENTRIES_PLUGIN_BLAHBLAH);
+ $propbag->add('name', PLUGIN_RECENTENTRIES_TITLE);
+ $propbag->add('description', PLUGIN_RECENTENTRIES_BLAHBLAH);
$propbag->add('configuration', array('number', 'language', 'dateformat'));
}
@@ -14,8 +33,8 @@
switch($name) {
case 'number':
$propbag->add('type', 'string');
- $propbag->add('name', RECENTENTRIES_PLUGIN_NUMBER);
- $propbag->add('description', RECENTENTRIES_PLUGIN_NUMBER_BLAHBLAH);
+ $propbag->add('name', PLUGIN_RECENTENTRIES_NUMBER);
+ $propbag->add('description', PLUGIN_RECENTENTRIES_NUMBER_BLAHBLAH);
break;
case 'language':
@@ -67,7 +86,7 @@
break;
}
- $title = RECENTENTRIES_PLUGIN_TITLE;
+ $title = PLUGIN_RECENTENTRIES_TITLE;
$entries = serendipity_db_query("SELECT id,
title,
|