Browse Source

Fixed potential (?) problem reported by Klaus (via Philippe)

Tyler Akins 23 years ago
parent
commit
81f36f95b5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      functions/gettext.php

+ 3 - 0
functions/gettext.php

@@ -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 = '';
 	 }
       }