Version 0.9 ()
------------------------------------------------------------------------
+ * Allow to switch charsets ("Native" / "UTF-8"). (garvinhicking)
+
* Permissions: The permission "adminImagesViewOthers" now controls
whether an author is allowed to view images or not. In older Serendipity
versions, any author could always view any images, but only modify those
if (!defined('serendipity_LANG_LOADED') || serendipity_LANG_LOADED !== true) {
// Try and include preferred language from the configurated setting
- if (@include(S9Y_INCLUDE_PATH . 'lang/serendipity_lang_'. $serendipity['lang'] .'.inc.php') ) {
+ if (@include(S9Y_INCLUDE_PATH . 'lang/' . $serendipity['charset'] . 'serendipity_lang_'. $serendipity['lang'] .'.inc.php') ) {
// Only here can we truely say the language is loaded
define('serendipity_LANG_LOADED', true);
} elseif (IS_installed === false || (defined('IS_up2date') && IS_up2date === false)) { /* -- Auto-Guess -- */
} //endif
// Do fallback to english
- if ((defined('serendipity_LANG_LOADED') && serendipity_LANG_LOADED === true) || IS_installed === false || (defined('IS_up2date') && IS_up2date === false)) {
+ if (IS_installed === false || (defined('IS_up2date') && IS_up2date === false)) {
@include_once(S9Y_INCLUDE_PATH . 'lang/serendipity_lang_en.inc.php');
}
}
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
+?>
\ No newline at end of file
'permission' => 'siteConfiguration',
'flags' => array('simpleInstall')),
+ array('var' => 'charset',
+ 'title' => INSTALL_CHARSET,
+ 'description' => INSTALL_CHARSET_DESC,
+ 'type' => 'list',
+ 'default' => $serendipity['charsets'],
+ 'permission' => 'siteConfiguration'),
+
array('var' => 'calendar',
'title' => INSTALL_CAL,
'description' => INSTALL_CAL_DESC,
}
}
+$serendipity['charsets'] = array(
+ '/UTF-8/' => 'UTF-8',
+ '' => CHARSET_NATIVE
+);
+
/*
* Fallback charset, if none is defined in the language files
*/