瀏覽代碼

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