Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_shoutbox
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9563/serendipity_plugin_shoutbox
Modified Files:
serendipity_plugin_shoutbox.php
Log Message:
Removed plugins setting the locale. This is done in
serendipity_config.inc.php depending on the included language and the
'recommended way'. :-)
Index: serendipity_plugin_shoutbox.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- serendipity_plugin_shoutbox.php 21 Mar 2004 09:59:47 -0000 1.4
+++ serendipity_plugin_shoutbox.php 27 Mar 2004 12:10:41 -0000 1.5
@@ -29,7 +29,6 @@
@define('PLUGIN_SHOUTBOX_MAXCHARS_BLAHBLAH', 'How many chars will be displayed for each comment? (Default: 120)');
@define('PLUGIN_SHOUTBOX_MAXENTRIES', 'Maximum number of comments');
@define('PLUGIN_SHOUTBOX_MAXENTRIES_BLAHBLAH', 'How many comments will be shown? (Default: 15)');
-
break;
}
@@ -46,7 +45,6 @@
'wordwrap',
'max_chars',
'max_entries',
- 'language',
'dateformat'));
}
@@ -71,12 +69,6 @@
$propbag->add('description', PLUGIN_SHOUTBOX_MAXENTRIES_BLAHBLAH);
break;
- case 'language':
- $propbag->add('type', 'string');
- $propbag->add('name', GENERAL_PLUGIN_LANGUAGE);
- $propbag->add('description', GENERAL_PLUGIN_LANGUAGE_BLAHBLAH);
- break;
-
case 'dateformat':
$propbag->add('type', 'string');
$propbag->add('name', GENERAL_PLUGIN_DATEFORMAT);
@@ -94,7 +86,6 @@
global $serendipity;
$title = PLUGIN_SHOUTBOX_NAME;
- $lang = strtolower($this->get_config('language'));
$max_entries = $this->get_config('max_entries');
$max_chars = $this->get_config('max_chars');
$wordwrap = $this->get_config('wordwrap');
@@ -157,24 +148,6 @@
if (!$dateformat || strlen($dateformat) < 1) {
$dateformat = '%a, %d.%m.%Y %H:%M';
}
-
- if ($lang != 'de' && $lang != 'en') {
- $lang = 'en';
- }
-
- switch($lang) {
- case 'de':
- $loc = setlocale(LC_ALL, 'de_DE');
- if (!$loc) $loc = setlocale(LC_ALL, 'de');
- $out = '%s zu%s';
- break;
-
- case 'en':
- $loc = setlocale(LC_ALL, 'en_US');
- if (!$loc) $loc = setlocale(LC_ALL, 'en');
- $out = '%s about%s';
- break;
- }
?>
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div>
|