From 823d3449e0e664f1fc34782b7d831524879b15f6 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 1 Aug 2005 17:35:25 +0000 Subject: [PATCH] UTF-8 for everybody. If they like. ;) --- .../serendipity_event_bbcode.php | 19 +- ...serendipity_event_browsercompatibility.php | 17 +- .../serendipity_event_contentrewrite.php | 65 ++---- .../serendipity_event_creativecommons.php | 49 ++--- .../serendipity_event_emoticate.php | 19 +- .../serendipity_event_htmlvalidator.php | 35 +-- .../serendipity_event_karma.php | 136 ++++-------- .../serendipity_event_livesearch.php | 21 +- .../serendipity_event_mailer.php | 41 +--- .../serendipity_event_nl2br.php | 16 +- .../serendipity_event_s9ymarkup.php | 19 +- .../serendipity_event_searchhighlight.php | 15 +- .../serendipity_event_spamblock.php | 207 ++++++------------ .../serendipity_event_spartacus.php | 43 +--- .../{lang_cz.php => lang_cz.inc.php} | 0 .../serendipity_event_statistics.php | 160 +++++--------- .../serendipity_event_templatechooser.php | 16 +- .../serendipity_event_textile.php | 19 +- .../serendipity_event_textwiki.php | 20 +- .../serendipity_event_trackexits.php | 31 +-- .../serendipity_event_weblogping.php | 36 +-- .../serendipity_event_xhtmlcleanup.php | 16 +- .../serendipity_plugin_comments.php | 35 +-- .../serendipity_plugin_creativecommons.php | 18 +- .../serendipity_plugin_entrylinks.php | 50 ++--- .../serendipity_plugin_eventwrapper.php | 27 +-- .../serendipity_plugin_history.php | 80 +++---- .../serendipity_plugin_recententries.php | 35 +-- .../serendipity_plugin_remoterss.php | 70 ++---- .../serendipity_plugin_shoutbox.php | 41 +--- .../serendipity_plugin_templatedropdown.php | 22 +- 31 files changed, 383 insertions(+), 995 deletions(-) rename plugins/serendipity_event_statistics/{lang_cz.php => lang_cz.inc.php} (100%) diff --git a/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php b/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php index 8143afa..af245c9 100644 --- a/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php +++ b/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php @@ -1,25 +1,14 @@ BBCode-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', 'BBCode format allowed'); - break; -} +@define('PLUGIN_EVENT_BBCODE_NAME', 'Markup: BBCode'); +@define('PLUGIN_EVENT_BBCODE_DESC', 'Markup text using BBCode'); +@define('PLUGIN_EVENT_BBCODE_TRANSFORM', 'BBCode format allowed'); class serendipity_event_bbcode extends serendipity_event { diff --git a/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php b/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php index 188030b..3ab3ee8 100644 --- a/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php +++ b/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php @@ -1,24 +1,13 @@ {ziel}'); - @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: {from}'); - @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: {from}'); +@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 { diff --git a/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php b/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php index 64ad85b..7d88331 100644 --- a/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php +++ b/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php @@ -1,45 +1,24 @@ Creative Commons Lizenz'); - @define('PLUGIN_CREATIVECOMMONS_CAP_PD', 'Der Inhalt dieses Werkes ist als Public Domain 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 Creative Commons License'); - @define('PLUGIN_CREATIVECOMMONS_CAP_PD', 'Original content in this work is dedicated to the Public Domain'); - // @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 Creative Commons License'); +@define('PLUGIN_CREATIVECOMMONS_CAP_PD', 'Original content in this work is dedicated to the Public Domain'); +// @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; diff --git a/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php b/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php index 63d6606..80d50fc 100644 --- a/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php +++ b/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php @@ -1,25 +1,14 @@ Textile-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', 'Textile-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', 'Textile-formatting allowed'); class serendipity_event_textile extends serendipity_event { diff --git a/plugins/serendipity_event_textwiki/serendipity_event_textwiki.php b/plugins/serendipity_event_textwiki/serendipity_event_textwiki.php index 82e32b5..dcf2e90 100644 --- a/plugins/serendipity_event_textwiki/serendipity_event_textwiki.php +++ b/plugins/serendipity_event_textwiki/serendipity_event_textwiki.php @@ -1,26 +1,14 @@ Wiki-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', 'Wiki 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', 'Wiki format allowed'); // Currently only english available diff --git a/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php b/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php index f81db13..361f026 100644 --- a/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php +++ b/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php @@ -1,33 +1,18 @@ // 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; diff --git a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php index c30d82f..e0fdbb5 100644 --- a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php +++ b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php @@ -4,60 +4,30 @@ // OPML Contributed by Richard Thomas Harrison // 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) { diff --git a/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php b/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php index b7f911a..696b060 100644 --- a/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php +++ b/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php @@ -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 { diff --git a/plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php b/plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php index bf79e4b..ddbf3e6 100644 --- a/plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php +++ b/plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php @@ -1,27 +1,15 @@