]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/L10n.php
Merge pull request #11622 from Quix0r/fixes/switch-db-current-max-update
[friendica.git] / src / Core / L10n.php
index 40aa24732b4bee711e3e1a7fd95e8282464a083e..050c1907371983be027d54defafd183b37b9864d 100644 (file)
@@ -25,7 +25,6 @@ use Friendica\Core\Config\Capability\IManageConfigValues;
 use Friendica\Core\Session\Capability\IHandleSessions;
 use Friendica\Database\Database;
 use Friendica\Util\Strings;
-use Psr\Log\LoggerInterface;
 
 /**
  * Provide Language, Translation, and Localization functions to the application
@@ -41,6 +40,7 @@ class L10n
                'bg'    => 'Български',
                'ca'    => 'Català',
                'cs'    => 'Česky',
+               'da-dk' => 'Dansk (Danmark)',
                'de'    => 'Deutsch',
                'en-gb' => 'English (United Kingdom)',
                'en-us' => 'English (United States)',
@@ -85,15 +85,9 @@ class L10n
         */
        private $dba;
 
-       /**
-        * @var LoggerInterface
-        */
-       private $logger;
-
-       public function __construct(IManageConfigValues $config, Database $dba, LoggerInterface $logger, IHandleSessions $session, array $server, array $get)
+       public function __construct(IManageConfigValues $config, Database $dba, IHandleSessions $session, array $server, array $get)
        {
                $this->dba    = $dba;
-               $this->logger = $logger;
 
                $this->loadTranslationTable(L10n::detectLanguage($server, $get, $config->get('system', 'language', self::DEFAULT)));
                $this->setSessionVariable($session);