瀏覽代碼

Improve error message for illegal folder name.

Thijs Kinkhorst 20 年之前
父節點
當前提交
fb6b33bd35
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      functions/folder_manip.php

+ 6 - 2
functions/folder_manip.php

@@ -27,8 +27,12 @@ function folders_checkname($imapConnection, $folder_name, $delimiter)
         substr_count($folder_name, $delimiter) || ($folder_name == '')) {
         substr_count($folder_name, $delimiter) || ($folder_name == '')) {
         
         
         global $color;
         global $color;
-        plain_error_message(_("Illegal folder name. Please select a different name.").
-            '<br /><a href="../src/folders.php">'._("Click here to go back").'</a>.', $color);
+        error_box(_("Illegal folder name.") . "<br />\n" .
+	    sprintf(_("The name may not contain any of the following: %s"), '<tt>" \\ '.$delimiter.'</tt>')
+	    . "<br />\n" .
+	    _("Please select a different name.").
+            '<br /><a href="folders.php">'.
+	    _("Click here to go back") . '</a>.', $color);
 
 
         sqimap_logout($imapConnection);
         sqimap_logout($imapConnection);
         exit;
         exit;