From: elf2000 Date: Sat, 12 Nov 2005 18:19:05 +0000 (+0000) Subject: o split message catalog to lang_en.inc.php. X-Git-Tag: 1.0~303 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9ae83b8bccb7931a7125f170d7075a693132ad1e;p=s9y.git o split message catalog to lang_en.inc.php. --- diff --git a/plugins/serendipity_event_bbcode/lang_en.inc.php b/plugins/serendipity_event_bbcode/lang_en.inc.php new file mode 100644 index 0000000..fdc9412 --- /dev/null +++ b/plugins/serendipity_event_bbcode/lang_en.inc.php @@ -0,0 +1,7 @@ +BBCode format allowed'); + +?> diff --git a/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php b/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php index 4c366c7..c3334db 100644 --- a/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php +++ b/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php @@ -6,9 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@define('PLUGIN_EVENT_BBCODE_NAME', 'Markup: BBCode'); -@define('PLUGIN_EVENT_BBCODE_DESC', 'Markup text using BBCode'); -@define('PLUGIN_EVENT_BBCODE_TRANSFORM', 'BBCode format allowed'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_bbcode extends serendipity_event { diff --git a/plugins/serendipity_event_browsercompatibility/lang_en.inc.php b/plugins/serendipity_event_browsercompatibility/lang_en.inc.php new file mode 100644 index 0000000..6ef171b --- /dev/null +++ b/plugins/serendipity_event_browsercompatibility/lang_en.inc.php @@ -0,0 +1,6 @@ + diff --git a/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php b/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php index 3ab3ee8..47a512b 100644 --- a/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php +++ b/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php @@ -6,8 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser Compatibility'); -@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Uses different (CSS) methods to enforce maximum browser compatibility'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_browsercompatibility extends serendipity_event { diff --git a/plugins/serendipity_event_contentrewrite/lang_en.inc.php b/plugins/serendipity_event_contentrewrite/lang_en.inc.php new file mode 100644 index 0000000..dd2ed7f --- /dev/null +++ b/plugins/serendipity_event_contentrewrite/lang_en.inc.php @@ -0,0 +1,22 @@ +{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.'); + +?> diff --git a/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php b/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php index 307aff4..9db6f4c 100644 --- a/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php +++ b/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php @@ -6,24 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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.'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_contentrewrite extends serendipity_event { diff --git a/plugins/serendipity_event_creativecommons/lang_en.inc.php b/plugins/serendipity_event_creativecommons/lang_en.inc.php new file mode 100644 index 0000000..4da80e9 --- /dev/null +++ b/plugins/serendipity_event_creativecommons/lang_en.inc.php @@ -0,0 +1,17 @@ +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'); + +?> diff --git a/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php b/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php index 1a3ceca..257db0a 100644 --- a/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php +++ b/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php @@ -6,19 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_creativecommons extends serendipity_event { var $title = PLUGIN_CREATIVECOMMONS_NAME; diff --git a/plugins/serendipity_event_htmlvalidator/lang_en.inc.php b/plugins/serendipity_event_htmlvalidator/lang_en.inc.php new file mode 100644 index 0000000..be085ed --- /dev/null +++ b/plugins/serendipity_event_htmlvalidator/lang_en.inc.php @@ -0,0 +1,12 @@ + diff --git a/plugins/serendipity_event_htmlvalidator/serendipity_event_htmlvalidator.php b/plugins/serendipity_event_htmlvalidator/serendipity_event_htmlvalidator.php index 26dbc01..0d376fd 100644 --- a/plugins/serendipity_event_htmlvalidator/serendipity_event_htmlvalidator.php +++ b/plugins/serendipity_event_htmlvalidator/serendipity_event_htmlvalidator.php @@ -6,14 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_htmlvalidator extends serendipity_event { diff --git a/plugins/serendipity_event_karma/lang_en.inc.php b/plugins/serendipity_event_karma/lang_en.inc.php new file mode 100644 index 0000000..1a17a46 --- /dev/null +++ b/plugins/serendipity_event_karma/lang_en.inc.php @@ -0,0 +1,44 @@ + diff --git a/plugins/serendipity_event_karma/serendipity_event_karma.php b/plugins/serendipity_event_karma/serendipity_event_karma.php index 0309b18..6ce374d 100644 --- a/plugins/serendipity_event_karma/serendipity_event_karma.php +++ b/plugins/serendipity_event_karma/serendipity_event_karma.php @@ -6,48 +6,9 @@ if (file_exists($probelang)) { include $probelang; } -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; +@define('PLUGIN_KARMA_VERSION', '1.3'); class serendipity_event_karma extends serendipity_event { diff --git a/plugins/serendipity_event_livesearch/lang_en.inc.php b/plugins/serendipity_event_livesearch/lang_en.inc.php new file mode 100644 index 0000000..e533649 --- /dev/null +++ b/plugins/serendipity_event_livesearch/lang_en.inc.php @@ -0,0 +1,7 @@ + diff --git a/plugins/serendipity_event_livesearch/serendipity_event_livesearch.php b/plugins/serendipity_event_livesearch/serendipity_event_livesearch.php index 9ab1547..f866e9c 100644 --- a/plugins/serendipity_event_livesearch/serendipity_event_livesearch.php +++ b/plugins/serendipity_event_livesearch/serendipity_event_livesearch.php @@ -6,9 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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...'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_livesearch extends serendipity_event { diff --git a/plugins/serendipity_event_mailer/lang_en.inc.php b/plugins/serendipity_event_mailer/lang_en.inc.php new file mode 100644 index 0000000..830143e --- /dev/null +++ b/plugins/serendipity_event_mailer/lang_en.inc.php @@ -0,0 +1,14 @@ + diff --git a/plugins/serendipity_event_mailer/serendipity_event_mailer.php b/plugins/serendipity_event_mailer/serendipity_event_mailer.php index 464e5fd..7673eb7 100644 --- a/plugins/serendipity_event_mailer/serendipity_event_mailer.php +++ b/plugins/serendipity_event_mailer/serendipity_event_mailer.php @@ -6,16 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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.'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_mailer extends serendipity_event { diff --git a/plugins/serendipity_event_nl2br/lang_en.inc.php b/plugins/serendipity_event_nl2br/lang_en.inc.php new file mode 100644 index 0000000..aae2476 --- /dev/null +++ b/plugins/serendipity_event_nl2br/lang_en.inc.php @@ -0,0 +1,6 @@ + diff --git a/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php b/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php index 035c8c4..f38e720 100644 --- a/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php +++ b/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php @@ -6,8 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); -@define('PLUGIN_EVENT_NL2BR_DESC', 'Convert newlines to BR tags'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_nl2br extends serendipity_event { diff --git a/plugins/serendipity_event_s9ymarkup/lang_en.inc.php b/plugins/serendipity_event_s9ymarkup/lang_en.inc.php new file mode 100644 index 0000000..c74805b --- /dev/null +++ b/plugins/serendipity_event_s9ymarkup/lang_en.inc.php @@ -0,0 +1,7 @@ + diff --git a/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php b/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php index 2ad8ce0..81dbd5e 100644 --- a/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php +++ b/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php @@ -6,9 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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_.'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_s9ymarkup extends serendipity_event { diff --git a/plugins/serendipity_event_searchhighlight/lang_en.inc.php b/plugins/serendipity_event_searchhighlight/lang_en.inc.php new file mode 100644 index 0000000..9a67398 --- /dev/null +++ b/plugins/serendipity_event_searchhighlight/lang_en.inc.php @@ -0,0 +1,6 @@ + diff --git a/plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php b/plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php index e17bb46..5adb101 100644 --- a/plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php +++ b/plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php @@ -8,10 +8,9 @@ $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php'; if (file_exists($probelang)) { include $probelang; -} +} -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_searchhighlight extends serendipity_event { diff --git a/plugins/serendipity_event_spartacus/lang_en.inc.php b/plugins/serendipity_event_spartacus/lang_en.inc.php new file mode 100644 index 0000000..7e69901 --- /dev/null +++ b/plugins/serendipity_event_spartacus/lang_en.inc.php @@ -0,0 +1,21 @@ + diff --git a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php index 2aa7d19..20e3591 100644 --- a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php +++ b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php @@ -14,23 +14,7 @@ if (file_exists($probelang)) { include $probelang; } -@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.'); -@define('PLUGIN_EVENT_SPARTACUS_CHOWN', 'Owner of downloaded files'); -@define('PLUGIN_EVENT_SPARTACUS_CHOWN_DESC', 'Here you can enter the (FTP/Shell) owner (like "nobody") of files downloaded by Spartacus. If empty, no changes are made to the ownership.'); -@define('PLUGIN_EVENT_SPARTACUS_CHMOD', 'Permissions downloaded files'); -@define('PLUGIN_EVENT_SPARTACUS_CHMOD_DESC', 'Here you can enter the octal mode (like "0777") of the file permissions for files (FTP/Shell) downloaded by Spartacus. If empty, the default permission mask of the system are used. Note that not all servers allow changing/setting permissions. Pay attention that the applied permissions allow reading and writing for the webserver user. Else spartacus/Serendipity cannot overwrite existing files.'); -@define('PLUGIN_EVENT_SPARTACUS_CHMOD_DIR', 'Permissions downloaded directories'); -@define('PLUGIN_EVENT_SPARTACUS_CHMOD_DIR_DESC', 'Here you can enter the octal mode (like "0777") of the directory permissions for directories (FTP/Shell) downloaded by Spartacus. If empty, the default permission mask of the system are used. Note that not all servers allow changing/setting permissions. Pay attention that the applied permissions allow reading and writing for the webserver user. Else spartacus/Serendipity cannot overwrite existing directories.'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_spartacus extends serendipity_event { diff --git a/plugins/serendipity_event_templatechooser/lang_en.inc.php b/plugins/serendipity_event_templatechooser/lang_en.inc.php new file mode 100644 index 0000000..447b7e7 --- /dev/null +++ b/plugins/serendipity_event_templatechooser/lang_en.inc.php @@ -0,0 +1,6 @@ + diff --git a/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php b/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php index a108476..136b04f 100644 --- a/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php +++ b/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php @@ -6,8 +6,8 @@ if (file_exists($probelang)) { include $probelang; } -@define('PLUGIN_EVENT_TEMPLATECHOOSER_NAME', 'Template chooser'); -@define('PLUGIN_EVENT_TEMPLATECHOOSER_DESC', 'Allows your visitors to change template on the fly'); +include dirname(__FILE__) . '/lang_en.inc.php'; + class serendipity_event_templatechooser extends serendipity_event { diff --git a/plugins/serendipity_event_textile/lang_en.inc.php b/plugins/serendipity_event_textile/lang_en.inc.php new file mode 100644 index 0000000..085e209 --- /dev/null +++ b/plugins/serendipity_event_textile/lang_en.inc.php @@ -0,0 +1,7 @@ +Textile-formatting allowed'); + +?> diff --git a/plugins/serendipity_event_textile/serendipity_event_textile.php b/plugins/serendipity_event_textile/serendipity_event_textile.php index 383ef0e..4ad861d 100644 --- a/plugins/serendipity_event_textile/serendipity_event_textile.php +++ b/plugins/serendipity_event_textile/serendipity_event_textile.php @@ -8,9 +8,7 @@ if (file_exists($probelang)) { include $probelang; } -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_textile extends serendipity_event { diff --git a/plugins/serendipity_event_trackexits/lang_en.inc.php b/plugins/serendipity_event_trackexits/lang_en.inc.php new file mode 100644 index 0000000..20f9acb --- /dev/null +++ b/plugins/serendipity_event_trackexits/lang_en.inc.php @@ -0,0 +1,11 @@ + diff --git a/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php b/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php index 934e220..14b05f3 100644 --- a/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php +++ b/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php @@ -4,15 +4,9 @@ $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php'; if (file_exists($probelang)) { include $probelang; -} - -@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'); +} + +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_trackexits extends serendipity_event { diff --git a/plugins/serendipity_event_weblogping/lang_en.inc.php b/plugins/serendipity_event_weblogping/lang_en.inc.php new file mode 100644 index 0000000..b78a771 --- /dev/null +++ b/plugins/serendipity_event_weblogping/lang_en.inc.php @@ -0,0 +1,13 @@ + diff --git a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php index 08afaac..83edbf4 100644 --- a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php +++ b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php @@ -8,15 +8,7 @@ if (file_exists($probelang)) { include $probelang; } -@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, separated 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!!'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_event_weblogping extends serendipity_event { diff --git a/plugins/serendipity_event_xhtmlcleanup/lang_en.inc.php b/plugins/serendipity_event_xhtmlcleanup/lang_en.inc.php new file mode 100644 index 0000000..4f1e2ab --- /dev/null +++ b/plugins/serendipity_event_xhtmlcleanup/lang_en.inc.php @@ -0,0 +1,10 @@ + diff --git a/plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php b/plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php index 1db7547..e9c1dd1 100644 --- a/plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php +++ b/plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php @@ -4,14 +4,9 @@ $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php'; if (file_exists($probelang)) { include $probelang; -} - -@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.'); -@define('PLUGIN_EVENT_XHTMLCLEANUP_XHTML', 'Encode XML-parsed data?'); -@define('PLUGIN_EVENT_XHTMLCLEANUP_XHTML_DESC', 'This plugin uses a XML parsing method to ensure XHTML validity of your code. This xml parsing may convert already valid entities to unescaped entities, so the plugin encodes all entities after the parsing. Set this flag to OFF if that introduces double encoding for you!'); -@define('PLUGIN_EVENT_XHTMLCLEANUP_UTF8', 'Cleanup UTF-8 entities?'); -@define('PLUGIN_EVENT_XHTMLCLEANUP_UTF8_DESC', 'If enabled, HTML entities derived from UTF-8 characters will be properly converted and not double-encoded in your output.'); +} + +include dirname(__FILE__) . '/lang_en.inc.php'; if (!function_exists('html_entity_decode')) { function html_entity_decode($given_html, $quote_style = ENT_QUOTES) { diff --git a/plugins/serendipity_plugin_entrylinks/lang_en.inc.php b/plugins/serendipity_plugin_entrylinks/lang_en.inc.php new file mode 100644 index 0000000..98c0603 --- /dev/null +++ b/plugins/serendipity_plugin_entrylinks/lang_en.inc.php @@ -0,0 +1,17 @@ + diff --git a/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php b/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php index 1d6f21f..4e0cf36 100644 --- a/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php +++ b/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php @@ -6,19 +6,7 @@ if (file_exists($probelang)) { include $probelang; } -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_plugin_entrylinks extends serendipity_plugin { @@ -161,7 +149,8 @@ class serendipity_plugin_entrylinks extends serendipity_plugin if (isset($counter[$row['link']])) { $count = '
[' . $counter[$row['link']] . ']
'; } - $links .= '
  • ' . wordwrap($row['name'], $wordwrap, "
    ", 1) . "
    $count
  • "; + $link_name = $wordwrap < 1? $row['name']: wordwrap($row['name'], $wordwrap, "
    ", 1); + $links .= '
  • ' . $link_name . "$count
  • "; } $links .= ''; diff --git a/plugins/serendipity_plugin_eventwrapper/lang_en.inc.php b/plugins/serendipity_plugin_eventwrapper/lang_en.inc.php new file mode 100644 index 0000000..30eb383 --- /dev/null +++ b/plugins/serendipity_plugin_eventwrapper/lang_en.inc.php @@ -0,0 +1,9 @@ + diff --git a/plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php b/plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php index ba8315a..891ad24 100644 --- a/plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php +++ b/plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php @@ -4,13 +4,9 @@ $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php'; if (file_exists($probelang)) { include $probelang; -} +} -@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)'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_plugin_eventwrapper extends serendipity_plugin { diff --git a/plugins/serendipity_plugin_recententries/lang_en.inc.php b/plugins/serendipity_plugin_recententries/lang_en.inc.php new file mode 100644 index 0000000..e868ac5 --- /dev/null +++ b/plugins/serendipity_plugin_recententries/lang_en.inc.php @@ -0,0 +1,12 @@ + diff --git a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php index 53faaef..a3c67f4 100644 --- a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php +++ b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php @@ -8,14 +8,7 @@ if (file_exists($probelang)) { include $probelang; } -@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'); +include dirname(__FILE__) . '/lang_en.inc.php'; class serendipity_plugin_recententries extends serendipity_plugin { var $title = PLUGIN_RECENTENTRIES_TITLE;