mirror of
https://github.com/friendica/friendica
synced 2024-11-10 13:42:53 +00:00
Skip lang file search if lang=en
This commit is contained in:
parent
d94e930065
commit
83ab3e3307
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function get_browser_language() {
|
||||||
// check if we have translations for the preferred languages and pick the 1st that has
|
// check if we have translations for the preferred languages and pick the 1st that has
|
||||||
for ($i=0; $i<count($lang_list); $i++) {
|
for ($i=0; $i<count($lang_list); $i++) {
|
||||||
$lang = $lang_list[$i];
|
$lang = $lang_list[$i];
|
||||||
if(file_exists("view/lang/$lang") && is_dir("view/lang/$lang")) {
|
if($lang === 'en' || file_exists("view/lang/$lang") && is_dir("view/lang/$lang")) {
|
||||||
$preferred = $lang;
|
$preferred = $lang;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue