Ver Fonte

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

Tyler Akins há 23 anos atrás
pai
commit
37d6ba9a89
1 ficheiros alterados com 3 adições e 2 exclusões
  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;
       }