fix: default plugin language to Polish
This commit is contained in:
@@ -48,7 +48,7 @@ final class Settings
|
||||
public static function defaults(): array
|
||||
{
|
||||
return [
|
||||
'DEFAULT_PLUGIN_LANGUAGE' => 'en',
|
||||
'DEFAULT_PLUGIN_LANGUAGE' => 'pl',
|
||||
'DEFAULT_ENABLE' => 'true',
|
||||
'GLOBAL_AUTORESPONDER_TIMEZONE' => 'Europe/Warsaw',
|
||||
'GLOBAL_AUTORESPONDER_BACKEND' => 'da',
|
||||
@@ -79,8 +79,8 @@ final class Settings
|
||||
|
||||
public function defaultLanguage(): string
|
||||
{
|
||||
$lang = strtolower($this->getString('DEFAULT_PLUGIN_LANGUAGE', 'en'));
|
||||
return preg_match('/^[a-z]{2}$/', $lang) ? $lang : 'en';
|
||||
$lang = strtolower($this->getString('DEFAULT_PLUGIN_LANGUAGE', 'pl'));
|
||||
return preg_match('/^[a-z]{2}$/', $lang) ? $lang : 'pl';
|
||||
}
|
||||
|
||||
public function defaultEnable(): bool
|
||||
|
||||
Reference in New Issue
Block a user