Browse Source

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

Tyler Akins 23 years ago
parent
commit
37d6ba9a89
1 changed files with 3 additions and 2 deletions
  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;
       }