From a68fb657b2ed586fc67a820d2e0cd0a1f58bfa62 Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 12 Nov 2001 17:24:29 +0000 Subject: [PATCH] Potential gettext emulation speedup for languages without .po files (like English) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1742 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/gettext.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/gettext.php b/functions/gettext.php index 80f3c63d..851f7ad4 100644 --- a/functions/gettext.php +++ b/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; } -- 2.25.1