Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_comments
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15308
Modified Files:
serendipity_plugin_comments.php
Added Files:
lang_ja.inc.php
Log Message:
o added japanese lang.
--- NEW FILE: lang_ja.inc.php ---
(This appears to be a binary file; contents omitted.)
Index: serendipity_plugin_comments.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- serendipity_plugin_comments.php 2 Dec 2004 10:55:06 -0000 1.28
+++ serendipity_plugin_comments.php 28 Jan 2005 18:10:01 -0000 1.29
@@ -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_COMMENTS_BLAHBLAH', 'Zeigt die letzten Kommentare');
|