Fixed potential (?) problem reported by Klaus (via Philippe)
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Dec 2001 13:40:27 +0000 (13:40 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Dec 2001 13:40:27 +0000 (13:40 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1870 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/gettext.php

index 2bbf221d46c353ce8b584812c203bd7cf9cea27f..a1a4f26ebeedb0b6dcfbdd1901451d590a376a84 100644 (file)
@@ -134,6 +134,9 @@ global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded,
            }
             $gettext_php_translateStrings[$key] =
                stripslashes($gettext_php_translateStrings[$key]);
+           // If there is no translation, just use the untranslated string
+           if ($gettext_php_translateStrings[$key] == '')
+              $gettext_php_translateStrings[$key] = $key;
            $key = '';
         }
       }