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 80f3c63d1318f1af97cdb2aa6c00a608db27de80..851f7ad488bede9ad20c2a667294990536f9b544 100644 (file)
       
       $file = @fopen($filename, 'r');
       if ($file === false) {
       
       $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 = true;
+         $gettext_php_loaded_language = $squirrelmail_language;
          return;
       }
          
          return;
       }