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

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

Tyler Akins пре 23 година
родитељ
комит
81f36f95b5
1 измењених фајлова са 3 додато и 0 уклоњено
  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 = '';
 	 }
       }