瀏覽代碼

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

Tyler Akins 23 年之前
父節點
當前提交
37d6ba9a89
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      functions/gettext.php

+ 3 - 2
functions/gettext.php

@@ -57,9 +57,10 @@
       
       
       $file = @fopen($filename, 'r');
       $file = @fopen($filename, 'r');
       if ($file === false) {
       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 = true;
+         $gettext_php_loaded_language = $squirrelmail_language;
          return;
          return;
       }
       }