]> git.mjollnir.org Git - s9y.git/commitdiff
UTF-8 for everybody. If they like. ;)
authorgarvinhicking <garvinhicking>
Mon, 1 Aug 2005 17:35:25 +0000 (17:35 +0000)
committergarvinhicking <garvinhicking>
Mon, 1 Aug 2005 17:35:25 +0000 (17:35 +0000)
31 files changed:
plugins/serendipity_event_bbcode/serendipity_event_bbcode.php
plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php
plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php
plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php
plugins/serendipity_event_emoticate/serendipity_event_emoticate.php
plugins/serendipity_event_htmlvalidator/serendipity_event_htmlvalidator.php
plugins/serendipity_event_karma/serendipity_event_karma.php
plugins/serendipity_event_livesearch/serendipity_event_livesearch.php
plugins/serendipity_event_mailer/serendipity_event_mailer.php
plugins/serendipity_event_nl2br/serendipity_event_nl2br.php
plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php
plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php
plugins/serendipity_event_spamblock/serendipity_event_spamblock.php
plugins/serendipity_event_spartacus/serendipity_event_spartacus.php
plugins/serendipity_event_statistics/lang_cz.inc.php [moved from plugins/serendipity_event_statistics/lang_cz.php with 100% similarity]
plugins/serendipity_event_statistics/serendipity_event_statistics.php
plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php
plugins/serendipity_event_textile/serendipity_event_textile.php
plugins/serendipity_event_textwiki/serendipity_event_textwiki.php
plugins/serendipity_event_trackexits/serendipity_event_trackexits.php
plugins/serendipity_event_weblogping/serendipity_event_weblogping.php
plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php
plugins/serendipity_plugin_comments/serendipity_plugin_comments.php
plugins/serendipity_plugin_creativecommons/serendipity_plugin_creativecommons.php
plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php
plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php
plugins/serendipity_plugin_history/serendipity_plugin_history.php
plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php
plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php
plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php
plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php

index 8143afa7c3a2c8078500886d2efb0dcdcc201298..af245c961b3eba8788b2450e13d7a2bc17df16e6 100644 (file)
@@ -1,25 +1,14 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_BBCODE_NAME',     'Textformatierung: BBCode');
-        @define('PLUGIN_EVENT_BBCODE_DESC',     'BBCode-Formatierung durchführen');
-        @define('PLUGIN_EVENT_BBCODE_TRANSFORM', '<a href="http://www.phpbb.com/phpBB/faq.php?mode=bbcode">BBCode</a>-Formatierung erlaubt');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_BBCODE_NAME',     'Markup: BBCode');
-        @define('PLUGIN_EVENT_BBCODE_DESC',     'Markup text using BBCode');
-        @define('PLUGIN_EVENT_BBCODE_TRANSFORM', '<a href="http://www.phpbb.com/phpBB/faq.php?mode=bbcode">BBCode</a> format allowed');
-        break;
-}
+@define('PLUGIN_EVENT_BBCODE_NAME',     'Markup: BBCode');
+@define('PLUGIN_EVENT_BBCODE_DESC',     'Markup text using BBCode');
+@define('PLUGIN_EVENT_BBCODE_TRANSFORM', '<a href="http://www.phpbb.com/phpBB/faq.php?mode=bbcode">BBCode</a> format allowed');
 
 class serendipity_event_bbcode extends serendipity_event
 {
index 188030b1091883caf399ca5c06752ad051e039dc..3ab3ee8a72a7b0b34e4c59e4d35b48f510c59fb7 100644 (file)
@@ -1,24 +1,13 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser-Kompatibilität');
-        @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Wendet verschiedene (CSS) Methoden an, um maximale Browserkompatibilität zu erreichen');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser Compatibility');
-        @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Uses different (CSS) methods to enforce maximum browser compatibility');
-        break;
-}
+@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser Compatibility');
+@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Uses different (CSS) methods to enforce maximum browser compatibility');
 
 class serendipity_event_browsercompatibility extends serendipity_event
 {
index bf3faea6b80631f5dd8b06469c260b8bc757bb2d..307aff4dd96c4b6517351b5f99cce811ea56cf27 100644 (file)
@@ -1,56 +1,29 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_CONTENTREWRITE_FROM', 'quelle');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_TO', 'ziel');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NAME', 'Wort-Ersetzer');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION', 'Ersetzt ein Wort mit einem neuen Inhalt, z.B. für Akronyme');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWTITLE', 'Neuer Titel');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWTDESCRIPTION', 'Der Akronym-Titel des neuen Eintrages ({quelle})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDTITLE', 'Titel #%d');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDTDESCRIPTION', 'Das Akronym ({quelle})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_PTITLE', 'Plugin Titel');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_PDESCRIPTION', 'Der Name dieses Pligins');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWDESCRIPTION', 'Neue Beschreibung');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWDDESCRIPTION', 'Die Beschreibung des neuen Eintrages ({ziel})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDDESCRIPTION', 'Beschreibung #%s');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDDDESCRIPTION', 'Die Beschreibung des Eintrages ({ziel})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRING', 'Umformungsmaske');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRINGDESC', 'Ein beliebiger Text der zur Ersetzung verwendet werden soll. Fügen Sie {quelle} und {ziel} irgendwo in diesem Text ein.' . "\n" . 'Beispiel: <acronym title="{quelle}">{ziel}</acronym>');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITECHAR', 'Rewrite Zeichen');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITECHARDESC', 'Falls es ein besonderes Zeichen geben soll, was die Wort-Ersetzung ausführt, geben Sie es hier an. Falls z.B. nur \'serendipity*\' damit ersetzt werden soll, was Sie als Akronym für \'serendipity\' definiert haben, und das \'*\' soll entfernt werden, dann geben Sie dieses Zeichen an.');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_CONTENTREWRITE_FROM', 'from');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_TO', 'to');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NAME', 'Content Rewriter');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION', 'Replaces words with a new selected string (useful for acronyms)');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWTITLE', 'New Title');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWTDESCRIPTION', 'Enter the acronym-title for a new item here ({from})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDTITLE', 'Title #%d');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDTDESCRIPTION', 'Enter the acronym here ({from})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_PTITLE', 'Plugin-Title');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_PDESCRIPTION', 'The name of this plugin');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWDESCRIPTION', 'New Description');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_NEWDDESCRIPTION', 'Enter the description for a new item here ({to})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDDESCRIPTION', 'Description #%s');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_OLDDDESCRIPTION', 'Enter the description here ({to})');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRING', 'Rewrite string');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRINGDESC', 'The string used to rewrite. Place {from} and {to} anywhere you like to get a rewrite.' . "\n" . 'Example: <acronym title="{to}">{from}</acronym>');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITECHAR', 'Rewrite char');
-        @define('PLUGIN_EVENT_CONTENTREWRITE_REWRITECHARDESC', 'If there is any char you append to force rewriting, enter it here. If you want to only replace \'serendipity*\' with what you entered for that word but want the \'*\' removed, enter that char here.');
-        break;
-}
+@define('PLUGIN_EVENT_CONTENTREWRITE_FROM', 'from');
+@define('PLUGIN_EVENT_CONTENTREWRITE_TO', 'to');
+@define('PLUGIN_EVENT_CONTENTREWRITE_NAME', 'Content Rewriter');
+@define('PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION', 'Replaces words with a new selected string (useful for acronyms)');
+@define('PLUGIN_EVENT_CONTENTREWRITE_NEWTITLE', 'New Title');
+@define('PLUGIN_EVENT_CONTENTREWRITE_NEWTDESCRIPTION', 'Enter the acronym-title for a new item here ({from})');
+@define('PLUGIN_EVENT_CONTENTREWRITE_OLDTITLE', 'Title #%d');
+@define('PLUGIN_EVENT_CONTENTREWRITE_OLDTDESCRIPTION', 'Enter the acronym here ({from})');
+@define('PLUGIN_EVENT_CONTENTREWRITE_PTITLE', 'Plugin-Title');
+@define('PLUGIN_EVENT_CONTENTREWRITE_PDESCRIPTION', 'The name of this plugin');
+@define('PLUGIN_EVENT_CONTENTREWRITE_NEWDESCRIPTION', 'New Description');
+@define('PLUGIN_EVENT_CONTENTREWRITE_NEWDDESCRIPTION', 'Enter the description for a new item here ({to})');
+@define('PLUGIN_EVENT_CONTENTREWRITE_OLDDESCRIPTION', 'Description #%s');
+@define('PLUGIN_EVENT_CONTENTREWRITE_OLDDDESCRIPTION', 'Enter the description here ({to})');
+@define('PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRING', 'Rewrite string');
+@define('PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRINGDESC', 'The string used to rewrite. Place {from} and {to} anywhere you like to get a rewrite.' . "\n" . 'Example: <acronym title="{to}">{from}</acronym>');
+@define('PLUGIN_EVENT_CONTENTREWRITE_REWRITECHAR', 'Rewrite char');
+@define('PLUGIN_EVENT_CONTENTREWRITE_REWRITECHARDESC', 'If there is any char you append to force rewriting, enter it here. If you want to only replace \'serendipity*\' with what you entered for that word but want the \'*\' removed, enter that char here.');
 
 class serendipity_event_contentrewrite extends serendipity_event
 {
index 64ad85baa137ef05d18edb5e7b3454c4fbe6ef10..7d88331c3e18bdbd1d883d47a11f9dfb6a7bdc5e 100644 (file)
@@ -1,45 +1,24 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_CREATIVECOMMONS_NAME',        'Creative Commons Lizenz');
-        @define('PLUGIN_CREATIVECOMMONS_DESC',        'Wählen Sie eine Lizenz für den Inhalt');
-        @define('PLUGIN_CREATIVECOMMONS_TXT',         'Text anzeigen?');
-        @define('PLUGIN_CREATIVECOMMONS_TXT_DESC',    'Zeigt eine kurze Erklärung zu Ihrer individuellen Lizensierung an');
-        @define('PLUGIN_CREATIVECOMMONS_CAP',         'Der Inhalt dieses Werkes ist lizensiert unter der <a href="#license_uri#">Creative Commons Lizenz</a>');
-        @define('PLUGIN_CREATIVECOMMONS_CAP_PD',      'Der Inhalt dieses Werkes ist als <a href="#license_url#}">Public Domain</a> gewidmet');
-        // @define('PLUGIN_CREATIVECOMMONS_BY',          'Attribution (Nennung als Author) erforderlich?');
-        // @define('PLUGIN_CREATIVECOMMONS_BY_DESC',     'Der Lizenzgeber erlaubt anderen dieses Werk zu kopieren, zu verteilen, anzuwenden und darzustellen. Als Gegenleistung müssen Lizenznehmer den ursprünglichen Authoren nennen.');
-        @define('PLUGIN_CREATIVECOMMONS_NC',          'Kommerzielle Nutzung des Werkes erlauben?');
-        @define('PLUGIN_CREATIVECOMMONS_NC_DESC',     'Der Lizenzgeber erlaubt anderen dieses Werk zu kopieren, zu verteilen, anzuwenden und darzustellen. Als Gegenleistung dürfen die Lizenznehmer das Werk nicht in kommerziellem Kontext einsetzen - es sei denn, sie erhalten die ausdrückliche Genehmigung.');
-        @define('PLUGIN_CREATIVECOMMONS_ND',          'Veränderungen des Werkes erlauben?');
-        @define('PLUGIN_CREATIVECOMMONS_ND_DESC',     'Der Lizenzgeber erlaubt anderen dieses Werk in unveränderter Form zu kopieren, zu verteilen, anzuwenden und darzustellen. Daran anlehnende oder ableitende Werke sind nicht erlaubt.');
-        @define('PLUGIN_CREATIVECOMMONS_SA_DESC',     'Ja, solange dieses Recht weitergegeben wird');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_CREATIVECOMMONS_NAME',        'Creative Commons License');
-        @define('PLUGIN_CREATIVECOMMONS_DESC',        'Choose and display a creative commons license for your content');
-        @define('PLUGIN_CREATIVECOMMONS_TXT',         'Show text?');
-        @define('PLUGIN_CREATIVECOMMONS_TXT_DESC',    'For visible notifications of license status, show a brief explanation of your license choice.');
-        @define('PLUGIN_CREATIVECOMMONS_CAP',         'Original content in this work is licensed under a <a href="#license_uri#">Creative Commons License</a>');
-        @define('PLUGIN_CREATIVECOMMONS_CAP_PD',      'Original content in this work is dedicated to the <a href="#license_url#}">Public Domain</a>');
-        // @define('PLUGIN_CREATIVECOMMONS_BY',          'Require attribution?');
-        // @define('PLUGIN_CREATIVECOMMONS_BY_DESC',     'The licensor permits others to copy, distribute, display, and perform the work. In return, licensees must give the original author credit.');
-        @define('PLUGIN_CREATIVECOMMONS_NC',          'Allow commercial uses of your work?');
-        @define('PLUGIN_CREATIVECOMMONS_NC_DESC',     'The licensor permits others to copy, distribute, display, and perform the work. In return, licensees may not use the work for commercial purposes -- unless they get the licensor\'s permission.');
-        @define('PLUGIN_CREATIVECOMMONS_ND',          'Allow modifications of your work?');
-        @define('PLUGIN_CREATIVECOMMONS_ND_DESC',     'The licensor permits others to copy, distribute, display and perform only unaltered copies of the work -- not derivative works based on it.');
-        @define('PLUGIN_CREATIVECOMMONS_SA_DESC',     'Yes, as long as others share alike');
-        break;
-}
+@define('PLUGIN_CREATIVECOMMONS_NAME',        'Creative Commons License');
+@define('PLUGIN_CREATIVECOMMONS_DESC',        'Choose and display a creative commons license for your content');
+@define('PLUGIN_CREATIVECOMMONS_TXT',         'Show text?');
+@define('PLUGIN_CREATIVECOMMONS_TXT_DESC',    'For visible notifications of license status, show a brief explanation of your license choice.');
+@define('PLUGIN_CREATIVECOMMONS_CAP',         'Original content in this work is licensed under a <a href="#license_uri#">Creative Commons License</a>');
+@define('PLUGIN_CREATIVECOMMONS_CAP_PD',      'Original content in this work is dedicated to the <a href="#license_url#}">Public Domain</a>');
+// @define('PLUGIN_CREATIVECOMMONS_BY',          'Require attribution?');
+// @define('PLUGIN_CREATIVECOMMONS_BY_DESC',     'The licensor permits others to copy, distribute, display, and perform the work. In return, licensees must give the original author credit.');
+@define('PLUGIN_CREATIVECOMMONS_NC',          'Allow commercial uses of your work?');
+@define('PLUGIN_CREATIVECOMMONS_NC_DESC',     'The licensor permits others to copy, distribute, display, and perform the work. In return, licensees may not use the work for commercial purposes -- unless they get the licensor\'s permission.');
+@define('PLUGIN_CREATIVECOMMONS_ND',          'Allow modifications of your work?');
+@define('PLUGIN_CREATIVECOMMONS_ND_DESC',     'The licensor permits others to copy, distribute, display and perform only unaltered copies of the work -- not derivative works based on it.');
+@define('PLUGIN_CREATIVECOMMONS_SA_DESC',     'Yes, as long as others share alike');
 
 class serendipity_event_creativecommons extends serendipity_event {
     var $title = PLUGIN_CREATIVECOMMONS_NAME;
index 63d660608a9d53dd28b4600e7d71af101975c3ac..80d50fcd7bb3e1be5abdb92138f49d3066317c55 100644 (file)
@@ -1,25 +1,14 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_EMOTICATE_NAME', 'Textformatierung: Smilies');
-        @define('PLUGIN_EVENT_EMOTICATE_DESC', 'Standard Text-Smilies in Grafiken konvertieren');
-        @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard-Text Smilies wie :-) und ;-) werden zu Bildern konvertiert.');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_EMOTICATE_NAME', 'Markup: Emoticate');
-        @define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convert standard emoticons into graphic images');
-        @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard emoticons like :-) and ;-) are converted to images.');
-        break;
-}
+@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Markup: Emoticate');
+@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convert standard emoticons into graphic images');
+@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard emoticons like :-) and ;-) are converted to images.');
 
 class serendipity_event_emoticate extends serendipity_event
 {
index 361799fc08d4434d27f6349361bd18ca681a592d..26dbc019ff2a0e2df44f9d8753bf109968b1c159 100644 (file)
@@ -1,36 +1,19 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_NAME', 'HTML Validator');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_DESC', 'Überprüft, ob ein Artikel XML-konform ist');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_CHARSET', 'Zeichensatz');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_CHARSETDESC', 'Der übliche Zeichensatz Ihrer Einträge');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_DOCTYPE', 'Dokumenttyp');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_DOCTYPEDESC', 'Der übliche Dokumenttyp Ihrer Einträge');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_VALIDATE', 'Bei jeder Vorschau aktiviert');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_GOVALIDATE', 'HTML-Validator bei der Vorschau ausführen');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_NAME', 'HTML Validator');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_DESC', 'Validates entries on their XML-conformity');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_CHARSET', 'Charset');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_CHARSETDESC', 'The usual charset of your articles');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_DOCTYPE', 'Doctype');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_DOCTYPEDESC', 'The usual document type of your articles');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_VALIDATE', 'Validate on each preview');
-        @define('PLUGIN_EVENT_HTMLVALIDATOR_GOVALIDATE', 'Show HTML-Validator on preview');
-        break;
-}
+@define('PLUGIN_EVENT_HTMLVALIDATOR_NAME', 'HTML Validator');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_DESC', 'Validates entries on their XML-conformity');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_CHARSET', 'Charset');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_CHARSETDESC', 'The usual charset of your articles');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_DOCTYPE', 'Doctype');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_DOCTYPEDESC', 'The usual document type of your articles');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_VALIDATE', 'Validate on each preview');
+@define('PLUGIN_EVENT_HTMLVALIDATOR_GOVALIDATE', 'Show HTML-Validator on preview');
 
 class serendipity_event_htmlvalidator extends serendipity_event
 {
index a5351989370192df9d30e2d8d4f9dfe40635f552..53dcf54ee2340b874fc3d40e23d3bb1a8dca4e3f 100644 (file)
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_KARMA_VERSION', '1.3');
-        @define('PLUGIN_KARMA_NAME', 'Karma');
-        @define('PLUGIN_KARMA_BLAHBLAH', 'Abstimmung über die Einträge');
-        @define('PLUGIN_KARMA_VOTETEXT', 'Karma dieses Eintrags: ');
-        @define('PLUGIN_KARMA_RATE', 'Eintrag bewerten: %s');
-        @define('PLUGIN_KARMA_VOTEPOINT_1', 'Sehr gut!');
-        @define('PLUGIN_KARMA_VOTEPOINT_2', 'Gut');
-        @define('PLUGIN_KARMA_VOTEPOINT_3', 'Neutral');
-        @define('PLUGIN_KARMA_VOTEPOINT_4', 'Uninteressant');
-        @define('PLUGIN_KARMA_VOTEPOINT_5', 'Übel');
-        @define('PLUGIN_KARMA_VOTED', 'Punktzahl "%s" gespeichert.');
-        @define('PLUGIN_KARMA_INVALID', 'Bewertung ungültig oder manipuliert!');
-        @define('PLUGIN_KARMA_ALREADYVOTED', 'Bewertung bereits gespeichert.');
-        @define('PLUGIN_KARMA_NOCOOKIE', 'Der Browser muss Cookies unterstützen um eine Abstimmung zu ermöglichen.');
-        @define('PLUGIN_KARMA_CLOSED', 'Stimm ab für Artikel, die jünger als %s Tage sind!');
-        @define('PLUGIN_KARMA_ENTRYTIME', 'Abstimmungszeitraum nach Veröffentlichung eines Artikels');
-        @define('PLUGIN_KARMA_VOTINGTIME', 'Abstimmungszeitraum');
-        @define('PLUGIN_KARMA_ENTRYTIME_BLAHBLAH', 'Wie lang (in Minuten) kann nach der Veröffentlichung eines Artikels ein uneingeschränkter Abstimmungszeitraum durchgeführt werden? Standard sind 1440 Minuten (ein Tag).');
-        @define('PLUGIN_KARMA_VOTINGTIME_BLAHBLAH', 'Wartezeit (in Minuten), die nach einer Stimmabgabe vergehen muss bevor eine nächste Stimme angenommen wird. Diese Einschränkung gilt erst nach Überschreitung des obigen uneingeschränkten Abstimmungszeitraumes. Standard: 5 Minuten.');
-        @define('PLUGIN_KARMA_TIMEOUT', 'Wahlschutz: Ein anderer Besucher hat gerade abgestimmt. Bitte %s Minuten warten.');
-        @define('PLUGIN_KARMA_CURRENT', 'Derzeitiges Karma: %2$s, %3$s Stimme(n)');
-        @define('PLUGIN_KARMA_EXTENDEDONLY', 'Nur erweiterte Artikel');
-        @define('PLUGIN_KARMA_EXTENDEDONLY_BLAHBLAH', 'Karmavoting nur im erweiterten Artikel einblenden');
-        @define('PLUGIN_KARMA_MAXKARMA', 'Maximaler Abstimmungszeitraum');
-        @define('PLUGIN_KARMA_MAXKARMA_BLAHBLAH', 'Abstimmungen nur erlauben bis der Artikel X Tage alt ist (Standard: 7)');
-        @define('PLUGIN_KARMA_LOGGING', 'Protokollieren');
-        @define('PLUGIN_KARMA_LOGGING_BLAHBLAH', 'Sollen Logfiles der Votes angelegt werden?');
-        @define('PLUGIN_KARMA_ACTIVE', 'Karmavoting aktivieren?');
-        @define('PLUGIN_KARMA_ACTIVE_BLAHBLAH', 'Soll das Karmavoting verfügbar sein?');
-        @define('PLUGIN_KARMA_VISITS', 'Aufrufstatisik aktivieren?');
-        @define('PLUGIN_KARMA_VISITS_BLAHBLAH', 'Soll jeder Klick auf einen Artikel gezählt und dargestellt werden?');
-        @define('PLUGIN_KARMA_VISITSCOUNT', ' %4$s Klicks');
-        @define('PLUGIN_KARMA_STATISTICS_VISITS_TOP', 'Meistbesuchte Artikel');
-        @define('PLUGIN_KARMA_STATISTICS_VISITS_BOTTOM', 'Wenigstbesuchte Artikel');
-        @define('PLUGIN_KARMA_STATISTICS_VOTES_TOP', 'Meistbewertete Artikel');
-        @define('PLUGIN_KARMA_STATISTICS_VOTES_BOTTOM', 'Wenigstbewertete Artikel');
-        @define('PLUGIN_KARMA_STATISTICS_POINTS_TOP', 'Bestbewertete Artikel');
-        @define('PLUGIN_KARMA_STATISTICS_POINTS_BOTTOM', 'Schlechtstbewerte Artikel');
-        @define('PLUGIN_KARMA_STATISTICS_VISITS_NO', 'Besuche');
-        @define('PLUGIN_KARMA_STATISTICS_VOTES_NO', 'Stimmen');
-        @define('PLUGIN_KARMA_STATISTICS_POINTS_NO', 'Punkte');
-
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_KARMA_VERSION', '1.3');
-        @define('PLUGIN_KARMA_NAME', 'Karma');
-        @define('PLUGIN_KARMA_BLAHBLAH', 'Let visitors rate the quality of your entries');
-        @define('PLUGIN_KARMA_VOTETEXT', 'Karma for this article: ');
-        @define('PLUGIN_KARMA_RATE', 'Rate this article: %s');
-        @define('PLUGIN_KARMA_VOTEPOINT_1', 'Very good!');
-        @define('PLUGIN_KARMA_VOTEPOINT_2', 'Good');
-        @define('PLUGIN_KARMA_VOTEPOINT_3', 'Neutral');
-        @define('PLUGIN_KARMA_VOTEPOINT_4', 'Not interesting');
-        @define('PLUGIN_KARMA_VOTEPOINT_5', 'Bad');
-        @define('PLUGIN_KARMA_VOTED', 'Your rating "%s" was stored.');
-        @define('PLUGIN_KARMA_INVALID', 'Your voting was invalid.');
-        @define('PLUGIN_KARMA_ALREADYVOTED', 'Your rating was already stored.');
-        @define('PLUGIN_KARMA_NOCOOKIE', 'Your browser must support cookies to be able to vote.');
-        @define('PLUGIN_KARMA_CLOSED', 'Vote for articles fresher than %s days!');
-        @define('PLUGIN_KARMA_ENTRYTIME', 'Voting time after publishing');
-        @define('PLUGIN_KARMA_VOTINGTIME', 'Voting time');
-        @define('PLUGIN_KARMA_ENTRYTIME_BLAHBLAH', 'How long (in minutes) after your article has been published an unrestricted voting is allowed? Default: 1440 (one day)');
-        @define('PLUGIN_KARMA_VOTINGTIME_BLAHBLAH', 'Amount of time (in minutes) that needs to be passed from one vote to the other. Is only applied after the time above is expired. Default: 5');
-        @define('PLUGIN_KARMA_TIMEOUT', 'Flood protection: Another visitor has just recently voted. Please wait %s minutes.');
-        @define('PLUGIN_KARMA_CURRENT', 'Current karma: %2$s, %3$s vote(s)');
-        @define('PLUGIN_KARMA_EXTENDEDONLY', 'Only extended article');
-        @define('PLUGIN_KARMA_EXTENDEDONLY_BLAHBLAH', 'Only show karmavoting on extended article view');
-        @define('PLUGIN_KARMA_MAXKARMA', 'Karmavoting period');
-        @define('PLUGIN_KARMA_MAXKARMA_BLAHBLAH', 'Only allow karmavoting until the article is X days old (Default: 7)');
-        @define('PLUGIN_KARMA_LOGGING', 'Log votes?');
-        @define('PLUGIN_KARMA_LOGGING_BLAHBLAH', 'Should karma votes be logged?');
-        @define('PLUGIN_KARMA_ACTIVE', 'Enable karma voting?');
-        @define('PLUGIN_KARMA_ACTIVE_BLAHBLAH', 'Is karma voting turned on?');
-        @define('PLUGIN_KARMA_VISITS', 'Enable visit tracking?');
-        @define('PLUGIN_KARMA_VISITS_BLAHBLAH', 'Should every click to an extended article be counted and displayed?');
-        @define('PLUGIN_KARMA_VISITSCOUNT', ' %4$s hits');
-        @define('PLUGIN_KARMA_STATISTICS_VISITS_TOP', 'Top visited articles');
-        @define('PLUGIN_KARMA_STATISTICS_VISITS_BOTTOM', 'Worst visited articles');
-        @define('PLUGIN_KARMA_STATISTICS_VOTES_TOP', 'Top karma-voted articles');
-        @define('PLUGIN_KARMA_STATISTICS_VOTES_BOTTOM', 'Least karma-voted articles');
-        @define('PLUGIN_KARMA_STATISTICS_POINTS_TOP', 'Best karma-voted articles');
-        @define('PLUGIN_KARMA_STATISTICS_POINTS_BOTTOM', 'Worst karma-voted articles');
-        @define('PLUGIN_KARMA_STATISTICS_VISITS_NO', 'visits');
-        @define('PLUGIN_KARMA_STATISTICS_VOTES_NO', 'votes');
-        @define('PLUGIN_KARMA_STATISTICS_POINTS_NO', 'points');
-
-        break;
-}
+@define('PLUGIN_KARMA_VERSION', '1.3');
+@define('PLUGIN_KARMA_NAME', 'Karma');
+@define('PLUGIN_KARMA_BLAHBLAH', 'Let visitors rate the quality of your entries');
+@define('PLUGIN_KARMA_VOTETEXT', 'Karma for this article: ');
+@define('PLUGIN_KARMA_RATE', 'Rate this article: %s');
+@define('PLUGIN_KARMA_VOTEPOINT_1', 'Very good!');
+@define('PLUGIN_KARMA_VOTEPOINT_2', 'Good');
+@define('PLUGIN_KARMA_VOTEPOINT_3', 'Neutral');
+@define('PLUGIN_KARMA_VOTEPOINT_4', 'Not interesting');
+@define('PLUGIN_KARMA_VOTEPOINT_5', 'Bad');
+@define('PLUGIN_KARMA_VOTED', 'Your rating "%s" was stored.');
+@define('PLUGIN_KARMA_INVALID', 'Your voting was invalid.');
+@define('PLUGIN_KARMA_ALREADYVOTED', 'Your rating was already stored.');
+@define('PLUGIN_KARMA_NOCOOKIE', 'Your browser must support cookies to be able to vote.');
+@define('PLUGIN_KARMA_CLOSED', 'Vote for articles fresher than %s days!');
+@define('PLUGIN_KARMA_ENTRYTIME', 'Voting time after publishing');
+@define('PLUGIN_KARMA_VOTINGTIME', 'Voting time');
+@define('PLUGIN_KARMA_ENTRYTIME_BLAHBLAH', 'How long (in minutes) after your article has been published an unrestricted voting is allowed? Default: 1440 (one day)');
+@define('PLUGIN_KARMA_VOTINGTIME_BLAHBLAH', 'Amount of time (in minutes) that needs to be passed from one vote to the other. Is only applied after the time above is expired. Default: 5');
+@define('PLUGIN_KARMA_TIMEOUT', 'Flood protection: Another visitor has just recently voted. Please wait %s minutes.');
+@define('PLUGIN_KARMA_CURRENT', 'Current karma: %2$s, %3$s vote(s)');
+@define('PLUGIN_KARMA_EXTENDEDONLY', 'Only extended article');
+@define('PLUGIN_KARMA_EXTENDEDONLY_BLAHBLAH', 'Only show karmavoting on extended article view');
+@define('PLUGIN_KARMA_MAXKARMA', 'Karmavoting period');
+@define('PLUGIN_KARMA_MAXKARMA_BLAHBLAH', 'Only allow karmavoting until the article is X days old (Default: 7)');
+@define('PLUGIN_KARMA_LOGGING', 'Log votes?');
+@define('PLUGIN_KARMA_LOGGING_BLAHBLAH', 'Should karma votes be logged?');
+@define('PLUGIN_KARMA_ACTIVE', 'Enable karma voting?');
+@define('PLUGIN_KARMA_ACTIVE_BLAHBLAH', 'Is karma voting turned on?');
+@define('PLUGIN_KARMA_VISITS', 'Enable visit tracking?');
+@define('PLUGIN_KARMA_VISITS_BLAHBLAH', 'Should every click to an extended article be counted and displayed?');
+@define('PLUGIN_KARMA_VISITSCOUNT', ' %4$s hits');
+@define('PLUGIN_KARMA_STATISTICS_VISITS_TOP', 'Top visited articles');
+@define('PLUGIN_KARMA_STATISTICS_VISITS_BOTTOM', 'Worst visited articles');
+@define('PLUGIN_KARMA_STATISTICS_VOTES_TOP', 'Top karma-voted articles');
+@define('PLUGIN_KARMA_STATISTICS_VOTES_BOTTOM', 'Least karma-voted articles');
+@define('PLUGIN_KARMA_STATISTICS_POINTS_TOP', 'Best karma-voted articles');
+@define('PLUGIN_KARMA_STATISTICS_POINTS_BOTTOM', 'Worst karma-voted articles');
+@define('PLUGIN_KARMA_STATISTICS_VISITS_NO', 'visits');
+@define('PLUGIN_KARMA_STATISTICS_VOTES_NO', 'votes');
+@define('PLUGIN_KARMA_STATISTICS_POINTS_NO', 'points');
+
 
 class serendipity_event_karma extends serendipity_event
 {
index ba31f9dd663ca8dd7e1771025145499d8f6a2955..fbe99bd780ab8c0d78c45130b3788a66c3cec57e 100644 (file)
@@ -1,27 +1,14 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 } 
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_LIVESEARCH_NAME', 'LiveSearch');
-        @define('PLUGIN_EVENT_LIVESEARCH_DESC', 'Erweitert die Suchfunktion mit einer Live-aktualisierung (JavaScript)');
-        @define('PLUGIN_EVENT_LIVESEARCH_WAIT', 'Suche aktiviert, bitte warten...');
-
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_LIVESEARCH_NAME', 'Livesearch');
-        @define('PLUGIN_EVENT_LIVESEARCH_DESC', 'Enhances the internal search function by adding live-updates on keypress (JavaScript)');
-        @define('PLUGIN_EVENT_LIVESEARCH_WAIT', 'Wait, sending request...');
-        break;
-}
+@define('PLUGIN_EVENT_LIVESEARCH_NAME', 'Livesearch');
+@define('PLUGIN_EVENT_LIVESEARCH_DESC', 'Enhances the internal search function by adding live-updates on keypress (JavaScript)');
+@define('PLUGIN_EVENT_LIVESEARCH_WAIT', 'Wait, sending request...');
 
 class serendipity_event_livesearch extends serendipity_event
 {
index 2a59526079276ebb35b3460040eb47d59e674fbf..6682871613ab012b3ed950c17dd8b151e3a8000a 100644 (file)
@@ -1,40 +1,21 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_MAILER_NAME', 'Artikel mailen');
-        @define('PLUGIN_EVENT_MAILER_DESC', 'Verschickt jeden neuen Artikel im Blog via E-Mail');
-        @define('PLUGIN_EVENT_MAILER_RECIPIENT', 'Mail-Empfänger');
-        @define('PLUGIN_EVENT_MAILER_RECIPIENTDESC', 'Die E-Mail Adresse an die die Artikel verschickt werden sollen (empfohlen: Eine Mailing-Liste)');
-        @define('PLUGIN_EVENT_MAILER_LINK', 'URL des Artikels mailen?');
-        @define('PLUGIN_EVENT_MAILER_LINKDESC', 'Verschickt die URL des Artikels.');
-        @define('PLUGIN_EVENT_MAILER_STRIPTAGS', 'HTML entfernen?');
-        @define('PLUGIN_EVENT_MAILER_STRIPTAGSDESC', 'Entfernt HTML-Anweisungen aus der Mail.');
-        @define('PLUGIN_EVENT_MAILER_CONVERTP', 'HTML-Paragraphen in Leerzeilen wandeln?');
-        @define('PLUGIN_EVENT_MAILER_CONVERTPDESC', 'Fügt einen Zeilenumbruch nach jedem HTML-Paragraphen ein. Besonders hilfreich im Zusammenhang mit der Option "HTML Entfernen", damit der Eintrag später selbst dann Umbrüche enthält, wenn sie nicht manuell eingegeben wurden.');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_MAILER_NAME', 'Send entries via E-Mail');
-        @define('PLUGIN_EVENT_MAILER_DESC', 'Let you send a newly created entry via E-Mail to a specific address');
-        @define('PLUGIN_EVENT_MAILER_RECIPIENT', 'Mail recipient');
-        @define('PLUGIN_EVENT_MAILER_RECIPIENTDESC', 'E-Mail address you want to send the entries to (suggested: a mailing list)');
-        @define('PLUGIN_EVENT_MAILER_LINK', 'Mail link to article?');
-        @define('PLUGIN_EVENT_MAILER_LINKDESC', 'Include a link to the article in the mail.');
-        @define('PLUGIN_EVENT_MAILER_STRIPTAGS', 'Remove HTML?');
-        @define('PLUGIN_EVENT_MAILER_STRIPTAGSDESC', 'Remove HTML-Tags from the mail.');
-        @define('PLUGIN_EVENT_MAILER_CONVERTP', 'Convert HTML-paragraphs to newlines?');
-        @define('PLUGIN_EVENT_MAILER_CONVERTPDESC', 'Adds a newline after each HTML paragraph. This is very useful if you enable HTML removing, so that your paragraphs can be kept if not manually entered.');
-        break;
-}
+@define('PLUGIN_EVENT_MAILER_NAME', 'Send entries via E-Mail');
+@define('PLUGIN_EVENT_MAILER_DESC', 'Let you send a newly created entry via E-Mail to a specific address');
+@define('PLUGIN_EVENT_MAILER_RECIPIENT', 'Mail recipient');
+@define('PLUGIN_EVENT_MAILER_RECIPIENTDESC', 'E-Mail address you want to send the entries to (suggested: a mailing list)');
+@define('PLUGIN_EVENT_MAILER_LINK', 'Mail link to article?');
+@define('PLUGIN_EVENT_MAILER_LINKDESC', 'Include a link to the article in the mail.');
+@define('PLUGIN_EVENT_MAILER_STRIPTAGS', 'Remove HTML?');
+@define('PLUGIN_EVENT_MAILER_STRIPTAGSDESC', 'Remove HTML-Tags from the mail.');
+@define('PLUGIN_EVENT_MAILER_CONVERTP', 'Convert HTML-paragraphs to newlines?');
+@define('PLUGIN_EVENT_MAILER_CONVERTPDESC', 'Adds a newline after each HTML paragraph. This is very useful if you enable HTML removing, so that your paragraphs can be kept if not manually entered.');
 
 class serendipity_event_mailer extends serendipity_event
 {
index c59c3c953fc9a7f940f067064b13e020ffe988a3..035c8c41cc6dfbc7d1a0096dbc5e8223dc9d6efb 100644 (file)
@@ -1,23 +1,13 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_NL2BR_NAME',     'Textformatierung: NL2BR');
-        @define('PLUGIN_EVENT_NL2BR_DESC',     'Konvertiert Zeilenumbrüche zu HTML');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_NL2BR_NAME',     'Markup: NL2BR');
-        @define('PLUGIN_EVENT_NL2BR_DESC',     'Convert newlines to BR tags');
-        break;
-}
+@define('PLUGIN_EVENT_NL2BR_NAME',     'Markup: NL2BR');
+@define('PLUGIN_EVENT_NL2BR_DESC',     'Convert newlines to BR tags');
 
 class serendipity_event_nl2br extends serendipity_event
 {
index d6c9c449be59fb51740b46563b86af82943f4a7a..2ad8ce0e874542c8a84ebec3f3802867bd942425 100644 (file)
@@ -1,25 +1,14 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_S9YMARKUP_NAME', 'Textformatierung: Serendipity');
-        @define('PLUGIN_EVENT_S9YMARKUP_DESC', 'Standard Serendipity Textformatierung durchführen');
-        @define('PLUGIN_EVENT_S9YMARKUP_TRANSFORM', 'Umschließende Sterne heben ein Wort hervor (*wort*), per _wort_ kann ein Wort unterstrichen werden.');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_S9YMARKUP_NAME', 'Markup: Serendipity');
-        @define('PLUGIN_EVENT_S9YMARKUP_DESC', 'Apply basic serendipity markup to entry text');
-        @define('PLUGIN_EVENT_S9YMARKUP_TRANSFORM', 'Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.');
-        break;
-}
+@define('PLUGIN_EVENT_S9YMARKUP_NAME', 'Markup: Serendipity');
+@define('PLUGIN_EVENT_S9YMARKUP_DESC', 'Apply basic serendipity markup to entry text');
+@define('PLUGIN_EVENT_S9YMARKUP_TRANSFORM', 'Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.');
 
 class serendipity_event_s9ymarkup extends serendipity_event
 {
index 94878291b2e50d4d3b095d2aae8fdaf6f4d89148..e17bb46dce8a5f3f5c7e561323d77539e68860bd 100644 (file)
@@ -5,22 +5,13 @@
 /**********************************/
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 } 
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_SEARCHHIGHLIGHT_NAME',     'Hebe Suchwörter hervor');
-        @define('PLUGIN_EVENT_SEARCHHIGHLIGHT_DESC',     'Hebt Suchwörter hervor, die ein User in einer Suchmaschine eingegeben hat');
-        break;
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_SEARCHHIGHLIGHT_NAME',     'Highlight search queries');
-        @define('PLUGIN_EVENT_SEARCHHIGHLIGHT_DESC',     'Highlights queries used in the referring search engine to locate your page');
-        break;
-}
+@define('PLUGIN_EVENT_SEARCHHIGHLIGHT_NAME',     'Highlight search queries');
+@define('PLUGIN_EVENT_SEARCHHIGHLIGHT_DESC',     'Highlights queries used in the referring search engine to locate your page');
 
 class serendipity_event_searchhighlight extends serendipity_event
 {
index a43be2a99b485c1af0459b9e256dc4ba249e9ae1..0546344e275d65cb669dbd319005f54586deca0e 100644 (file)
@@ -1,7 +1,7 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
@@ -13,145 +13,72 @@ if (!function_exists('serendipity_serverOffsetHour')) {
     }
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_SPAMBLOCK_TITLE', 'Spamschutz');
-        @define('PLUGIN_EVENT_SPAMBLOCK_DESC', 'Mehrere Varianten um Kommentarspam einzudämmen');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_BODY', 'Spamschutz: Ungültiger Kommentar');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_IP', 'Spamschutz: Ein weiterer Kommentar kann nicht so schnell übermittelt werden.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_KILLSWITCH', 'Dieses Blog ist im "Notfall Kommentar"-Modus. Bitte kommen Sie später wieder.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE', 'Keine doppelten Kommentare erlauben');
-        @define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE_DESC', 'Verbietet Benutzern ein Kommentar zu übermitteln, was gleichlautend bereits besteht.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH', 'Notfall-Blockade von Kommentaren');
-        @define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH_DESC', 'Übergangsweise Kommentare zu allen Einträgen verbieten. Nützlich, wenn das Blog unter andauerndem Spam-Beschuss leidet.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD', 'IP-Block Intervall');
-        @define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD_DESC', 'Schränkt die Anzahl an Kommentare pro IP ein, indem nur alle X Minuten ein Kommentar erlaubt wird. Hilfreich um Spamfluten derselben IP abzuwehren.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS', 'Captchas aktivieren');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_DESC', 'Erfordert die Eingabe eines zufälligen Buchstabenfolge vom Benutzer, damit ein Kommentar angenommen wird. Diese Eingabe kann von Spambots nicht getätigt werden und verhindert so automatische Kommentare. Jedoch können behinderte oder blinde Personen mit der Darstellung solcher Eingabegrafiken Probleme haben.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC', 'Um maschinelle und automatische Übertragung von Spamkommentaren zu verhinden, bitte die Zeichenfolge im dargestellten Bild in der Eingabemaske eintragen. Nur wenn die Zeichenfolge richtig eingegeben wurde, kann der Kommentar angenommen werden. Bitte beachten Sie, dass Ihr Browser Cookies unterstützen muss um dieses Verfahren anzuwenden. ');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2', 'Bitte die dargestellte Zeichenfolge in die Eingabemaske eintragen!');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC3', 'Hier die Zeichenfolge der Spamschutz-Grafik eintragen: ');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_CAPTCHAS', 'Sie haben nicht die richtige Spamschutz-Zeichenfolge eingetragen, die in der Grafik dargestellt wurde. Bitte gucken Sie sich dieses Bild erneut an und tragen die korrekte Zeichenfolge ein.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_NOTTF', 'Captchas können auf Ihrem Server nicht dargestellt werden. Sie benötigen GDLib und die freetype Bibliotheken, sowie die richtigen .TTF Dateien.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_TTL', 'Captchas nach wievielen Tagen erzwingen');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_TTL_DESC', 'Captchas können abhängig vom Alter des Artikels eingeblendet werden. Tragen Sie das Minimalalter eines Artikels in Tagen ein, ab dem Captchas erforderlich werden sollen. Falls auf 0 gesetzt, sind Captchas immer erforderlich.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FORCEMODERATION', 'Kommentarmoderation nach wievielen Tagen erzwingen');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FORCEMODERATION_DESC', 'Alle Kommentare zu einem Artikel können abhängig vom Alter des Artikels automatisch moderiert werden. Tragen Sie hier das Minimalalter eines Artikels in Tagen ein, ab dem jeder Kommentar erst nach Ihrer Moderation dargestellt wird.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_MODERATE', 'Erforderliche Anzahl an Links für Moderation');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_MODERATE_DESC', 'Wenn in einem Kommentar eine bestimmte Anzahl an Links vorhanden ist, kann der Kommentar automatisch moderiert werden. Falls auf 0 gesetzt, wird diese Linkprüfung nicht vorgenommen.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_REJECT', 'Erforderliche Anzahl an Links für Abweisung');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_REJECT_DESC', 'Wenn in einem Kommentar eine bestimmte Anzahl an Links vorhanden ist, kann der Kommentar automatisch abgelehnt werden. Falls auf 0 gesetzt, wird diese Linkprüfung nicht vorgenommen.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_NOTICE_MODERATION', 'Aufgrund einiger Bedingungen wird der Kommentar moderiert und erst nach Bestätigung des Blog-Eigentümers dargestellt.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHA_COLOR', 'Hintergrundfarbe des Captchas');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHA_COLOR_DESC', 'RGB Werte eingeben: 0,255,255');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGFILE', 'Speicherplatz für das Logfile');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGFILE_DESC', 'Einige Informationen über die Abweisung/Moderation von Kommentaren kann in ein Logfile geschrieben werden. Wenn diese Option auf einen leeren Wert gesetzt wird, findet keine Protokollierung statt.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_KILLSWITCH', 'Notfall-Blockade');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_BODYCLONE', 'Doppelter Kommentar');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_IPFLOOD', 'IP-Block');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_CAPTCHAS', 'Captcha ungültig (Eingegeben: %s, Erwartet: %s)');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_FORCEMODERATION', 'Moderation nach X Tagen');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_LINKS_REJECT', 'Zu viele Links');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_LINKS_MODERATE', 'Zu viele Links');
-        @define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL', 'E-Mail-Adressen bei Kommentatoren verstecken');
-        @define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL_DESC', 'Zeigt in den Kommentaren keine E-Mail Adressen der jeweiligen Kommentatoren an');
-        @define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL_NOTICE', 'Die angegebene E-Mail Adressse wird nicht dargestellt, sondern nur für evtl. Benachrichtigungen verwendet');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE', 'Protokollierung von fehlgeschlagenen Kommentaren');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_DESC', 'Die Protokollierung von fehlgeschlagenen Kommentaren und deren Gründen kann auf mehrere Arten durchgeführt werden.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_FILE', 'Einfache Datei (siehe Option "Logfile")');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_DB', 'Datenbank');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_NONE', 'Keine Protokollierung');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_COMMENTS', 'Behandlung von per API übermittelten Kommentaren');
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_COMMENTS_DESC', 'Diese Einstellung bestimmt, wie per API abgegebene Kommentare (Trackbacks, wfw:commentApi) behandelt werden. Falls diese Einstellung auf "moderieren" gestellt ist, müssen alle solche Kommentare immer bestätigt werden. Falls auf "abweisen" gestellt, werden solche Kommentare global nicht erlaubt. Bei der Einstellung "keine" werden solche Kommentare wie andere behandelt.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_MODERATE', 'moderieren');
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_REJECT', 'abweisen');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_API', 'Keine API-erstellten Kommentare (u.a. Trackbacks) erlaubt');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_ACTIVATE', 'Wortfilter aktivieren');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_ACTIVATE_DESC', 'Durchsucht Kommentare nach speziellen Zeichenketten und markiert diese als Spam.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS', 'Wortfilter für URLs');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS_DESC', 'Reguläre Ausdrücke erlaubt, Zeichenkennten durch Semikolon (;) trennen.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS', 'Wortfilter für Autorennamen');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS_DESC', 'Reguläre Ausdrücke erlaubt, Zeichenkennten durch Semikolon (;) trennen.');
-        break;
-
-    default:
-        @define('PLUGIN_EVENT_SPAMBLOCK_TITLE', 'Spam Protector');
-        @define('PLUGIN_EVENT_SPAMBLOCK_DESC', 'A variety of methods to prevent comment spam');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_BODY', 'Spam Prevention: Invalid message.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_IP', 'Spam Prevention: You cannot post a comment so soon after submitting another one.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_KILLSWITCH', 'This blog is in "Emergency Comment Blockage Mode", please come back another time');
-        @define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE', 'Do not allow duplicate comments');
-        @define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE_DESC', 'Do not allow users to submit a comment which contains the same body as an already submitted comment');
-        @define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH', 'Emergency comment shutdown');
-        @define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH_DESC', 'Temporarily disable comments for all entries. Useful if your blog is under spam attack.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD', 'IP block interval');
-        @define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD_DESC', 'Only allow an IP to submit a comment every n minutes. Useful to prevent comment floods.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS', 'Enable Captchas');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_DESC', 'Will force the user to input a random string displayed in a specially crafted image. This will disallow automated submits to your blog. Please remember that people with decreased vision may find it hard to read those captchas.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC', 'To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2', 'Enter the string you see here in the input box!');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC3', 'Enter the string from the spam-prevention image above: ');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_CAPTCHAS', 'You did not enter the correct string displayed in the spam-prevention image box. Please look at the image and enter the values displayed there.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_ERROR_NOTTF', 'Captchas disabled on your server. You need GDLib and freetype libraries compiled to PHP, and need the .TTF files residing in your directory.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_TTL', 'Force captchas after how many days');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_TTL_DESC', 'Captchas can be enforced depending on the age of your articles. Enter the amount of days after which entering a correct captcha is necessary. If set to 0, captchas will always be used.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FORCEMODERATION', 'Force comment moderation after how many days');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FORCEMODERATION_DESC', 'You can automatically set all comments for entries to be moderated. Enter the age of an entry in days, after which it should be auto-moderated. 0 means no auto-moderation.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_MODERATE', 'How many links before a comment gets moderated');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_MODERATE_DESC', 'When a comment reaches a certain amount of links, that comment can be set to be moderated. 0 means that no link-checking is done.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_REJECT', 'How many links before a comment gets rejected');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LINKS_REJECT_DESC', 'When a comment reaches a certain amount of links, that comment can be set to be rejected. 0 means that no link-checking is done.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_NOTICE_MODERATION', 'Because of some conditions, your comment has been marked to require moderation by the owner of this blog.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHA_COLOR', 'Background color of the captcha');
-        @define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHA_COLOR_DESC', 'Enter RGB values: 0,255,255');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGFILE', 'Logfile location');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGFILE_DESC', 'Information about rejected/moderated posts can be written to a logfile. Set this to an empty string if you want to disable logging.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_KILLSWITCH', 'Emergency Comment Blockage');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_BODYCLONE', 'Duplicate comment');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_IPFLOOD', 'IP-block');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_CAPTCHAS', 'Invalid captcha (Entered: %s, Expected: %s)');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_FORCEMODERATION', 'Auto-moderation after X days');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_LINKS_REJECT', 'Too many hyperlinks');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_LINKS_MODERATE', 'Too many hyperlinks');
-        @define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL', 'Hide E-Mail addresses of commenting users');
-        @define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL_DESC', 'Will show no E-Mail addresses of commenting users');
-        @define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL_NOTICE', 'E-Mail addresses will not be displayed and will only be used for E-Mail notifications');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE', 'Choose logging method');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_DESC', 'Logging of rejected comments can be done in Database or to a plaintext file');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_FILE', 'File (see "logfile" option below)');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_DB', 'Database');
-        @define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_NONE', 'No Logging');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_COMMENTS', 'How to treat comments made via APIs');
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_COMMENTS_DESC', 'This affects the moderation of comments made via API calls (Trackbacks, WFW:commentAPI comments). If set to "moderate", all those comments always need to be approved first. If set to "reject", the are completely disallowed. If set to "none", the comments will be treated as usual comments.');
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_MODERATE', 'moderate');
-        @define('PLUGIN_EVENT_SPAMBLOCK_API_REJECT', 'reject');
-        @define('PLUGIN_EVENT_SPAMBLOCK_REASON_API', 'No API-created comments (like trackbacks) allowed');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_ACTIVATE', 'Activate wordfilter');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_ACTIVATE_DESC', 'Searches comments for certain strings and marks them as spam.');
-
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS', 'Wordfilter for URLs');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS_DESC', 'Regular Expressions allowed, separate strings by semicolons (;).');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS', 'Wordfilter for author names');
-        @define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS_DESC', 'Regular Expressions allowed, separate strings by semicolons (;).');
-
-        break;
-}
+@define('PLUGIN_EVENT_SPAMBLOCK_TITLE', 'Spam Protector');
+@define('PLUGIN_EVENT_SPAMBLOCK_DESC', 'A variety of methods to prevent comment spam');
+@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_BODY', 'Spam Prevention: Invalid message.');
+@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_IP', 'Spam Prevention: You cannot post a comment so soon after submitting another one.');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_KILLSWITCH', 'This blog is in "Emergency Comment Blockage Mode", please come back another time');
+@define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE', 'Do not allow duplicate comments');
+@define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE_DESC', 'Do not allow users to submit a comment which contains the same body as an already submitted comment');
+@define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH', 'Emergency comment shutdown');
+@define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH_DESC', 'Temporarily disable comments for all entries. Useful if your blog is under spam attack.');
+@define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD', 'IP block interval');
+@define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD_DESC', 'Only allow an IP to submit a comment every n minutes. Useful to prevent comment floods.');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS', 'Enable Captchas');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_DESC', 'Will force the user to input a random string displayed in a specially crafted image. This will disallow automated submits to your blog. Please remember that people with decreased vision may find it hard to read those captchas.');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC', 'To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2', 'Enter the string you see here in the input box!');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC3', 'Enter the string from the spam-prevention image above: ');
+@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_CAPTCHAS', 'You did not enter the correct string displayed in the spam-prevention image box. Please look at the image and enter the values displayed there.');
+@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_NOTTF', 'Captchas disabled on your server. You need GDLib and freetype libraries compiled to PHP, and need the .TTF files residing in your directory.');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_TTL', 'Force captchas after how many days');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_TTL_DESC', 'Captchas can be enforced depending on the age of your articles. Enter the amount of days after which entering a correct captcha is necessary. If set to 0, captchas will always be used.');
+@define('PLUGIN_EVENT_SPAMBLOCK_FORCEMODERATION', 'Force comment moderation after how many days');
+@define('PLUGIN_EVENT_SPAMBLOCK_FORCEMODERATION_DESC', 'You can automatically set all comments for entries to be moderated. Enter the age of an entry in days, after which it should be auto-moderated. 0 means no auto-moderation.');
+@define('PLUGIN_EVENT_SPAMBLOCK_LINKS_MODERATE', 'How many links before a comment gets moderated');
+@define('PLUGIN_EVENT_SPAMBLOCK_LINKS_MODERATE_DESC', 'When a comment reaches a certain amount of links, that comment can be set to be moderated. 0 means that no link-checking is done.');
+@define('PLUGIN_EVENT_SPAMBLOCK_LINKS_REJECT', 'How many links before a comment gets rejected');
+@define('PLUGIN_EVENT_SPAMBLOCK_LINKS_REJECT_DESC', 'When a comment reaches a certain amount of links, that comment can be set to be rejected. 0 means that no link-checking is done.');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_NOTICE_MODERATION', 'Because of some conditions, your comment has been marked to require moderation by the owner of this blog.');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHA_COLOR', 'Background color of the captcha');
+@define('PLUGIN_EVENT_SPAMBLOCK_CAPTCHA_COLOR_DESC', 'Enter RGB values: 0,255,255');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGFILE', 'Logfile location');
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGFILE_DESC', 'Information about rejected/moderated posts can be written to a logfile. Set this to an empty string if you want to disable logging.');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_KILLSWITCH', 'Emergency Comment Blockage');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_BODYCLONE', 'Duplicate comment');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_IPFLOOD', 'IP-block');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_CAPTCHAS', 'Invalid captcha (Entered: %s, Expected: %s)');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_FORCEMODERATION', 'Auto-moderation after X days');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_LINKS_REJECT', 'Too many hyperlinks');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_LINKS_MODERATE', 'Too many hyperlinks');
+@define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL', 'Hide E-Mail addresses of commenting users');
+@define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL_DESC', 'Will show no E-Mail addresses of commenting users');
+@define('PLUGIN_EVENT_SPAMBLOCK_HIDE_EMAIL_NOTICE', 'E-Mail addresses will not be displayed and will only be used for E-Mail notifications');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE', 'Choose logging method');
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_DESC', 'Logging of rejected comments can be done in Database or to a plaintext file');
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_FILE', 'File (see "logfile" option below)');
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_DB', 'Database');
+@define('PLUGIN_EVENT_SPAMBLOCK_LOGTYPE_NONE', 'No Logging');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_API_COMMENTS', 'How to treat comments made via APIs');
+@define('PLUGIN_EVENT_SPAMBLOCK_API_COMMENTS_DESC', 'This affects the moderation of comments made via API calls (Trackbacks, WFW:commentAPI comments). If set to "moderate", all those comments always need to be approved first. If set to "reject", the are completely disallowed. If set to "none", the comments will be treated as usual comments.');
+@define('PLUGIN_EVENT_SPAMBLOCK_API_MODERATE', 'moderate');
+@define('PLUGIN_EVENT_SPAMBLOCK_API_REJECT', 'reject');
+@define('PLUGIN_EVENT_SPAMBLOCK_REASON_API', 'No API-created comments (like trackbacks) allowed');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_ACTIVATE', 'Activate wordfilter');
+@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_ACTIVATE_DESC', 'Searches comments for certain strings and marks them as spam.');
+
+@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS', 'Wordfilter for URLs');
+@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS_DESC', 'Regular Expressions allowed, separate strings by semicolons (;).');
+@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS', 'Wordfilter for author names');
+@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS_DESC', 'Regular Expressions allowed, separate strings by semicolons (;).');
 
 class serendipity_event_spamblock extends serendipity_event
 {
index e536e7108c6cee6a4361361fa29029ee56024d51..1314a0cdedf8eb9da25fc522aed02b77e7eb6bd0 100644 (file)
@@ -9,41 +9,22 @@
  ***********/
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_SPARTACUS_NAME', 'Spartacus');
-        @define('PLUGIN_EVENT_SPARTACUS_DESC', '[S]erendipity [P]lugin [A]ccess [R]epository [T]ool [A]nd [C]ustomization/[U]nification [S]ystem - Installiert Plugins direkt aus dem Netz.');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCH', 'Hier klicken um ein neues %s aus dem Netz zu installieren.');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHERROR', 'Die URL %s konnte nicht geöffnet werden. Möglicherweise existieren Server- oder Netzwerkprobleme.');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHING', 'Versuche URL %s zu öffnen...');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_URL', '%s bytes von obiger URL geladen. Speichere Inhalt als %s...');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_CACHE', '%s bytes von bereits bestehender Datei geladen. Speichere Inhalt als %s...');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHED_DONE', 'Daten erfolgreich geladen.');
-        @define('PLUGIN_EVENT_SPARTACUS_MIRROR_XML', 'Datei/Mirror Speicherort (XML-Metadaten)');
-        @define('PLUGIN_EVENT_SPARTACUS_MIRROR_FILES', 'Datei/Mirror Speicherort (Downloads)');
-        @define('PLUGIN_EVENT_SPARTACUS_MIRROR_DESC', 'Wählen Sie den Download-Server. Ändern Sie diesen Wert nur, wenn Sie wissen, was Sie tun und ein Server nicht mehr reagiert. Diese Option ist hauptsächlich für zukünftige Server reserviert.');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_SPARTACUS_NAME', 'Spartacus');
-        @define('PLUGIN_EVENT_SPARTACUS_DESC', '[S]erendipity [P]lugin [A]ccess [R]epository [T]ool [A]nd [C]ustomization/[U]nification [S]ystem - Allows you to download plugins from our online repository');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCH', 'Click here to fetch a new %s from the Serendipity Online Repository');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHERROR', 'The URL %s could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHING', 'Trying to open URL %s...');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_URL', 'Fetched %s bytes from the URL above. Saving file as %s...');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_CACHE', 'Fetched %s bytes from already existing file on your server. Saving file as %s...');
-        @define('PLUGIN_EVENT_SPARTACUS_FETCHED_DONE', 'Data successfully fetched.');
-        @define('PLUGIN_EVENT_SPARTACUS_MIRROR_XML', 'File/Mirror location (XML metadata)');
-        @define('PLUGIN_EVENT_SPARTACUS_MIRROR_FILES', 'File/Mirror location (files)');
-        @define('PLUGIN_EVENT_SPARTACUS_MIRROR_DESC', 'Choose a download location. Do NOT change this value unless you know what you are doing and if servers get oudated. This option is available mainly for forward compatibility.');
-        break;
-}
+@define('PLUGIN_EVENT_SPARTACUS_NAME', 'Spartacus');
+@define('PLUGIN_EVENT_SPARTACUS_DESC', '[S]erendipity [P]lugin [A]ccess [R]epository [T]ool [A]nd [C]ustomization/[U]nification [S]ystem - Allows you to download plugins from our online repository');
+@define('PLUGIN_EVENT_SPARTACUS_FETCH', 'Click here to fetch a new %s from the Serendipity Online Repository');
+@define('PLUGIN_EVENT_SPARTACUS_FETCHERROR', 'The URL %s could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.');
+@define('PLUGIN_EVENT_SPARTACUS_FETCHING', 'Trying to open URL %s...');
+@define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_URL', 'Fetched %s bytes from the URL above. Saving file as %s...');
+@define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_CACHE', 'Fetched %s bytes from already existing file on your server. Saving file as %s...');
+@define('PLUGIN_EVENT_SPARTACUS_FETCHED_DONE', 'Data successfully fetched.');
+@define('PLUGIN_EVENT_SPARTACUS_MIRROR_XML', 'File/Mirror location (XML metadata)');
+@define('PLUGIN_EVENT_SPARTACUS_MIRROR_FILES', 'File/Mirror location (files)');
+@define('PLUGIN_EVENT_SPARTACUS_MIRROR_DESC', 'Choose a download location. Do NOT change this value unless you know what you are doing and if servers get oudated. This option is available mainly for forward compatibility.');
 
 class serendipity_event_spartacus extends serendipity_event
 {
index cdc8c738a9914f21e7f8c04e1a7fb7fa1f107b8f..52999e91dfc200676536944d1db1adbc5be3ce1b 100644 (file)
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'cz':
-    case 'cs':
-        include_once S9Y_INCLUDE_PATH . 'plugins/serendipity_event_statistics/lang_cz.php';
-        break;
-
-    case 'de':
-        @define('PLUGIN_EVENT_STATISTICS_NAME', 'Statistiken');
-        @define('PLUGIN_EVENT_STATISTICS_DESC', 'Zeigt einen Link zu Statistiken in der Autorenoberfläche');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_STATISTICS', 'Statistik');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_FIRST_ENTRY', 'Erster Eintrag');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_LAST_ENTRY', 'Letzter Eintrag');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_ENTRIES', 'Insgesamt verfasste Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ENTRIES', 'Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_PUBLIC', ' ... davon öffentlich');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_DRAFTS', ' ... davon Entwürfe');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CATEGORIES', 'Vorhandene Kategorien');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CATEGORIES2', 'Kategorie(n)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_CATEGORIES', 'Verteilung der Artikel auf Kategorien');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_CATEGORIES2', 'eingetragene(r) Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_UPLOADED_IMAGES', 'Hochgeladene Bilder');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_UPLOADED_IMAGES2', 'Bild(er)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_IMAGES', 'Verteilung der Bild-Dateitypen');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_IMAGES2', 'vorhandene Datei(en)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS', 'Erhaltene Kommentare');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS2', 'Kommentar(e)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS3', 'Top kommentierte Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPCOMMENTS', 'Top Kommentatoren');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_LINK', 'Link');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_SUBSCRIBERS', 'Abonnenten');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_SUBSCRIBERS2', 'Abonnent(en)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPSUBSCRIBERS', 'Top abonnierte Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPSUBSCRIBERS2', 'eingetragene(r) Abonnent(en)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS', 'Erhaltene Trackbacks');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS2', 'Trackback(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACK', 'Top Trackback-Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACK2', 'eingetragene(r) Trackback(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACKS3', 'Top Trackbacker');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS_PER_ARTICLE', 'Durchschnittliche Kommentare pro Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS_PER_ARTICLE', 'Durchschnittliche Trackbacks pro Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_DAY', 'Durchschnittliche Artikel pro Tag');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_WEEK', 'Durchschnittliche Artikel pro Woche');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_MONTH', 'Durchschnittliche Artikel pro Monat');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS_PER_ARTICLE2', 'Kommentare/Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS_PER_ARTICLE2', 'Trackbacks/Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_DAY2', 'Artikel/Tag');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_WEEK2', 'Artikel/Woche');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_MONTH2', 'Artikel/Monat');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS', 'Menge der verfassten Zeichen');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS2', 'Zeichen');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS_PER_ARTICLE', 'Zeichen pro Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS_PER_ARTICLE2', 'Zeichen/Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_LONGEST_ARTICLES', 'Die %s längsten Artikel');
-        @define('PLUGIN_EVENT_STATISTICS_MAX_ITEMS', 'Anzahl Einträge');
-        @define('PLUGIN_EVENT_STATISTICS_MAX_ITEMS_DESC', 'Wieviele Einträge sollen pro Wert dargestellt werden? (Standard: 20)');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_STATISTICS_NAME', 'Statistics');
-        @define('PLUGIN_EVENT_STATISTICS_DESC', 'Adds a link to interesting statistics in your entries panel');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_STATISTICS', 'Statistics');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_FIRST_ENTRY', 'First entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_LAST_ENTRY', 'Last entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_ENTRIES', 'Total entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ENTRIES', 'entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_PUBLIC', ' ... public');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_DRAFTS', ' ... drafts');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CATEGORIES', 'Categories');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CATEGORIES2', 'categories');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_CATEGORIES', 'Distribution of entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_CATEGORIES2', 'entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_UPLOADED_IMAGES', 'Uploaded images');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_UPLOADED_IMAGES2', 'image(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_IMAGES', 'Distribution of image types');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_IMAGES2', 'file(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS', 'Received comments');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS2', 'comment(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS3', 'Most frequently commented entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPCOMMENTS', 'Most frequently commenting people');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_LINK', 'link');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_SUBSCRIBERS', 'Subscribers');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_SUBSCRIBERS2', 'subscriber(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPSUBSCRIBERS', 'Most frequently subscribed entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPSUBSCRIBERS2', 'subscriber(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS', 'Received trackbacks');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS2', 'trackback(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACK', 'Most frequently trackbacked entires');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACK2', 'trackback(s)');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACKS3', 'Most frequently trackbacking people');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS_PER_ARTICLE', 'estimated comments per entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS_PER_ARTICLE', 'estimated trackbacks per entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_DAY', 'estimated entries per day');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_WEEK', 'estimated entries per week');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_MONTH', 'estimated entries per month');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS_PER_ARTICLE2', 'comments/entries');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS_PER_ARTICLE2', 'trackbacks/entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_DAY2', 'entries/day');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_WEEK2', 'entries/week');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_MONTH2', 'entries/month');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS', 'Total amount of characters');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS2', 'characters');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS_PER_ARTICLE', 'Characters per entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_CHARS_PER_ARTICLE2', 'chars/entry');
-        @define('PLUGIN_EVENT_STATISTICS_OUT_LONGEST_ARTICLES', 'The %s longest entries');
-        @define('PLUGIN_EVENT_STATISTICS_MAX_ITEMS', 'Maximum items');
-        @define('PLUGIN_EVENT_STATISTICS_MAX_ITEMS_DESC', 'How many items to display per statistical value? (Default: 20)');
-        break;
-}
+@define('PLUGIN_EVENT_STATISTICS_NAME', 'Statistics');
+@define('PLUGIN_EVENT_STATISTICS_DESC', 'Adds a link to interesting statistics in your entries panel');
+@define('PLUGIN_EVENT_STATISTICS_OUT_STATISTICS', 'Statistics');
+@define('PLUGIN_EVENT_STATISTICS_OUT_FIRST_ENTRY', 'First entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_LAST_ENTRY', 'Last entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_ENTRIES', 'Total entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ENTRIES', 'entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_PUBLIC', ' ... public');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOTAL_DRAFTS', ' ... drafts');
+@define('PLUGIN_EVENT_STATISTICS_OUT_CATEGORIES', 'Categories');
+@define('PLUGIN_EVENT_STATISTICS_OUT_CATEGORIES2', 'categories');
+@define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_CATEGORIES', 'Distribution of entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_CATEGORIES2', 'entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_UPLOADED_IMAGES', 'Uploaded images');
+@define('PLUGIN_EVENT_STATISTICS_OUT_UPLOADED_IMAGES2', 'image(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_IMAGES', 'Distribution of image types');
+@define('PLUGIN_EVENT_STATISTICS_OUT_DISTRIBUTION_IMAGES2', 'file(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS', 'Received comments');
+@define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS2', 'comment(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS3', 'Most frequently commented entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOPCOMMENTS', 'Most frequently commenting people');
+@define('PLUGIN_EVENT_STATISTICS_OUT_LINK', 'link');
+@define('PLUGIN_EVENT_STATISTICS_OUT_SUBSCRIBERS', 'Subscribers');
+@define('PLUGIN_EVENT_STATISTICS_OUT_SUBSCRIBERS2', 'subscriber(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOPSUBSCRIBERS', 'Most frequently subscribed entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOPSUBSCRIBERS2', 'subscriber(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS', 'Received trackbacks');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS2', 'trackback(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACK', 'Most frequently trackbacked entires');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACK2', 'trackback(s)');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TOPTRACKBACKS3', 'Most frequently trackbacking people');
+@define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS_PER_ARTICLE', 'estimated comments per entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS_PER_ARTICLE', 'estimated trackbacks per entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_DAY', 'estimated entries per day');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_WEEK', 'estimated entries per week');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_MONTH', 'estimated entries per month');
+@define('PLUGIN_EVENT_STATISTICS_OUT_COMMENTS_PER_ARTICLE2', 'comments/entries');
+@define('PLUGIN_EVENT_STATISTICS_OUT_TRACKBACKS_PER_ARTICLE2', 'trackbacks/entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_DAY2', 'entries/day');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_WEEK2', 'entries/week');
+@define('PLUGIN_EVENT_STATISTICS_OUT_ARTICLES_PER_MONTH2', 'entries/month');
+@define('PLUGIN_EVENT_STATISTICS_OUT_CHARS', 'Total amount of characters');
+@define('PLUGIN_EVENT_STATISTICS_OUT_CHARS2', 'characters');
+@define('PLUGIN_EVENT_STATISTICS_OUT_CHARS_PER_ARTICLE', 'Characters per entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_CHARS_PER_ARTICLE2', 'chars/entry');
+@define('PLUGIN_EVENT_STATISTICS_OUT_LONGEST_ARTICLES', 'The %s longest entries');
+@define('PLUGIN_EVENT_STATISTICS_MAX_ITEMS', 'Maximum items');
+@define('PLUGIN_EVENT_STATISTICS_MAX_ITEMS_DESC', 'How many items to display per statistical value? (Default: 20)');
 
 class serendipity_event_statistics extends serendipity_event
 {
index 7a864527e983300df5a838af6ccc7ea25c51539b..a1084762bfe2ea9bc70fdfbaf34fcb706d7e99a0 100644 (file)
@@ -1,23 +1,13 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_TEMPLATECHOOSER_NAME',     'Templateauswahl');
-        @define('PLUGIN_EVENT_TEMPLATECHOOSER_DESC',     'Ermöglicht Besuchern das Template zu ändern');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_TEMPLATECHOOSER_NAME',     'Template chooser');
-        @define('PLUGIN_EVENT_TEMPLATECHOOSER_DESC',     'Allows your visitors to change template on the fly');
-        break;
-}
+@define('PLUGIN_EVENT_TEMPLATECHOOSER_NAME',     'Template chooser');
+@define('PLUGIN_EVENT_TEMPLATECHOOSER_DESC',     'Allows your visitors to change template on the fly');
 
 class serendipity_event_templatechooser extends serendipity_event
 {
index d5a71346ae5aa343c3e68d3a33361bdb2d69c668..383ef0e86786e864ec0180497f268d40bdfb752c 100644 (file)
@@ -3,25 +3,14 @@
 require_once S9Y_INCLUDE_PATH . 'plugins/serendipity_event_textile/textile.php';
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_TEXTILE_NAME',     'Textformatierung: Textile');
-        @define('PLUGIN_EVENT_TEXTILE_DESC',     'Textile-Formatierung durchführen');
-        @define('PLUGIN_EVENT_TEXTILE_TRANSFORM', '<a href="http://www.textism.com/tools/textile/">Textile</a>-Formatierung erlaubt');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_TEXTILE_NAME', 'Markup: Textile');
-        @define('PLUGIN_EVENT_TEXTILE_DESC', 'Parse all output through the Textile converter');
-        @define('PLUGIN_EVENT_TEXTILE_TRANSFORM', '<a href="http://www.textism.com/tools/textile/">Textile</a>-formatting allowed');
-        break;
-}
+@define('PLUGIN_EVENT_TEXTILE_NAME', 'Markup: Textile');
+@define('PLUGIN_EVENT_TEXTILE_DESC', 'Parse all output through the Textile converter');
+@define('PLUGIN_EVENT_TEXTILE_TRANSFORM', '<a href="http://www.textism.com/tools/textile/">Textile</a>-formatting allowed');
 
 class serendipity_event_textile extends serendipity_event
 {
index 82e32b5566faccfb25eca374f60ab7d122e5fac5..dcf2e906f00a1c6c0efe83b16c5d091719f76426 100644 (file)
@@ -1,26 +1,14 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_TEXTWIKI_NAME',     'Textformatierung: Wiki');
-        @define('PLUGIN_EVENT_TEXTWIKI_DESC',     'Wiki-Formatierung durchführen');
-        @define('PLUGIN_EVENT_TEXTWIKI_TRANSFORM', '<a href="http://c2.com/cgi/wiki">Wiki</a>-Formatierung erlaubt');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_TEXTWIKI_NAME',     'Markup: Wiki');
-        @define('PLUGIN_EVENT_TEXTWIKI_DESC',     'Markup text using Text_Wiki');
-        @define('PLUGIN_EVENT_TEXTWIKI_TRANSFORM', '<a href="http://c2.com/cgi/wiki">Wiki</a> format allowed');
-
-        break;
-}
+@define('PLUGIN_EVENT_TEXTWIKI_NAME',     'Markup: Wiki');
+@define('PLUGIN_EVENT_TEXTWIKI_DESC',     'Markup text using Text_Wiki');
+@define('PLUGIN_EVENT_TEXTWIKI_TRANSFORM', '<a href="http://c2.com/cgi/wiki">Wiki</a> format allowed');
 
 // Currently only english available
 
index f81db13c47350089894982e0920831a6c8eb42a2..361f026f01cb31a48a85effbd444e5ae59023a69 100644 (file)
@@ -1,33 +1,18 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 } 
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_TRACKBACK_NAME', 'Textformatierung: Externe Links zählen');
-        @define('PLUGIN_EVENT_TRACKBACK_DESC', 'Click auf Externe Links verfolgen');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION', 'URL von Kommentatoren maskieren?');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_BLAHBLA', 'Verhindert Spam-Missbrauch aber auch positiven Nutzen von Verlinkungen innerhalb Blogs. Wenn der Wert auf "s9y" gesetzt wird, werden interne Routinen zur Weiterleitung verwendet. Bei dem Wert "google" wird Google verwendet. Ein leerer Wert schaltet die Weiterleitung aus(Standard).');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_NONE', 'Keine');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_S9Y', 'Serendipity Exit-Tracking Routine');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_GOOGLE', 'Google PageRank Deflector');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_TRACKBACK_NAME', 'Markup: Track exits');
-        @define('PLUGIN_EVENT_TRACKBACK_DESC', 'Track clicks on external URLs');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION', 'Use URL-redirection on URL to commenting user?');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_BLAHBLA', 'Reduces Comment-Abuse but also disables positive effects of linking to the URL of a commenting user. Serendipity\'s internal routines will redirect to the target page and log the exit. The Google PageRank Deflector will prevent the link from gaining rank on Google. An empty value disables this feature entirely (default).');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_NONE', 'None');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_S9Y', 'Serendipity Exit-Tracking Routine');
-        @define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_GOOGLE', 'Google PageRank Deflector');
-        break;
-}
+@define('PLUGIN_EVENT_TRACKBACK_NAME', 'Markup: Track exits');
+@define('PLUGIN_EVENT_TRACKBACK_DESC', 'Track clicks on external URLs');
+@define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION', 'Use URL-redirection on URL to commenting user?');
+@define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_BLAHBLA', 'Reduces Comment-Abuse but also disables positive effects of linking to the URL of a commenting user. Serendipity\'s internal routines will redirect to the target page and log the exit. The Google PageRank Deflector will prevent the link from gaining rank on Google. An empty value disables this feature entirely (default).');
+@define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_NONE', 'None');
+@define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_S9Y', 'Serendipity Exit-Tracking Routine');
+@define('PLUGIN_EVENT_TRACKBACK_COMMENTREDIRECTION_GOOGLE', 'Google PageRank Deflector');
 
 class serendipity_event_trackexits extends serendipity_event
 {
index 81a4f346f967dc13daed8b4cdacd7098c35aa6a0..522b62fc062f3f0d415060ab6bed769c71c4ac38 100644 (file)
@@ -3,36 +3,20 @@
 require_once S9Y_INCLUDE_PATH . 'bundled-libs/HTTP/Request.php';
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_WEBLOGPING_PING', 'Einträge ankündigen (via XML-RPC ping) bei:');
-        @define('PLUGIN_EVENT_WEBLOGPING_SENDINGPING', 'Sende XML-RPC ping zu %s');
-        @define('PLUGIN_EVENT_WEBLOGPING_TITLE', 'Einträge ankündigen');
-        @define('PLUGIN_EVENT_WEBLOGPING_DESC', 'Benachrichtigt diverse Internetseiten, das ein neuer Eintrag erstellt wurde.');
-        @define('PLUGIN_EVENT_WEBLOGPING_SUPERSEDES', '(ersetzt %s)');
-        @define('PLUGIN_EVENT_WEBLOGPING_CUSTOM', 'Selbstdefinierte Ping-Services');
-        @define('PLUGIN_EVENT_WEBLOGPING_CUSTOM_BLAHBLA', 'Mehrere durch "," getrennte Ping-Services im Format: "host.domain/pfad". Falls am Anfang eines Hosts ein "*" eingefügt wird, werden an den Host die erweiterten XML-RPC Optionen gesendet; der Host muss diese Optionen unterstützen.');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_WEBLOGPING_PING', 'Announce entries (via XML-RPC ping) to:');
-        @define('PLUGIN_EVENT_WEBLOGPING_SENDINGPING', 'Sending XML-RPC ping to host %s');
-        @define('PLUGIN_EVENT_WEBLOGPING_TITLE', 'Announce entries');
-        @define('PLUGIN_EVENT_WEBLOGPING_DESC', 'Send notification of new entries to online services');
-        @define('PLUGIN_EVENT_WEBLOGPING_SUPERSEDES', '(supersedes %s)');
-        @define('PLUGIN_EVENT_WEBLOGPING_CUSTOM', 'Custom ping-services');
-        @define('PLUGIN_EVENT_WEBLOGPING_CUSTOM_BLAHBLA', 'One or more special ping services, seperated by ",". The entries need to be formatted like: "host.domain/path". If a "*" is entered at the beginning of the hostname, the extended XML-RPC options will be sent to that host (only if supported by the host).');
-        @define('PLUGIN_EVENT_WEBLOGPING_SEND_FAILURE', 'Failure(Reason: %s)');
-        @define('PLUGIN_EVENT_WEBLOGPING_SEND_SUCCESS', 'Success!!');
-        break;
-}
+@define('PLUGIN_EVENT_WEBLOGPING_PING', 'Announce entries (via XML-RPC ping) to:');
+@define('PLUGIN_EVENT_WEBLOGPING_SENDINGPING', 'Sending XML-RPC ping to host %s');
+@define('PLUGIN_EVENT_WEBLOGPING_TITLE', 'Announce entries');
+@define('PLUGIN_EVENT_WEBLOGPING_DESC', 'Send notification of new entries to online services');
+@define('PLUGIN_EVENT_WEBLOGPING_SUPERSEDES', '(supersedes %s)');
+@define('PLUGIN_EVENT_WEBLOGPING_CUSTOM', 'Custom ping-services');
+@define('PLUGIN_EVENT_WEBLOGPING_CUSTOM_BLAHBLA', 'One or more special ping services, seperated by ",". The entries need to be formatted like: "host.domain/path". If a "*" is entered at the beginning of the hostname, the extended XML-RPC options will be sent to that host (only if supported by the host).');
+@define('PLUGIN_EVENT_WEBLOGPING_SEND_FAILURE', 'Failure(Reason: %s)');
+@define('PLUGIN_EVENT_WEBLOGPING_SEND_SUCCESS', 'Success!!');
 
 class serendipity_event_weblogping extends serendipity_event
 {
index d66bb96f0d2e5a322d1d50a0058c35fc7fb64c6c..fe4bdb9557e0e9c59e4324682f76a336b3310e84 100644 (file)
@@ -1,23 +1,13 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 } 
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_XHTMLCLEANUP_NAME', 'Übliche XHTML-Fehler beseitigen');
-        @define('PLUGIN_EVENT_XHTMLCLEANUP_DESC', 'Korrigiert übliche Fehler, die beim XHTML-Markup der Einträge gemacht werden können');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_EVENT_XHTMLCLEANUP_NAME', 'Fix common XHTML errors');
-        @define('PLUGIN_EVENT_XHTMLCLEANUP_DESC', 'This plugin corrects common issues with XHTML markup in entries. It assists in keeping your blog XHTML compliant.');
-        break;
-}
+@define('PLUGIN_EVENT_XHTMLCLEANUP_NAME', 'Fix common XHTML errors');
+@define('PLUGIN_EVENT_XHTMLCLEANUP_DESC', 'This plugin corrects common issues with XHTML markup in entries. It assists in keeping your blog XHTML compliant.');
 
 if (!function_exists('html_entity_decode')) {
     function html_entity_decode($given_html, $quote_style = ENT_QUOTES) {
index 4f9b7608993a701cb1212a26f1ffc5be5aad57a0..234934488c2b27d74005952345c68f388c490906 100644 (file)
@@ -1,36 +1,19 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-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)');
-        @define('PLUGIN_COMMENTS_ABOUT', '%s zu%s');
-        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)');
-        @define('PLUGIN_COMMENTS_ABOUT', '%s about%s');
-        break;
-}
+@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)');
+@define('PLUGIN_COMMENTS_ABOUT', '%s about%s');
 
 class serendipity_plugin_comments extends serendipity_plugin
 {
index dd658fabd612150d840f1e45bce103404e43cc4a..d40a6c6fd3d05532ee3f83a538508220e8aa9b80 100644 (file)
@@ -1,25 +1,13 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de': {
-        @define('PLUGIN_SIDEBAR_CREATIVECOMMONS_NAME', 'Creative Commons');
-        @define('PLUGIN_SIDEBAR_CREATIVECOMMONS_DESC', 'Zeigt einen Creative Commons Hinweis an');
-    }
-    break;
-
-    case 'en':
-    default: {
-        @define('PLUGIN_SIDEBAR_CREATIVECOMMONS_NAME', 'Creative Commons');
-        @define('PLUGIN_SIDEBAR_CREATIVECOMMONS_DESC', 'Display a creative commons notification in the sidebar.');
-    }
-    break;
-}
+@define('PLUGIN_SIDEBAR_CREATIVECOMMONS_NAME', 'Creative Commons');
+@define('PLUGIN_SIDEBAR_CREATIVECOMMONS_DESC', 'Display a creative commons notification in the sidebar.');
 
 class serendipity_plugin_creativecommons extends serendipity_plugin {
     var $title = PLUGIN_SIDEBAR_CREATIVECOMMONS_NAME;
index 4bceb84c25406cb8b1f36ad008856340b5bd0120..1d6f21fe66dd011bbbf688d50f583e199600b995 100644 (file)
@@ -1,46 +1,24 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_ENTRYLINKS_NAME', 'Links des Artikels');
-        @define('PLUGIN_ENTRYLINKS_BLAHBLAH', 'Zeigt alle referenzierten Links eines Artikels');
-        @define('PLUGIN_ENTRYLINKS_NEWWIN', 'Links in neuem Fenster öffnen?');
-        @define('PLUGIN_ENTRYLINKS_NEWWIN_BLAHBLAH', 'Sollen die Links in einem neuen Fenster geöffnet werden? (Standard: Nein)');
-        @define('PLUGIN_ENTRYLINKS_REFERERS', 'Eingehende Links');
-        @define('PLUGIN_ENTRYLINKS_WORDWRAP', 'Zeilenumbruch');
-        @define('PLUGIN_ENTRYLINKS_WORDWRAP_BLAHBLAH', 'Nach wievielen Wörtern soll ein Zeilenumbruch eingefügt werden? (Standard: 30)');
-        @define('PLUGIN_ENTRYLINKS_MAXREF', 'Anzahl eingehender Links');
-        @define('PLUGIN_ENTRYLINKS_MAXREF_BLAHBLAH', 'Wieviele eingehende Links sollen höchstens dargestellt werden? (Standard: 15)');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY', 'Reihenfolge eingehender Links');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY_BLAHBLAH', 'Wonach sollen die eingehenden Links geordnet werden? (Standard: Häufigkeit)');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY_DAY', 'Datum');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY_FULLCOUNT', 'Häufigkeit');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_ENTRYLINKS_NAME', 'Entry\'s Links');
-        @define('PLUGIN_ENTRYLINKS_BLAHBLAH', 'Shows all links referrenced in an article');
-        @define('PLUGIN_ENTRYLINKS_NEWWIN', 'Open links in new window?');
-        @define('PLUGIN_ENTRYLINKS_NEWWIN_BLAHBLAH', 'Should the links be opened in a new window? (Default: Current window)');
-        @define('PLUGIN_ENTRYLINKS_REFERERS', 'Referring links');
-        @define('PLUGIN_ENTRYLINKS_WORDWRAP', 'Wordwrap');
-        @define('PLUGIN_ENTRYLINKS_WORDWRAP_BLAHBLAH', 'How many words until a wordwrap will occur? (Default: 30)');
-        @define('PLUGIN_ENTRYLINKS_MAXREF', 'Maximum referring links');
-        @define('PLUGIN_ENTRYLINKS_MAXREF_BLAHBLAH', 'How many referring links should be displayed? (Default: 15)');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY', 'Order of referring links');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY_BLAHBLAH', 'By which key should the referring links be ordered? (Default: number of links)');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY_DAY', 'Date');
-        @define('PLUGIN_ENTRYLINKS_ORDERBY_FULLCOUNT', 'Number of links');
-
-        break;
-}
+@define('PLUGIN_ENTRYLINKS_NAME', 'Entry\'s Links');
+@define('PLUGIN_ENTRYLINKS_BLAHBLAH', 'Shows all links referrenced in an article');
+@define('PLUGIN_ENTRYLINKS_NEWWIN', 'Open links in new window?');
+@define('PLUGIN_ENTRYLINKS_NEWWIN_BLAHBLAH', 'Should the links be opened in a new window? (Default: Current window)');
+@define('PLUGIN_ENTRYLINKS_REFERERS', 'Referring links');
+@define('PLUGIN_ENTRYLINKS_WORDWRAP', 'Wordwrap');
+@define('PLUGIN_ENTRYLINKS_WORDWRAP_BLAHBLAH', 'How many words until a wordwrap will occur? (Default: 30)');
+@define('PLUGIN_ENTRYLINKS_MAXREF', 'Maximum referring links');
+@define('PLUGIN_ENTRYLINKS_MAXREF_BLAHBLAH', 'How many referring links should be displayed? (Default: 15)');
+@define('PLUGIN_ENTRYLINKS_ORDERBY', 'Order of referring links');
+@define('PLUGIN_ENTRYLINKS_ORDERBY_BLAHBLAH', 'By which key should the referring links be ordered? (Default: number of links)');
+@define('PLUGIN_ENTRYLINKS_ORDERBY_DAY', 'Date');
+@define('PLUGIN_ENTRYLINKS_ORDERBY_FULLCOUNT', 'Number of links');
 
 class serendipity_plugin_entrylinks extends serendipity_plugin
 {
index 552916fa8ecbb221a3d4318098c5118150269e44..ba8315ada65ea99bae7c606a319ee3ac57e3b437 100644 (file)
@@ -1,31 +1,16 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 } 
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_EVENT_WRAPPER_NAME', 'Event-Ausgabe Wrapper');
-        @define('PLUGIN_EVENT_WRAPPER_DESC', 'Zeigt die Ausgabedaten eines Event-Plugins an');
-        @define('PLUGIN_EVENT_WRAPPER_PLUGIN', 'Quell Event-Plugin');
-        @define('PLUGIN_EVENT_WRAPPER_PLUGINDESC', 'Wählen Sie das Event-Plugin aus, für das die Ausgabe dargestellt werden soll');
-        @define('PLUGIN_EVENT_WRAPPER_TITLEDESC', 'Geben Sie den Titel für die Sidebar an. Die Eingabe eines leeren Titels zeigt den des Event-Plugins an.');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_EVENT_WRAPPER_NAME', 'Event-Output wrapper');
-        @define('PLUGIN_EVENT_WRAPPER_DESC', 'Displays gathered data by a certain event plugin');
-        @define('PLUGIN_EVENT_WRAPPER_PLUGIN', 'Source event plugin');
-        @define('PLUGIN_EVENT_WRAPPER_PLUGINDESC', 'Select the event plugin for which the output should be displayed');
-        @define('PLUGIN_EVENT_WRAPPER_TITLEDESC', 'Enter the title for this sidebar item (leave empty for inheritance by event plugin)');
-
-        break;
-}
+@define('PLUGIN_EVENT_WRAPPER_NAME', 'Event-Output wrapper');
+@define('PLUGIN_EVENT_WRAPPER_DESC', 'Displays gathered data by a certain event plugin');
+@define('PLUGIN_EVENT_WRAPPER_PLUGIN', 'Source event plugin');
+@define('PLUGIN_EVENT_WRAPPER_PLUGINDESC', 'Select the event plugin for which the output should be displayed');
+@define('PLUGIN_EVENT_WRAPPER_TITLEDESC', 'Enter the title for this sidebar item (leave empty for inheritance by event plugin)');
 
 class serendipity_plugin_eventwrapper extends serendipity_plugin
 {
index 804b7b95247eca3aaa74e066225b64d47a89fded..3de02fcb4110674d0e0d02e560c9c9e4f45d6562 100644 (file)
@@ -1,65 +1,35 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_HISTORY_NAME', 'Geschichte');
-        @define('PLUGIN_HISTORY_DESC', 'Zeigt Einträge eines einstellbaren Alters an.');
-        @define('PLUGIN_HISTORY_MIN_AGE', 'Mindestalter');
-        @define('PLUGIN_HISTORY_MIN_AGE_DESC', 'Mindestalter der Einträge (in Tagen).');
-        @define('PLUGIN_HISTORY_MAX_AGE', 'Höchstalter');
-        @define('PLUGIN_HISTORY_MAX_AGE_DESC','Höchstalter der Einträge (in Tagen).');
-        @define('PLUGIN_HISTORY_MAX_ENTRIES', 'Anzahl');
-        @define('PLUGIN_HISTORY_MAX_ENTRIES_DESC', 'Wieviele Einträge sollen maximal angezeigt werden?');
-        @define('PLUGIN_HISTORY_SHOWFULL', 'Ganze Einträge');
-        @define('PLUGIN_HISTORY_SHOWFULL_DESC', 'Nicht nur Überschriften, sondern ganze Einträge anzeigen.');
-        @define('PLUGIN_HISTORY_INTRO', 'Intro');
-        @define('PLUGIN_HISTORY_INTRO_DESC', 'Text, der vor den Einträgen angezeigt werden soll');
-        @define('PLUGIN_HISTORY_OUTRO', 'Outro');
-        @define('PLUGIN_HISTORY_OUTRO_DESC', 'Text, der hinter den Einträgen angezeigt werden soll');
-        @define('PLUGIN_HISTORY_DISPLAYDATE', 'Datum anzeigen');
-        @define('PLUGIN_HISTORY_DISPLAYDATE_DESC', 'Vor jedem Eintrag das Datum anzeigen?');
-        @define('PLUGIN_HISTORY_MAXLENGTH', 'Überschriftenlänge');
-        @define('PLUGIN_HISTORY_MAXLENGTH_DESC', 'Nach wievielen Zeichen sollen die Überschriften abgeschnitten werden (0 für garnicht)?');
-        @define('PLUGIN_HISTORY_SPECIALAGE', 'Vorgefertigter Zeitrahmen');
-        @define('PLUGIN_HISTORY_SPECIALAGE_DESC', 'Wenn Sie statt einem vorgefertigten lieber einen eigenen Zeitraum einstellen möchten, wählen Sie \'Anderer\' aus und füllen die unteren beiden Felder.');
-        @define('PLUGIN_HISTORY_SPECIALAGE_YEAR', 'Zeigt Einträge vom selben Datum des letzten Jahres an.');
-        @define('PLUGIN_HISTORY_CUSTOMAGE', 'Zeitrahmen selbst einstellen');
-        @define('PLUGIN_HISTORY_OYA', 'Heute vor einem Jahr');
-        @define('PLUGIN_HISTORY_MYSELF', 'Anderer');
-    break;
-    default:
-        @define('PLUGIN_HISTORY_NAME', 'History');
-        @define('PLUGIN_HISTORY_DESC', 'Displays ancient entries of an adjustable age.');
-        @define('PLUGIN_HISTORY_MIN_AGE', 'Min age');
-        @define('PLUGIN_HISTORY_MIN_AGE_DESC', 'Minimum age of entries (in days).');
-        @define('PLUGIN_HISTORY_MAX_AGE', 'Max age');
-        @define('PLUGIN_HISTORY_MAX_AGE_DESC','Maximum age of entries (in days).');
-        @define('PLUGIN_HISTORY_MAX_ENTRIES', 'Maximum entries');
-        @define('PLUGIN_HISTORY_MAX_ENTRIES_DESC', 'Number of entries to display');
-        @define('PLUGIN_HISTORY_SHOWFULL', 'Full entries');
-        @define('PLUGIN_HISTORY_SHOWFULL_DESC', 'Display full entries instead of linked headlines.');
-        @define('PLUGIN_HISTORY_INTRO', 'Intro');
-        @define('PLUGIN_HISTORY_INTRO_DESC', 'A short intro like \'One year ago I said:\'.');
-        @define('PLUGIN_HISTORY_OUTRO', 'Outro');
-        @define('PLUGIN_HISTORY_OUTRO_DESC', 'A short Outro like \'Nice, eh?\'.');
-        @define('PLUGIN_HISTORY_DISPLAYDATE', 'Display date');
-        @define('PLUGIN_HISTORY_DISPLAYDATE_DESC', 'Display the date of each entry?');
-        @define('PLUGIN_HISTORY_MAXLENGTH', 'Title-Length');
-        @define('PLUGIN_HISTORY_MAXLENGTH_DESC', 'After how many characters to cut the titles (0 for full titles)?');
-        @define('PLUGIN_HISTORY_SPECIALAGE', 'Ready-made age?');
-        @define('PLUGIN_HISTORY_SPECIALAGE_DESC', 'If you want to define your own timerange instead of a ready-made, select \'I\'ll define one\' here and adjust the two settings below.');
-        @define('PLUGIN_HISTORY_SPECIALAGE_YEAR', 'Display items of exactly one year ago');
-        @define('PLUGIN_HISTORY_CUSTOMAGE', 'Let me define the age');
-        @define('PLUGIN_HISTORY_OYA', 'One year ago');
-        @define('PLUGIN_HISTORY_MYSELF', 'I\'ll define one');
-    break;
-}
+@define('PLUGIN_HISTORY_NAME', 'History');
+@define('PLUGIN_HISTORY_DESC', 'Displays ancient entries of an adjustable age.');
+@define('PLUGIN_HISTORY_MIN_AGE', 'Min age');
+@define('PLUGIN_HISTORY_MIN_AGE_DESC', 'Minimum age of entries (in days).');
+@define('PLUGIN_HISTORY_MAX_AGE', 'Max age');
+@define('PLUGIN_HISTORY_MAX_AGE_DESC','Maximum age of entries (in days).');
+@define('PLUGIN_HISTORY_MAX_ENTRIES', 'Maximum entries');
+@define('PLUGIN_HISTORY_MAX_ENTRIES_DESC', 'Number of entries to display');
+@define('PLUGIN_HISTORY_SHOWFULL', 'Full entries');
+@define('PLUGIN_HISTORY_SHOWFULL_DESC', 'Display full entries instead of linked headlines.');
+@define('PLUGIN_HISTORY_INTRO', 'Intro');
+@define('PLUGIN_HISTORY_INTRO_DESC', 'A short intro like \'One year ago I said:\'.');
+@define('PLUGIN_HISTORY_OUTRO', 'Outro');
+@define('PLUGIN_HISTORY_OUTRO_DESC', 'A short Outro like \'Nice, eh?\'.');
+@define('PLUGIN_HISTORY_DISPLAYDATE', 'Display date');
+@define('PLUGIN_HISTORY_DISPLAYDATE_DESC', 'Display the date of each entry?');
+@define('PLUGIN_HISTORY_MAXLENGTH', 'Title-Length');
+@define('PLUGIN_HISTORY_MAXLENGTH_DESC', 'After how many characters to cut the titles (0 for full titles)?');
+@define('PLUGIN_HISTORY_SPECIALAGE', 'Ready-made age?');
+@define('PLUGIN_HISTORY_SPECIALAGE_DESC', 'If you want to define your own timerange instead of a ready-made, select \'I\'ll define one\' here and adjust the two settings below.');
+@define('PLUGIN_HISTORY_SPECIALAGE_YEAR', 'Display items of exactly one year ago');
+@define('PLUGIN_HISTORY_CUSTOMAGE', 'Let me define the age');
+@define('PLUGIN_HISTORY_OYA', 'One year ago');
+@define('PLUGIN_HISTORY_MYSELF', 'I\'ll define one');
 
 class serendipity_plugin_history extends serendipity_plugin
 {
index 9af108f49a6d9860bc2eba3a0aa62eb593a50d59..53faaefdec7f3d5213f24a7ffeed8c4024857981 100644 (file)
@@ -3,36 +3,19 @@
 // Contributed by Christian Machmeier <cm@redsplash.de>
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-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)');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM', 'Angezeigte Einträge überspringen');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM_DESC', 'Nur die neuesten Einträge, die nicht schon auf der Hauptseite zu sehen sind, werden angezeigt. (Default: die neuesten ' . $serendipity['fetchLimit'] . ' werden übersprungen)');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM_RADIO_ALL', 'Alle anzeigen');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM_RADIO_RECENT', 'Einträge auf der Hauptseite überspringen');
-        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)');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM', 'Skip front page entries');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM_DESC', 'Only recent entries that are not on the front page will be shown. (Default: latest ' . $serendipity['fetchLimit'] . ' will be skipped)');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM_RADIO_ALL', 'Show all');
-        @define('PLUGIN_RECENTENTRIES_NUMBER_FROM_RADIO_RECENT', 'Skip front page items');
-        break;
-}
+@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)');
+@define('PLUGIN_RECENTENTRIES_NUMBER_FROM', 'Skip front page entries');
+@define('PLUGIN_RECENTENTRIES_NUMBER_FROM_DESC', 'Only recent entries that are not on the front page will be shown. (Default: latest ' . $serendipity['fetchLimit'] . ' will be skipped)');
+@define('PLUGIN_RECENTENTRIES_NUMBER_FROM_RADIO_ALL', 'Show all');
+@define('PLUGIN_RECENTENTRIES_NUMBER_FROM_RADIO_RECENT', 'Skip front page items');
 
 class serendipity_plugin_recententries extends serendipity_plugin {
     var $title = PLUGIN_RECENTENTRIES_TITLE;
index c30d82fa21370a79ac8666831e70cc0d3b248677..e0fdbb5aac2bbb4534ba5dc473360055d30eecad 100644 (file)
@@ -4,60 +4,30 @@
 // OPML Contributed by Richard Thomas Harrison <rich@mibnet.plus.com>
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_REMOTERSS_TITLE', 'Fremder RSS/OPML-Blogroll Feed');
-        @define('PLUGIN_REMOTERSS_BLAHBLAH', 'Zeigt Einträge eines externen RSS/OPML-Feeds an (z.B. Blogroll)');
-        @define('PLUGIN_REMOTERSS_NUMBER', 'Anzahl der Einträge');
-        @define('PLUGIN_REMOTERSS_NUMBER_BLAHBLAH', 'Wieviele Einträge sollen angezeigt werden? (Standard: alle im Feed)');
-        @define('PLUGIN_REMOTERSS_SIDEBARTITLE', 'Feed-Titel');
-        @define('PLUGIN_REMOTERSS_SIDEBARTITLE_BLAHBLAH', 'Titel der Feed-Anzeige in der Sidebar des Blogs');
-        @define('PLUGIN_REMOTERSS_RSSURI', 'RSS/OPML-URI');
-        @define('PLUGIN_REMOTERSS_RSSURI_BLAHBLAH', 'URI des RSS/OPML-Feeds, der angezeigt werden soll');
-        @define('PLUGIN_REMOTERSS_RSSTARGET', 'Link-Target');
-        @define('PLUGIN_REMOTERSS_RSSTARGET_BLAHBLAH', 'Target des Links zu einem der angezeigten RSS-Einträge (Standard: _blank)');
-        @define('PLUGIN_REMOTERSS_NOURI', 'Kein RSS/OPML-Feed gewählt');
-        @define('PLUGIN_REMOTERSS_CACHETIME', 'Wann wird der Feed aktualisiert?');
-        @define('PLUGIN_REMOTERSS_CACHETIME_BLAHBLAH', 'Die Inhalte des fremden Feeds werden gecached. Sobald der Cache älter ist als X Sekunden wird er aktualisiert (Standard: 3 Stunden)');
-        @define('PLUGIN_REMOTERSS_FEEDTYPE', 'Typ des Feeds');
-        @define('PLUGIN_REMOTERSS_FEEDTYPE_BLAHBLAH', 'Wählen Sie das Format des einzubindenden Feeds');
-        @define('PLUGIN_REMOTERSS_BULLETIMG', 'Bullet Image');
-        @define('PLUGIN_REMOTERSS_BULLETIMG_BLAHBLAH', 'Image to display before each headline.');
-        @define('PLUGIN_REMOTERSS_DISPLAYDATE', 'Display Date');
-        @define('PLUGIN_REMOTERSS_DISPLAYDATE_BLAHBLAH', 'Display the date below the headline?');
-
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_REMOTERSS_TITLE', 'Remote RSS/OPML-Blogroll Feed');
-        @define('PLUGIN_REMOTERSS_BLAHBLAH', 'Show items of a remote RSS/OPML feed (e.g. Blogroll)');
-        @define('PLUGIN_REMOTERSS_NUMBER', 'Number of entries');
-        @define('PLUGIN_REMOTERSS_NUMBER_BLAHBLAH', 'How many entries should be displayed? (Default: every entry of the feed)');
-        @define('PLUGIN_REMOTERSS_SIDEBARTITLE', 'Feed-Title');
-        @define('PLUGIN_REMOTERSS_SIDEBARTITLE_BLAHBLAH', 'Title of the feed in the blog sidebar');
-        @define('PLUGIN_REMOTERSS_RSSURI', 'RSS/OPML URI');
-        @define('PLUGIN_REMOTERSS_RSSURI_BLAHBLAH', 'URI of the RSS/OPML feed which you want to display');
-        @define('PLUGIN_REMOTERSS_NOURI', 'No RSS/OPML feed selected');
-        @define('PLUGIN_REMOTERSS_RSSTARGET', 'RSS/OPML linktarget');
-        @define('PLUGIN_REMOTERSS_RSSTARGET_BLAHBLAH', 'Target of the link to one of the displayed RSS items (Default: _blank)');
-        @define('PLUGIN_REMOTERSS_CACHETIME', 'When to update the feed?');
-        @define('PLUGIN_REMOTERSS_CACHETIME_BLAHBLAH', 'The contents of a feed are stored in a cache which will be updated as soon as its older than X seconds (Default: 3 hours)');
-        @define('PLUGIN_REMOTERSS_FEEDTYPE', 'Feedtype');
-        @define('PLUGIN_REMOTERSS_FEEDTYPE_BLAHBLAH', 'Choose the format of the remote Feed');
-        @define('PLUGIN_REMOTERSS_BULLETIMG', 'Bullet Image');
-        @define('PLUGIN_REMOTERSS_BULLETIMG_BLAHBLAH', 'Image to display before each headline.');
-        @define('PLUGIN_REMOTERSS_DISPLAYDATE', 'Display Date');
-        @define('PLUGIN_REMOTERSS_DISPLAYDATE_BLAHBLAH', 'Display the date below the headline?');
-
-        break;
-}
+@define('PLUGIN_REMOTERSS_TITLE', 'Remote RSS/OPML-Blogroll Feed');
+@define('PLUGIN_REMOTERSS_BLAHBLAH', 'Show items of a remote RSS/OPML feed (e.g. Blogroll)');
+@define('PLUGIN_REMOTERSS_NUMBER', 'Number of entries');
+@define('PLUGIN_REMOTERSS_NUMBER_BLAHBLAH', 'How many entries should be displayed? (Default: every entry of the feed)');
+@define('PLUGIN_REMOTERSS_SIDEBARTITLE', 'Feed-Title');
+@define('PLUGIN_REMOTERSS_SIDEBARTITLE_BLAHBLAH', 'Title of the feed in the blog sidebar');
+@define('PLUGIN_REMOTERSS_RSSURI', 'RSS/OPML URI');
+@define('PLUGIN_REMOTERSS_RSSURI_BLAHBLAH', 'URI of the RSS/OPML feed which you want to display');
+@define('PLUGIN_REMOTERSS_NOURI', 'No RSS/OPML feed selected');
+@define('PLUGIN_REMOTERSS_RSSTARGET', 'RSS/OPML linktarget');
+@define('PLUGIN_REMOTERSS_RSSTARGET_BLAHBLAH', 'Target of the link to one of the displayed RSS items (Default: _blank)');
+@define('PLUGIN_REMOTERSS_CACHETIME', 'When to update the feed?');
+@define('PLUGIN_REMOTERSS_CACHETIME_BLAHBLAH', 'The contents of a feed are stored in a cache which will be updated as soon as its older than X seconds (Default: 3 hours)');
+@define('PLUGIN_REMOTERSS_FEEDTYPE', 'Feedtype');
+@define('PLUGIN_REMOTERSS_FEEDTYPE_BLAHBLAH', 'Choose the format of the remote Feed');
+@define('PLUGIN_REMOTERSS_BULLETIMG', 'Bullet Image');
+@define('PLUGIN_REMOTERSS_BULLETIMG_BLAHBLAH', 'Image to display before each headline.');
+@define('PLUGIN_REMOTERSS_DISPLAYDATE', 'Display Date');
+@define('PLUGIN_REMOTERSS_DISPLAYDATE_BLAHBLAH', 'Display the date below the headline?');
 
 class s9y_remoterss_XMLTree {
     function GetChildren($vals, &$i) {
index b7f911a62ce25a947ac8cea391ae831ab6f94787..696b060339441310c797ca75c44fa274e6aa0001 100644 (file)
@@ -3,40 +3,21 @@
 /* Contributed by Matthias Lange (http://blog.dinnri.de/ml/) */
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_SHOUTBOX_NAME', 'Shoutbox');
-        @define('PLUGIN_SHOUTBOX_BLAHBLAH', 'Zeigt eine Shoutbox für beliebige Kommentare');
-        @define('PLUGIN_SHOUTBOX_DELETE', 'Löschen');
-        @define('PLUGIN_SHOUTBOX_SUBMIT', 'Abschicken');
-        @define('PLUGIN_SHOUTBOX_WORDWRAP', 'Zeilenumbruch');
-        @define('PLUGIN_SHOUTBOX_WORDWRAP_BLAHBLAH', 'Nach wievielen Zeichen soll ein Zeilenumbruch eingefügt werden?');
-        @define('PLUGIN_SHOUTBOX_MAXCHARS', 'Zeichen pro Kommentar');
-        @define('PLUGIN_SHOUTBOX_MAXCHARS_BLAHBLAH', 'Wieviele Zeichen sollen pro Kommentar gezeigt werden? (Standard: 120)');
-        @define('PLUGIN_SHOUTBOX_MAXENTRIES', 'Anzahl an Kommentaren');
-        @define('PLUGIN_SHOUTBOX_MAXENTRIES_BLAHBLAH', 'Wieviele Kommentare sollen gezeigt werden? (Standard: 15)');
-        break;
-
-    case 'en':
-    case 'es':
-    default:
-        @define('PLUGIN_SHOUTBOX_NAME', 'Shoutbox');
-        @define('PLUGIN_SHOUTBOX_DELETE', 'Delete');
-        @define('PLUGIN_SHOUTBOX_SUBMIT', 'Shout it out');
-        @define('PLUGIN_SHOUTBOX_BLAHBLAH', 'Displays a shoutbox for unrelated comments');
-        @define('PLUGIN_SHOUTBOX_WORDWRAP', 'Wordwrap');
-        @define('PLUGIN_SHOUTBOX_WORDWRAP_BLAHBLAH', 'How many chars until a wordwrap will occur? (Default: 30)');
-        @define('PLUGIN_SHOUTBOX_MAXCHARS', 'Maximum chars per comment');
-        @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;
-}
+@define('PLUGIN_SHOUTBOX_NAME', 'Shoutbox');
+@define('PLUGIN_SHOUTBOX_DELETE', 'Delete');
+@define('PLUGIN_SHOUTBOX_SUBMIT', 'Shout it out');
+@define('PLUGIN_SHOUTBOX_BLAHBLAH', 'Displays a shoutbox for unrelated comments');
+@define('PLUGIN_SHOUTBOX_WORDWRAP', 'Wordwrap');
+@define('PLUGIN_SHOUTBOX_WORDWRAP_BLAHBLAH', 'How many chars until a wordwrap will occur? (Default: 30)');
+@define('PLUGIN_SHOUTBOX_MAXCHARS', 'Maximum chars per comment');
+@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)');
 
 class serendipity_plugin_shoutbox extends serendipity_plugin
 {
index bf79e4b4c6a70bd547dcb4943f1dda2248c575a1..ddbf3e67a22a617a9406d636f2e382119c80fd04 100644 (file)
@@ -1,27 +1,15 @@
 <?php # $Id$
 
 // Probe for a language include with constants. Still include defines later on, if some constants were missing
-$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
 if (file_exists($probelang)) {
     include $probelang;
 }
 
-switch ($serendipity['lang']) {
-    case 'de':
-        @define('PLUGIN_TEMPLATEDROPDOWN_NAME',     'Template dropdown');
-        @define('PLUGIN_TEMPLATEDROPDOWN_DESC',     'Zeigt eine Box um Templates zu ändern');
-        @define('PLUGIN_TEMPLATEDROPDOWN_SUBMIT',   'Submit-Button?');
-        @define('PLUGIN_TEMPLATEDROPDOWN_SUBMIT_DESC',   'Einen Submit-Button anzeigen?');
-        break;
-
-    case 'en':
-    default:
-        @define('PLUGIN_TEMPLATEDROPDOWN_NAME',     'Template dropdown');
-        @define('PLUGIN_TEMPLATEDROPDOWN_DESC',     'Show a box to change templates');
-        @define('PLUGIN_TEMPLATEDROPDOWN_SUBMIT',   'Submit button?');
-        @define('PLUGIN_TEMPLATEDROPDOWN_SUBMIT_DESC',   'Show a submit button?');
-        break;
-}
+@define('PLUGIN_TEMPLATEDROPDOWN_NAME',     'Template dropdown');
+@define('PLUGIN_TEMPLATEDROPDOWN_DESC',     'Show a box to change templates');
+@define('PLUGIN_TEMPLATEDROPDOWN_SUBMIT',   'Submit button?');
+@define('PLUGIN_TEMPLATEDROPDOWN_SUBMIT_DESC',   'Show a submit button?');
 
 class serendipity_plugin_templatedropdown extends serendipity_plugin {
     var $title = PLUGIN_TEMPLATEDROPDOWN_NAME;