added defaultLanguage to config
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ data/logs/*
|
||||
data/cache/*
|
||||
data/upload/*
|
||||
data/preferences/*
|
||||
application/config.php
|
||||
data/config.php
|
||||
application/Espo/Resources/metadata/scopes/CustomTest.json
|
||||
application/Espo/Modules/Crm/Resources/metadata/scopes/CustomTest.json
|
||||
application/Espo/Resources/layouts/CustomTest/*
|
||||
|
||||
@@ -68,7 +68,7 @@ class I18n
|
||||
}
|
||||
|
||||
if (empty($this->currentLanguage)) {
|
||||
$this->currentLanguage = 'en_US';
|
||||
$this->currentLanguage = $this->getConfig()->get('defaultLanguage');
|
||||
}
|
||||
|
||||
return $this->currentLanguage;
|
||||
|
||||
@@ -24,6 +24,7 @@ return array (
|
||||
0 => 'USD',
|
||||
1 => 'EUR',
|
||||
),
|
||||
'defaultLanguage' => 'en_US',
|
||||
'defaultCurrency' => 'USD',
|
||||
'outboundEmailIsShared' => true,
|
||||
'outboundEmailFromName' => 'EspoCRM',
|
||||
|
||||
Reference in New Issue
Block a user