Преглед изворни кода

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');
       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;
       }