diff --git a/cp/bootstrap/app.php b/cp/bootstrap/app.php index cd194ee..3dc4517 100644 --- a/cp/bootstrap/app.php +++ b/cp/bootstrap/app.php @@ -99,12 +99,12 @@ $container->set('view', function ($container) { $uiLang = strtolower($parts[1]); } } else { - $desiredLanguage = 'en_US'; - $uiLang = 'us'; + $desiredLanguage = envi('LANG'); + $uiLang = envi('UI_LANG'); } } else { - $desiredLanguage = 'en_US'; - $uiLang = 'us'; + $desiredLanguage = envi('LANG'); + $uiLang = envi('UI_LANG'); } $lang_full = Language::getName($desiredLanguage, 'en'); $lang = trim(strstr($lang_full, ' (', true)); diff --git a/cp/env-sample b/cp/env-sample index 957b270..2a9394b 100644 --- a/cp/env-sample +++ b/cp/env-sample @@ -5,6 +5,9 @@ APP_DOMAIN=example.com APP_ROOT=/var/www/cp MINIMUM_DATA=false +LANG=en_US +UI_LANG=us + DB_DRIVER=mysql DB_HOST=localhost DB_DATABASE=registry