소스 검색

Potential gettext emulation speedup for languages without .po files (like
English)

Tyler Akins 24 년 전
부모
커밋
37d6ba9a89
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      functions/gettext.php

+ 3 - 2
functions/gettext.php

@@ -57,9 +57,10 @@
       
       $file = @fopen($filename, 'r');
       if ($file === false) {
-         // Uh-ho -- we can't load the file.
-         // Just fake it.  :-)
+         // Uh-ho -- we can't load the file.  Just fake it.  :-)
+	 // This is also for English, which doesn't use translations
          $gettext_php_loaded = true;
+         $gettext_php_loaded_language = $squirrelmail_language;
          return;
       }