OSDN Git Service

merge 0.9.4 to jp
[handbrake-jp/handbrake-jp.git] / win / C# / Presets / PresetsHandler.cs
index 1609c1f..0e9aa9c 100644 (file)
@@ -37,6 +37,13 @@ namespace Handbrake.Presets
                 UpdatePresetFiles();\r
                 return true;\r
             }\r
+/*\r
+            else\r
+            {\r
+                MessageBox.Show("そのプリセット名はすでに存在しています。 別の名前を選択してください", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                return false;\r
+            }\r
+*/\r
             return false;\r
         }\r
 \r
@@ -258,6 +265,9 @@ namespace Handbrake.Presets
 \r
             foreach (Preset preset in _userPresets) // User Presets\r
             {\r
+/*\r
+                MessageBox.Show("ファイルの書き込みに失敗しました。\n Error Information: \n\n" + exc.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+*/\r
                 TreeNode presetTreeview = new TreeNode(preset.Name) { ForeColor = Color.Black };\r
                 presetPanel.Nodes.Add(presetTreeview);\r
             }\r
@@ -286,7 +296,7 @@ namespace Handbrake.Presets
             }\r
             catch (Exception exc)\r
             {\r
-                MessageBox.Show("Unable to write to the file. Please make sure the location has the correct permissions for file writing.\n Error Information: \n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+                MessageBox.Show("ファイルの書き込みに失敗しました。\n Error Information: \n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
             }\r
         }\r
 \r