Ivan - Add default language as only supported language at the beginning, fix text display issue in japanese

This commit is contained in:
ivan 2017-06-28 04:37:25 -03:00
parent 2e54fda1e3
commit 427af9f1b0
2 changed files with 4 additions and 1 deletions

View File

@ -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;
} }
} }

View File

@ -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();