Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_comments
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27899/serendipity_plugin_comments
Modified Files:
serendipity_plugin_comments.php
Log Message:
Moved languages inside plugins
Index: serendipity_plugin_comments.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- serendipity_plugin_comments.php 3 Feb 2004 16:29:57 -0000 1.13
+++ serendipity_plugin_comments.php 9 Feb 2004 15:14:39 -0000 1.14
@@ -1,5 +1,30 @@
<?php # $Id$
+switch ($serendipity['lang']) {
+ case 'de':
+ @define('PLUGIN_COMMENTS_BLAHBLAH', 'Zeigt die letzten Kommentare');
+ @define('PLUGIN_COMMENTS_WORDWRAP', 'Zeilenumbruch');
+ @define('PLUGIN_COMMENTS_WORDWRAP_BLAHBLAH', 'Nach wievielen Wörtern soll ein Zeilenumbruch eingefügt werden? (Standard: 30)');
+ @define('PLUGIN_COMMENTS_MAXCHARS', 'Zeichen pro Kommentar');
+ @define('PLUGIN_COMMENTS_MAXCHARS_BLAHBLAH', 'Wieviele Zeichen sollen pro Kommentar gezeigt werden? (Standard: 120)');
+ @define('PLUGIN_COMMENTS_MAXENTRIES', 'Anzahl an Kommentaren');
+ @define('PLUGIN_COMMENTS_MAXENTRIES_BLAHBLAH', 'Wieviele Kommentare sollen gezeigt werden? (Standard: 15)');
+ break;
+
+ case 'en':
+ case 'es':
+ default:
+ @define('PLUGIN_COMMENTS_BLAHBLAH', 'Displays the last comments to your entries');
+ @define('PLUGIN_COMMENTS_WORDWRAP', 'Wordwrap');
+ @define('PLUGIN_COMMENTS_WORDWRAP_BLAHBLAH', 'How many words until a wordwrap will occur? (Default: 30)');
+ @define('PLUGIN_COMMENTS_MAXCHARS', 'Maximum chars per comment');
+ @define('PLUGIN_COMMENTS_MAXCHARS_BLAHBLAH', 'How many chars will be displayed for each comment? (Default: 120)');
+ @define('PLUGIN_COMMENTS_MAXENTRIES', 'Maximum number of comments');
+ @define('PLUGIN_COMMENTS_MAXENTRIES_BLAHBLAH', 'How many comments will be shown? (Default: 15)');
+
+ break;
+}
+
class serendipity_plugin_comments extends serendipity_plugin
{
function introspect(&$propbag)
@@ -7,7 +32,7 @@
global $serendipity;
$propbag->add('name', COMMENTS);
- $propbag->add('description', COMMENTS_PLUGIN_BLAHBLAH);
+ $propbag->add('description', PLUGIN_COMMENTS_BLAHBLAH);
$propbag->add('configuration', array(
'wordwrap',
@@ -22,20 +47,20 @@
switch($name) {
case 'wordwrap':
$propbag->add('type', 'string');
- $propbag->add('name', COMMENTS_PLUGIN_WORDWRAP);
- $propbag->add('description', COMMENTS_PLUGIN_WORDWRAP_BLAHBLAH);
+ $propbag->add('name', PLUGIN_COMMENTS_WORDWRAP);
+ $propbag->add('description', PLUGIN_COMMENTS_WORDWRAP_BLAHBLAH);
break;
case 'max_chars':
$propbag->add('type', 'string');
- $propbag->add('name', COMMENTS_PLUGIN_MAXCHARS);
- $propbag->add('description', COMMENTS_PLUGIN_MAXCHARS_BLAHBLAH);
+ $propbag->add('name', PLUGIN_COMMENTS_MAXCHARS);
+ $propbag->add('description', PLUGIN_COMMENTS_MAXCHARS_BLAHBLAH);
break;
case 'max_entries':
$propbag->add('type', 'string');
- $propbag->add('name', COMMENTS_PLUGIN_MAXENTRIES);
- $propbag->add('description', COMMENTS_PLUGIN_MAXENTRIES_BLAHBLAH);
+ $propbag->add('name', PLUGIN_COMMENTS_MAXENTRIES);
+ $propbag->add('description', PLUGIN_COMMENTS_MAXENTRIES_BLAHBLAH);
break;
case 'language':
|