Potential gettext emulation speedup for languages without .po files (like
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Nov 2001 17:24:29 +0000 (17:24 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Nov 2001 17:24:29 +0000 (17:24 +0000)
English)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1742 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/gettext.php

index 80f3c63..851f7ad 100644 (file)
       
       $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;
       }