Ivan - Add default language as only supported language at the beginning, fix text display issue in japanese
This commit is contained in:
parent
2e54fda1e3
commit
427af9f1b0
|
@ -21,6 +21,7 @@
|
|||
&-name {
|
||||
font-size: $font-size--md;
|
||||
line-height: 20px;
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -115,12 +115,14 @@ class InitSettingsController extends Controller {
|
|||
}
|
||||
}
|
||||
private function storeLanguages() {
|
||||
$defaultLanguage = Controller::request('language');
|
||||
|
||||
foreach(Language::LANGUAGES as $languageCode) {
|
||||
$language = new Language();
|
||||
$language->setProperties([
|
||||
'code' => $languageCode,
|
||||
'allowed' => 1,
|
||||
'supported' => ($languageCode === 'en')
|
||||
'supported' => ($languageCode === $defaultLanguage)
|
||||
]);
|
||||
|
||||
$language->store();
|
||||
|
|
Loading…
Reference in New Issue