Changeset 1604 for branches/multiuser/init.php
- Timestamp:
- 10/16/06 06:31:35 (2 years ago)
- Files:
-
- 1 modified
-
branches/multiuser/init.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/multiuser/init.php
r1479 r1604 114 114 //////////////////////////////////////////////////////////////////////////////// 115 115 // Localization 116 // 116 _pf('Loading l10n...'); 117 117 118 require_once('cls/l10n.php'); 118 $GLOBALS['rssl10n'] = new RSSl10n('de_CH'); 119 120 $lang = getConfig('rss.output.lang'); 121 if (!preg_match('#^[a-zA-Z_]+$#', $lang)) { 122 die('woopsie, bad lang: ' .$lang); 123 } 124 if ($lang && file_exists(dirname(__FILE__) . "/" . "intl/$lang.php")) { 125 rss_require("intl/$lang.php"); 126 } else { 127 rss_require('intl/en.php'); 128 } 119 $GLOBALS['rssl10n'] = new RSSl10n(); 120 $lang = $GLOBALS['rssl10n']->getLocale(); 121 _pf('done'); 129 122 130 123 // Theme specific l10n handling … … 144 137 } 145 138 146 139 /* 147 140 // Load the right locale 148 141 if (defined('OVERRIDE_LOCALE')) { … … 164 157 } 165 158 } 166 159 */ 167 160 168 161
