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 {
|
&-name {
|
||||||
font-size: $font-size--md;
|
font-size: $font-size--md;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,12 +115,14 @@ class InitSettingsController extends Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private function storeLanguages() {
|
private function storeLanguages() {
|
||||||
|
$defaultLanguage = Controller::request('language');
|
||||||
|
|
||||||
foreach(Language::LANGUAGES as $languageCode) {
|
foreach(Language::LANGUAGES as $languageCode) {
|
||||||
$language = new Language();
|
$language = new Language();
|
||||||
$language->setProperties([
|
$language->setProperties([
|
||||||
'code' => $languageCode,
|
'code' => $languageCode,
|
||||||
'allowed' => 1,
|
'allowed' => 1,
|
||||||
'supported' => ($languageCode === 'en')
|
'supported' => ($languageCode === $defaultLanguage)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$language->store();
|
$language->store();
|
||||||
|
|
Loading…
Reference in New Issue