* mbstring.func_overload allows to replace original string and regexp functions
* with their equivalents from php mbstring extension. It causes problems when
* scripts analyse 8bit strings byte after byte or use 8bit strings in regexp tests.
- * Setting can be controlled in php.ini (php 4.2.0), webserver config (php 4.2.0)
+ * Setting can be controlled in php.ini (php 4.2.0), webserver config (php 4.2.0)
* and .htaccess files (php 4.3.5).
*/
if (function_exists('mb_internal_encoding') &&
- check_php_version(4,2,0) &&
+ check_php_version(4,2,0) &&
(int)ini_get('mbstring.func_overload')!=0) {
$mb_error='You have enabled mbstring overloading.'
.' It can cause problems with SquirrelMail scripts that rely on single byte string functions.';
if(!is_dir($data_dir)) {
do_err("Data dir ($data_dir) is not a directory!");
}
-if(!is_readable($data_dir)) {
- do_err("I cannot read from data dir ($data_dir)!");
-}
+// datadir should be executable - but no clean way to test on that
if(!is_writable($data_dir)) {
do_err("I cannot write to data dir ($data_dir)!");
}
echo $IND . "Themes OK.<br />\n";
+if ( $squirrelmail_default_language != 'en_US' ) {
+ $loc_path = SM_PATH .'locale/'.$squirrelmail_default_language.'/LC_MESSAGES/squirrelmail.mo';
+ if( ! file_exists( $loc_path ) ) {
+ do_err('You have set <i>' . $squirrelmail_default_language .
+ '</i> as your default language, but I cannot find this translation (should be '.
+ 'in <tt>' . $loc_path . '</tt>). Please note that you have to download translations '.
+ 'separately from the main SquirrelMail package.', FALSE);
+ } elseif ( ! is_readable( $loc_path ) ) {
+ do_err('You have set <i>' . $squirrelmail_default_language .
+ '</i> as your default language, but I cannot read this translation (file '.
+ 'in <tt>' . $loc_path . '</tt> unreadable).', FALSE);
+ } else {
+ echo $IND . "Default language OK.<br />\n";
+ }
+} else {
+ echo $IND . "Default language OK.<br />\n";
+}
+
echo $IND . "Base URL detected as: <tt>" . htmlspecialchars(get_location()) . "</tt><br />\n";
</html>
<?php
// vim: et ts=4
-?>
\ No newline at end of file
+?>