mirror of
https://github.com/friendica/friendica
synced 2025-05-01 19:04:23 +02:00
Move $strings from App to Core\L10n
- Add L10n::init() call in App constructor - Improve pushLang/popLang - Remove no longer needed references to App
This commit is contained in:
parent
baa1094489
commit
c6f0bea51d
6 changed files with 137 additions and 80 deletions
|
@ -217,13 +217,13 @@ class Temporal
|
|||
// First day of the week (0 = Sunday)
|
||||
$firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week', 0);
|
||||
|
||||
$lang = substr(L10n::getBrowserLanguage(), 0, 2);
|
||||
$lang = substr(L10n::getCurrentLang(), 0, 2);
|
||||
|
||||
// Check if the detected language is supported by the picker
|
||||
if (!in_array($lang,
|
||||
["ar", "ro", "id", "bg", "fa", "ru", "uk", "en", "el", "de", "nl", "tr", "fr", "es", "th", "pl", "pt", "ch", "se", "kr",
|
||||
"it", "da", "no", "ja", "vi", "sl", "cs", "hu"])) {
|
||||
$lang = Config::get('system', 'language', 'en');
|
||||
$lang = 'en';
|
||||
}
|
||||
|
||||
$o = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue