]> git.mjollnir.org Git - s9y.git/commitdiff
Add missing foreign language include, thanks to CapriSkye!
authorgarvinhicking <garvinhicking>
Sun, 26 Jun 2005 15:39:02 +0000 (15:39 +0000)
committergarvinhicking <garvinhicking>
Sun, 26 Jun 2005 15:39:02 +0000 (15:39 +0000)
plugins/serendipity_event_livesearch/serendipity_event_livesearch.php
plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php
plugins/serendipity_event_trackexits/serendipity_event_trackexits.php
plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php
plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php
plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php

index fa953e2dae72da770a1f7b1957f3d5ac2a55fc3a..d33a11cf231a59b89be285f0a6907ae5a4406901 100644 (file)
@@ -1,5 +1,11 @@
 <?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';
+if (file_exists($probelang)) {
+    include $probelang;
+} 
+
 switch ($serendipity['lang']) {
     case 'de':
         @define('PLUGIN_EVENT_LIVESEARCH_NAME', 'LiveSearch');
index e20a5157365e6d03b4ac8b65bc18a3bd2b8d56ff..b5dcdacd1520cc90f3d98903ea3d259bf2882ba1 100644 (file)
@@ -4,11 +4,17 @@
 /*  Authored by Tom Sommer, 2004  */
 /**********************************/
 
+// 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';
+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;
+        break;
     case 'en':
     default:
         @define('PLUGIN_EVENT_SEARCHHIGHLIGHT_NAME',     'Highlight search queries');
index 5b4dda4e377d6417abf9d99f16b830635beca6c5..6f3ad7af198634084bb7129e6a4b94e23b8a1ecc 100644 (file)
@@ -1,5 +1,11 @@
 <?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';
+if (file_exists($probelang)) {
+    include $probelang;
+} 
+
 switch ($serendipity['lang']) {
     case 'de':
         @define('PLUGIN_EVENT_TRACKBACK_NAME', 'Textformatierung: Externe Links zählen');
index d65ffa66556b699b990694ef86964d22a5aaf59d..93dfc8a3e4f9ec72130870731e5177a05b2b4ce4 100644 (file)
@@ -1,5 +1,11 @@
 <?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';
+if (file_exists($probelang)) {
+    include $probelang;
+} 
+
 switch ($serendipity['lang']) {
     case 'de':
         @define('PLUGIN_EVENT_XHTMLCLEANUP_NAME', 'Übliche XHTML-Fehler beseitigen');
index e8ffe21e8a709d62fe4944be203005418880c8ac..45e3fec18fd3171fbe89b849e473341b758fd075 100644 (file)
@@ -1,5 +1,11 @@
 <?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';
+if (file_exists($probelang)) {
+    include $probelang;
+}
+
 switch ($serendipity['lang']) {
     case 'de':
         @define('PLUGIN_ENTRYLINKS_NAME', 'Links des Artikels');
index 30a7c1e09010766da0b413b575593d4c38c9f8d3..75bcc82d9dee329b4ed3e86ca2e840401717a2ed 100644 (file)
@@ -1,5 +1,11 @@
 <?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';
+if (file_exists($probelang)) {
+    include $probelang;
+} 
+
 switch ($serendipity['lang']) {
     case 'de':
         @define('PLUGIN_EVENT_WRAPPER_NAME', 'Event-Ausgabe Wrapper');
@@ -100,4 +106,4 @@ var $rewrite_from, $rewrite_to;
 }
 
 /* vim: set sts=4 ts=4 expandtab : */
-?>
+?>
\ No newline at end of file