From 6785915cf06bc5a4c4869b649a5e7a6d46bdac04 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 23 Jan 2010 18:30:46 +0000 Subject: [PATCH] Updated locales and data/src compatibility checks. --- admin/system_diagnostics.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/system_diagnostics.php b/admin/system_diagnostics.php index 45fa5dd1..3b2bfbb8 100644 --- a/admin/system_diagnostics.php +++ b/admin/system_diagnostics.php @@ -146,12 +146,13 @@ function tst_logging() // function tst_dbversion() { + global $core_version; $test['descr'] = _('Current database version'); $test['type'] = 3; $test['test'] = get_company_pref('version_id'); - $test['result'] = $test['test'] == '2.2'; + $test['result'] = $test['test'] == $core_version; $test['comments'] = _('Database structure seems to be not upgraded to current version') - .' (2.2)'; + ." ($core_version)"; return $test; } @@ -230,7 +231,7 @@ function tst_langs() $test['result'] = false; $test['comments'][] = sprintf( _('Missing %s translation file.'), $file); } - if (!setlocale(LC_MESSAGES, $lang['code'].".".$lang['encoding'])) + if (!$_SESSION['get_text']->check_support($lang['code'], $lang['encoding'])) { $test['result'] = false; $test['comments'][] = sprintf(_('Missing system locale: %s'), $lang['code'].".".$lang['encoding']); -- 2.30.2