Fix language (again ;-) )

This commit is contained in:
Philipp Holzer 2019-07-16 16:50:49 +02:00
parent eb024a3718
commit 79e69ee528
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 5 additions and 5 deletions

View file

@ -3,8 +3,8 @@
namespace Friendica\Factory;
use Friendica\App;
use Friendica\Core\L10n\L10n;
use Friendica\Core\Config\Cache\PConfigCache;
use Friendica\Core\L10n\L10n;
use Friendica\Factory;
use Friendica\Util\BasePath;
use Friendica\Util\BaseURL;
@ -40,7 +40,7 @@ class DependencyFactory
$logger = Factory\LoggerFactory::create($channel, $database, $config, $profiler);
Factory\LoggerFactory::createDev($channel, $config, $profiler);
$baseURL = new BaseURL($config, $_SERVER);
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'de')),
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
$database,
$logger);

View file

@ -56,7 +56,7 @@ class ApiTest extends DatabaseTest
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
$baseUrl = new BaseURL($config, $_SERVER);
$router = new App\Router();
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'en')),
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
self::$dba,
$logger);
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);

View file

@ -21,7 +21,7 @@ class DBATest extends DatabaseTest
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
$baseUrl = new BaseURL($config, $_SERVER);
$router = new App\Router();
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'en')),
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
self::$dba,
$logger);
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);

View file

@ -25,7 +25,7 @@ class DBStructureTest extends DatabaseTest
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
$baseUrl = new BaseURL($config, $_SERVER);
$router = new App\Router();
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'en')),
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
self::$dba,
$logger);
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);