X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsystem_tests.inc;h=46cb9ac512b8063464efba03229bf71b6820c41b;hb=7840540918bfd37c886877a5d52e3ba0b3373289;hp=798ef6776539c8251e9bb4a6fd704b972edb2e75;hpb=cf08095d348f05ce14b09652d07e3a2a54d0d55f;p=fa-stable.git diff --git a/includes/system_tests.inc b/includes/system_tests.inc index 798ef677..46cb9ac5 100644 --- a/includes/system_tests.inc +++ b/includes/system_tests.inc @@ -228,8 +228,8 @@ function tst_tmpdir() function tst_langs($install) { - global $installed_languages, $path_to_root; - + global $installed_languages, $path_to_root, $GetText; + $test['descr'] = _('Language configuration consistency'); $test['type'] = 3; $test['result'] = true; @@ -269,7 +269,7 @@ function tst_langs($install) $test['result'] = false; $test['comments'][] = sprintf( _('Missing %s translation file.'), $file); } - if (!$_SESSION['get_text']->check_support($lang['code'], $lang['encoding'])) + if (!$GetText->check_support($lang['code'], $lang['encoding'])) { $test['result'] = false; $test['comments'][] = sprintf(_('Missing system locale: %s'), $lang['code'].".".$lang['encoding']);