<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: init.php,v 1.28 2005/04/02 06:41:03 henoheno Exp $
+// $Id: init.php,v 1.35 2005/07/18 13:52:59 henoheno Exp $
+// Copyright (C)
+// 2002-2005 PukiWiki Developers Team
+// 2001-2002 Originally written by yu-ji
+// License: GPL v2 or (at your option) any later version
//
// Init PukiWiki here
// PukiWiki version / Copyright / Licence
-define('S_VERSION', '1.4.6_alpha');
+define('S_VERSION', '1.4.6');
define('S_COPYRIGHT',
'<strong>PukiWiki ' . S_VERSION . '</strong>' .
' Copyright © 2001-2005' .
/////////////////////////////////////////////////
// INI_FILE: LANG ¤Ë´ð¤Å¤¯¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°ÀßÄê
+// CONTENT_CHARSET: Internal content encoding = Output content charset (for skin)
+// 'UTF-8', 'iso-8859-1', 'EUC-JP' or ...
+
+// MB_LANGUAGE: mb_language (for mbstring extension)
+// 'uni'(means UTF-8), 'English', or 'Japanese'
+
+// SOURCE_ENCODING: Internal content encoding (for mbstring extension)
+// 'UTF-8', 'ASCII', or 'EUC-JP'
+
switch (LANG){
case 'en':
- // Internal content encoding = Output content charset (for skin)
- define('CONTENT_CHARSET', 'iso-8859-1'); // 'UTF-8', 'iso-8859-1', 'EUC-JP' or ...
- // mb_language (for mbstring extension)
- define('MB_LANGUAGE', 'English'); // 'uni'(means UTF-8), 'English', or 'Japanese'
- // Internal content encoding (for mbstring extension)
- define('SOURCE_ENCODING', 'ASCII'); // 'UTF-8', 'ASCII', or 'EUC-JP'
+ // ASCII
+ define('CONTENT_CHARSET', 'iso-8859-1');
+ define('MB_LANGUAGE', 'English');
+ define('SOURCE_ENCODING', 'ASCII');
+
+ // UTF-8
+ //define('CONTENT_CHARSET', 'UTF-8');
+ //define('MB_LANGUAGE', 'English');
+ //define('SOURCE_ENCODING', 'UTF-8');
+
break;
-case 'ja': // EUC-JP
+case 'ja':
+ // EUC-JP
define('CONTENT_CHARSET', 'EUC-JP');
- define('MB_LANGUAGE', 'Japanese');
+ define('MB_LANGUAGE', 'Japanese');
define('SOURCE_ENCODING', 'EUC-JP');
break;
+case 'ko':
+ // UTF-8 (See BugTrack2/13 for all hack about Korean support, and give us your report!)
+ define('CONTENT_CHARSET', 'UTF-8');
+ define('MB_LANGUAGE', 'Korean');
+ define('SOURCE_ENCODING', 'UTF-8');
+ break;
+
default:
die_message('No such language "' . LANG . '"');
}
$line_rules = array_merge(array(
'&(#[0-9]+|#x[0-9a-f]+|' . $entity_pattern . ');' => '&$1;',
"\r" => '<br />' . "\n", /* ¹ÔËö¤Ë¥Á¥ë¥À¤Ï²þ¹Ô */
- '#related$' => '<del>#related</del>',
- '^#contents$' => '<del>#contents</del>'
), $line_rules);
?>