[I18N] Refactor since rfc/use-static-function is not implemented

As the above mentioned RFC is not implemented, `_m` needs to be
outside of the I18n class, otherwise it would have to always be called
with `I18n::_m`.
This commit is contained in:
Hugo Sales
2020-06-04 21:53:34 +00:00
committed by Hugo Sales
parent 186b9e7683
commit f283613443
5 changed files with 136 additions and 98 deletions

View File

@@ -32,7 +32,7 @@
namespace App\Core\DB;
use App\Core\I18n;
use App\Core\I18n\I18nHelper;
use App\Util\Common;
abstract class DefaultSettings
@@ -47,7 +47,7 @@ abstract class DefaultSettings
'logo' => null,
'language' => 'en',
'detect_language' => true,
'languages' => I18n::get_all_languages(),
'languages' => I18nHelper::get_all_languages(),
'email' => $_ENV['SERVER_ADMIN'] ?? $_ENV['SOCIAL_ADMIN_EMAIL'] ?? null,
'recovery_disclose' => false, // Whether to not say that we found the email in the database, when asking for recovery
'timezone' => 'UTC',