From: Janusz Dobrowolski Date: Sat, 23 Jan 2010 18:30:46 +0000 (+0000) Subject: Updated locales and data/src compatibility checks. X-Git-Tag: v2.4.2~19^2~987 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6785915cf06bc5a4c4869b649a5e7a6d46bdac04;p=fa-stable.git Updated locales and data/src compatibility checks. --- 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']);