OSDN Git Service

import jp-0.9.3
[handbrake-jp/handbrake-jp.git] / win / C# / frmMain.cs
index 1496646..59d9fe2 100644 (file)
@@ -63,7 +63,7 @@ namespace Handbrake
             InitializeComponent();\r
 \r
             // Update the users config file with the CLI version data.\r
-            lblStatus.Text = "Setting Version Data ...";\r
+            lblStatus.Text = "\83o\81[\83W\83\87\83\93\8fî\95ñ\82Ì\8eæ\93¾\92\86...";\r
             Application.DoEvents();\r
             ArrayList x = hb_common_func.getCliVersionData();\r
             if (x != null)\r
@@ -88,14 +88,14 @@ namespace Handbrake
             // update the status\r
             if (Properties.Settings.Default.updateStatus == "Checked")\r
             {\r
-                lblStatus.Text = "Checking for updates ...";\r
+                lblStatus.Text = "\83A\83b\83v\83f\81[\83g\82Ì\8am\94F\92\86...";\r
                 Application.DoEvents();\r
                 Thread updateCheckThread = new Thread(startupUpdateCheck);\r
                 updateCheckThread.Start();\r
             }\r
 \r
             // Setup the GUI components\r
-            lblStatus.Text = "Setting up the GUI ...";\r
+            lblStatus.Text = "GUI\82Ì\90Ý\92è\92\86...";\r
             Application.DoEvents();\r
             setupH264Panel();               // Initalize the H.264 Panel\r
             loadPresetPanel();              // Load the Preset Panel\r
@@ -112,7 +112,7 @@ namespace Handbrake
             lbl_encode.Text = "";\r
 \r
             //Finished Loading\r
-            lblStatus.Text = "Loading Complete!";\r
+            lblStatus.Text = "\83\8d\81[\83h\8a®\97¹\81I";\r
             Application.DoEvents();\r
 \r
             //Close the splash screen\r
@@ -181,7 +181,7 @@ namespace Handbrake
         {\r
             if (hb_common_func.check_queue_recovery() == true)\r
             {\r
-                DialogResult result = MessageBox.Show("HandBrake has detected unfinished items on the queue from the last time the application was launched. Would you like to recover these?", "Queue Recovery Possible", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+                DialogResult result = MessageBox.Show("\83L\83\85\81[\82É\96¢\8a®\97¹\82Ì\83A\83C\83e\83\80\82ª\8ec\82³\82ê\82Ä\82¢\82Ü\82·\81B\82±\82ê\82ç\82ð\95\9c\8c³\82µ\82Ü\82·\82©\81H", "Queue Recovery Possible", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
 \r
                 if (result == DialogResult.Yes)\r
                     encodeQueue.recoverQueue("hb_queue_recovery.dat"); // Start Recovery\r
@@ -236,9 +236,9 @@ namespace Handbrake
             presetHandler.updateBuiltInPresets();\r
             loadPresetPanel();\r
             if (treeView_presets.Nodes.Count == 0)\r
-                MessageBox.Show("Unable to load the presets.dat file. Please select \"Update Built-in Presets\" from the Presets Menu \nMake sure you are running the program in Admin mode if running on Vista. See Windows FAQ for details!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+                MessageBox.Show("presets.dat\82Ì\83\8d\81[\83h\82É\8e¸\94s\82µ\82Ü\82µ\82½\81B\81u\83v\83\8a\83Z\83b\83g\81v\83\81\83j\83\85\81[\82©\82ç\81u\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82Ì\83A\83b\83v\83f\81[\83g\81v\82ð\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B\n\82Ü\82½\81AVista\82Ì\8fê\8d\87\8aÇ\97\9d\8eÒ\83\82\81[\83h\82Å\8eÀ\8ds\82µ\82Ä\82¢\82é\82©\82Ç\82¤\82©\8am\94F\82µ\82Ä\82­\82¾\82³\82¢\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
             else\r
-                MessageBox.Show("Presets have been updated!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
+                MessageBox.Show("\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82ð\83A\83b\83v\83f\81[\83g\82µ\82Ü\82µ\82½\81I", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
 \r
             treeView_presets.ExpandAll();\r
         }\r
@@ -257,7 +257,7 @@ namespace Handbrake
             }\r
             catch (Exception exc)\r
             {\r
-                MessageBox.Show("An error has occured during the preset removal process.\n If you are using Windows Vista, you may need to run under Administrator Mode to complete this task. \n" + exc.ToString());\r
+                MessageBox.Show("\83v\83\8a\83Z\83b\83g\82Ì\8dí\8f\9c\8f\88\97\9d\82Å\83G\83\89\81[\82ª\94­\90\82µ\82Ü\82µ\82½\81B\nWindows Vista\82Ì\8fê\8d\87\81A\8aÇ\97\9d\8eÒ\83\82\81[\83h\82Å\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\n" + exc.ToString());\r
             }\r
 \r
             // Reload the preset panel\r
@@ -284,15 +284,18 @@ namespace Handbrake
         #region Help Menu\r
         private void mnu_handbrake_forums_Click(object sender, EventArgs e)\r
         {\r
-            Process.Start("http://forum.handbrake.fr/");\r
-        }\r
+            // Process.Start("http://forum.handbrake.fr/");\r
+            Process.Start("http://sourceforge.jp/projects/handbrake-jp/wiki/Forum");\r
+       }\r
         private void mnu_user_guide_Click(object sender, EventArgs e)\r
         {\r
-            Process.Start("http://trac.handbrake.fr/wiki/HandBrakeGuide");\r
+            // Process.Start("http://trac.handbrake.fr/wiki/HandBrakeGuide");\r
+            Process.Start("http://sourceforge.jp/projects/handbrake-jp/wiki/Guide");\r
         }\r
         private void mnu_handbrake_home_Click(object sender, EventArgs e)\r
         {\r
-            Process.Start("http://handbrake.fr");\r
+            // Process.Start("http://handbrake.fr");\r
+            Process.Start("http://sourceforge.jp/projects/handbrake-jp/wiki/");\r
         }\r
         private void mnu_UpdateCheck_Click(object sender, EventArgs e)\r
         {\r
@@ -303,7 +306,7 @@ namespace Handbrake
                 updateWindow.Show();\r
             }\r
             else\r
-                MessageBox.Show("There are no new updates at this time.", "Update Check", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
+                MessageBox.Show("\8c»\8dÝ\97\98\97p\89Â\94\\82È\83A\83b\83v\83f\81[\83g\82Í\82 \82è\82Ü\82¹\82ñ", "Update Check", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
         }\r
         private void mnu_about_Click(object sender, EventArgs e)\r
         {\r
@@ -363,8 +366,8 @@ namespace Handbrake
         }\r
         private void btn_start_Click(object sender, EventArgs e)\r
         {\r
-            if (text_source.Text == string.Empty || text_source.Text == "Click 'Source' to continue" || text_destination.Text == string.Empty)\r
-                MessageBox.Show("No source OR destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+            if (text_source.Text == string.Empty || text_source.Text == "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð..." || text_destination.Text == string.Empty)\r
+                MessageBox.Show("\95Ï\8a·\8c³\82à\82µ\82­\82Í\95Û\91\90æ\82ª\91I\91ð\82³\82ê\82Ä\82¢\82Ü\82¹\82ñ", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
             else\r
             {\r
                 // Set the last action to encode. \r
@@ -379,17 +382,17 @@ namespace Handbrake
 \r
                 ThreadPool.QueueUserWorkItem(procMonitor, query);\r
                 lbl_encode.Visible = true;\r
-                lbl_encode.Text = "Encoding in Progress";\r
+                lbl_encode.Text = "\83G\83\93\83R\81[\83h\8eÀ\8ds\92\86";\r
 \r
-                btn_start.Text = "Stop";\r
-                btn_start.ToolTipText = "Stop the encoding process. \nWarning: This may break your file. Press ctrl-c in the CLI window if you wish it to exit cleanly.";\r
+                btn_start.Text = "\95Ï\8a·\92â\8e~";\r
+                btn_start.ToolTipText = "\83G\83\93\83R\81[\83h\8f\88\97\9d\82ð\92\86\8e~\82µ\82Ü\82·\81B\nWarning: \82±\82ê\82É\82æ\82è\81A\83t\83@\83C\83\8b\82ª\94j\89ó\82³\82ê\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·\81B\88À\91S\82É\83G\83\93\83R\81[\83h\82ð\92\86\8e~\82·\82é\82É\82Í\81A\83R\83}\83\93\83h\83E\83B\83\93\83h\83E\82Åctrl-C\82ð\93ü\97Í\82µ\82Ä\82­\82¾\82³\82¢\81B";\r
                 btn_start.Image = Properties.Resources.stop;\r
             }\r
         }\r
         private void btn_add2Queue_Click(object sender, EventArgs e)\r
         {\r
-            if (text_source.Text == string.Empty || text_source.Text == "Click 'Source' to continue" || text_destination.Text == string.Empty)\r
-                MessageBox.Show("No source OR destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+            if (text_source.Text == string.Empty || text_source.Text == "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð..." || text_destination.Text == string.Empty)\r
+                MessageBox.Show("\95Ï\8a·\8c³\82à\82µ\82­\82Í\95Û\91\90æ\82ª\91I\91ð\82³\82ê\82Ä\82¢\82Ü\82¹\82ñ", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
             else\r
             {\r
 \r
@@ -438,22 +441,22 @@ namespace Handbrake
             filename = DVD_Open.SelectedPath;\r
 \r
             if (filename.StartsWith("\\"))\r
-                MessageBox.Show("Sorry, HandBrake does not support UNC file paths. \nTry mounting the share as a network drive in My Computer", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                MessageBox.Show("HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
             else\r
             {\r
                 if (filename != "")\r
                 {\r
                     Form frmRD = new frmReadDVD(filename, this);\r
                     text_source.Text = filename;\r
-                    lbl_encode.Text = "Scanning ...";\r
+                    lbl_encode.Text = "\83X\83L\83\83\83\93\92\86...";\r
                     frmRD.ShowDialog();\r
                 }\r
                 else\r
-                    text_source.Text = "Click 'Source' to continue";\r
+                    text_source.Text = "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð...";\r
 \r
                 // If there are no titles in the dropdown menu then the scan has obviously failed. Display an error message explaining to the user.\r
                 if (drp_dvdtitle.Items.Count == 0)\r
-                    MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source.\nYour Source may be copy protected, badly mastered or a format which HandBrake does not support. \nPlease refer to the Documentation and FAQ (see Help Menu).", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+                    MessageBox.Show("\83^\83C\83g\83\8b\82ª\8c©\82Â\82©\82è\82Ü\82¹\82ñ\81B\90³\82µ\82¢\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82¢\82é\82©\82²\8am\94F\82­\82¾\82³\82¢\81B\82Ü\82½\81A\83R\83s\81[\83v\83\8d\83e\83N\83g\82³\82ê\82½\83f\83B\83X\83N\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
 \r
                 lbl_encode.Text = "";\r
             }\r
@@ -471,7 +474,7 @@ namespace Handbrake
             filename = ISO_Open.FileName;\r
 \r
             if (filename.StartsWith("\\"))\r
-                MessageBox.Show("Sorry, HandBrake does not support UNC file paths. \nTry mounting the share as a network drive in My Computer", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                MessageBox.Show("HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
             else\r
             {\r
                 if (filename != "")\r
@@ -482,11 +485,11 @@ namespace Handbrake
                     frmRD.ShowDialog();\r
                 }\r
                 else\r
-                    text_source.Text = "Click 'Source' to continue";\r
+                    text_source.Text = "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð...";\r
 \r
                 // If there are no titles in the dropdown menu then the scan has obviously failed. Display an error message explaining to the user.\r
                 if (drp_dvdtitle.Items.Count == 0)\r
-                    MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source.\nYour Source may be copy protected, badly mastered or a format which HandBrake does not support. \nPlease refer to the Documentation and FAQ (see Help Menu).", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+                    MessageBox.Show("\83^\83C\83g\83\8b\82ª\8c©\82Â\82©\82è\82Ü\82¹\82ñ\81B\90³\82µ\82¢\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82¢\82é\82©\82²\8am\94F\82­\82¾\82³\82¢\81B\82Ü\82½\81A\83R\83s\81[\83v\83\8d\83e\83N\83g\82³\82ê\82½\83f\83B\83X\83N\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
 \r
                 lbl_encode.Text = "";\r
 \r
@@ -515,7 +518,7 @@ namespace Handbrake
             {\r
                 string[] path = mnu_dvd_drive.Text.Split(' ');\r
                 filename = path[0];\r
-                lbl_encode.Text = "Scanning ...";\r
+                lbl_encode.Text = "\83X\83L\83\83\83\93\92\86...";\r
                 Form frmRD = new frmReadDVD(filename, this);\r
                 text_source.Text = filename;\r
                 frmRD.ShowDialog();\r
@@ -523,7 +526,7 @@ namespace Handbrake
 \r
             // If there are no titles in the dropdown menu then the scan has obviously failed. Display an error message explaining to the user.\r
             if (drp_dvdtitle.Items.Count == 0)\r
-                MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source.\nYour Source may be copy protected, badly mastered or a format which HandBrake does not support. \nPlease refer to the Documentation and FAQ (see Help Menu).", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+                MessageBox.Show("\83^\83C\83g\83\8b\82ª\8c©\82Â\82©\82è\82Ü\82¹\82ñ\81B\90³\82µ\82¢\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82¢\82é\82©\82²\8am\94F\82­\82¾\82³\82¢\81B\82Ü\82½\81A\83R\83s\81[\83v\83\8d\83e\83N\83g\82³\82ê\82½\83f\83B\83X\83N\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
 \r
             lbl_encode.Text = "";\r
         }\r
@@ -531,7 +534,7 @@ namespace Handbrake
         private void drp_dvdtitle_Click(object sender, EventArgs e)\r
         {\r
             if ((drp_dvdtitle.Items.Count == 1) && (drp_dvdtitle.Items[0].ToString() == "Automatic"))\r
-                MessageBox.Show("There are no titles to select. Please load a source file by clicking the 'Source' button above before trying to select a title.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
+                MessageBox.Show("\83^\83C\83g\83\8b\82ª\91I\91ð\82³\82ê\82Ä\82¢\82Ü\82¹\82ñ\81B\81u\95Ï\8a·\8c³\81v\82ð\83N\83\8a\83b\83N\82µ\82Ä\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82­\82¾\82³\82¢", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
         }\r
         private void drp_dvdtitle_SelectedIndexChanged(object sender, EventArgs e)\r
         {\r
@@ -679,7 +682,7 @@ namespace Handbrake
             if (DVD_Save.ShowDialog() == DialogResult.OK)\r
             {\r
                 if (DVD_Save.FileName.StartsWith("\\"))\r
-                    MessageBox.Show("Sorry, HandBrake does not support UNC file paths. \nTry mounting the share as a network drive in My Computer", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                    MessageBox.Show("HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B","Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
                 else\r
                 {\r
                     setAudioByContainer(DVD_Save.FileName);\r
@@ -1451,7 +1454,7 @@ namespace Handbrake
         }\r
         private void btn_removePreset_Click(object sender, EventArgs e)\r
         {\r
-            DialogResult result = MessageBox.Show("Are you sure you wish to delete the selected preset?", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+            DialogResult result = MessageBox.Show("\91I\91ð\82µ\82½\83v\83\8a\83Z\83b\83g\82ð\8dí\8f\9c\82µ\82Ü\82·\82©\81H", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
             if (result == DialogResult.Yes)\r
             {\r
                 if (treeView_presets.SelectedNode != null)\r
@@ -1474,7 +1477,7 @@ namespace Handbrake
             Properties.Settings.Default.defaultUserSettings = query;\r
             // Save the new default Settings\r
             Properties.Settings.Default.Save();\r
-            MessageBox.Show("New default settings saved.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
+            MessageBox.Show("\83f\83t\83H\83\8b\83g\90Ý\92è\82ª\95Û\91\82³\82ê\82Ü\82µ\82½", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
         }\r
         private void treeView_presets_AfterSelect(object sender, TreeViewEventArgs e)\r
         {\r
@@ -1502,7 +1505,7 @@ namespace Handbrake
         {\r
             if (e.KeyCode == Keys.Delete)\r
             {\r
-                DialogResult result = MessageBox.Show("Are you sure you wish to delete the selected preset?", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+                DialogResult result = MessageBox.Show("\91I\91ð\82µ\82½\83v\83\8a\83Z\83b\83g\82ð\8dí\8f\9c\82µ\82Ü\82·\82©\81H", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
                 if (result == DialogResult.Yes)\r
                 {\r
                     if (treeView_presets.SelectedNode != null)\r
@@ -1619,7 +1622,7 @@ namespace Handbrake
                             if (File.Exists(curDrive.RootDirectory.ToString() + "VIDEO_TS\\VIDEO_TS.IFO"))\r
                                 mnu_dvd_drive.Text = curDrive.RootDirectory.ToString() + "VIDEO_TS (" + curDrive.VolumeLabel + ")";\r
                             else\r
-                                mnu_dvd_drive.Text = "[No DVD Drive Ready]";\r
+                                mnu_dvd_drive.Text = "[DVD\83h\83\89\83C\83u\82É\83f\83B\83X\83N\82ª\82 \82è\82Ü\82¹\82ñ]";\r
 \r
                             foundDrive = true;\r
 \r
@@ -1628,11 +1631,11 @@ namespace Handbrake
                 }\r
 \r
                 if (foundDrive == false)\r
-                    mnu_dvd_drive.Text = "[No DVD Drive Ready]";\r
+                    mnu_dvd_drive.Text = "[DVD\83h\83\89\83C\83u\82É\83f\83B\83X\83N\82ª\82 \82è\82Ü\82¹\82ñ]";\r
             }\r
             catch (Exception)\r
             {\r
-                mnu_dvd_drive.Text = "[No DVD Drive Ready / Found]";\r
+                mnu_dvd_drive.Text = "[DVD\83h\83\89\83C\83u\82É\83f\83B\83X\83N\82ª\82 \82è\82Ü\82¹\82ñ]";\r
             }\r
         }\r
         #endregion\r
@@ -1930,9 +1933,9 @@ namespace Handbrake
                 this.BeginInvoke(new UpdateUIHandler(setEncodeLabelFinished));\r
                 return;\r
             }\r
-            lbl_encode.Text = "Encoding Finished";\r
-            btn_start.Text = "Start";\r
-            btn_start.ToolTipText = "Start the encoding process";\r
+            lbl_encode.Text = "\83G\83\93\83R\81[\83h\8a®\97¹";\r
+            btn_start.Text = "\95Ï\8a·\8aJ\8en";\r
+            btn_start.ToolTipText = "\83G\83\93\83R\81[\83h\8f\88\97\9d\82ð\8aJ\8en\82µ\82Ü\82·";\r
             btn_start.Image = Properties.Resources.Play;\r
         }\r
 \r
@@ -2106,6 +2109,8 @@ namespace Handbrake
         }\r
         #endregion\r
 \r
+\r
+\r
         // This is the END of the road ------------------------------------------------------------------------------\r
     }\r
 }
\ No newline at end of file