]> git.mxchange.org Git - friendica.git/commitdiff
Skip lang file search if lang=en
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 18 Apr 2017 23:21:26 +0000 (19:21 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 18 Apr 2017 23:21:26 +0000 (19:21 -0400)
include/pgettext.php

index 335869eda2104ff69a6cd6cbdebab9314ac8038e..424e5b2a365bfe1945aba3d471b6848e536bd470 100644 (file)
@@ -44,7 +44,7 @@ function get_browser_language() {
        // check if we have translations for the preferred languages and pick the 1st that has
        for ($i=0; $i<count($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;
                        break;
                }