From c997534a2f7c2f22d064acf19ed69cd89db19346 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 15 Dec 2009 00:32:42 +0900 Subject: [PATCH] translation Controls and EncodeQueue --- win/C#/Controls/AudioPanel.cs | 30 ++++---- win/C#/Controls/Filters.cs | 48 ++++++------ win/C#/Controls/PictureSettings.cs | 6 +- win/C#/Controls/Subtitles.cs | 8 +- win/C#/EncodeQueue/EncodeAndQueueHandler.cs | 12 +-- win/C#/frmOptions.Designer.cs | 34 ++++----- win/C#/frmOptions.cs | 114 +++++++++++++++++++++++++--- win/C#/frmOptions.resx | 6 ++ win/C#/frmPreview.cs | 26 +++---- win/C#/frmQueue.Designer.cs | 12 +-- 10 files changed, 198 insertions(+), 98 deletions(-) diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs index b394e3c..2fef135 100644 --- a/win/C#/Controls/AudioPanel.cs +++ b/win/C#/Controls/AudioPanel.cs @@ -73,9 +73,9 @@ namespace Handbrake.Controls } private void drp_audmix_SelectedIndexChanged(object sender, EventArgs e) { - if ((drp_audioEncoder.Text.Contains("AAC")) && (drp_audioMix.Text == "6 Channel Discrete")) + if ((drp_audioEncoder.Text.Contains("AAC")) && (drp_audioMix.Text == "5.1chサラウンド")) setBitrate(384); - else if ((drp_audioEncoder.Text.Contains("AAC")) && (drp_audioMix.Text != "6 Channel Discrete")) + else if ((drp_audioEncoder.Text.Contains("AAC")) && (drp_audioMix.Text != "5.1chサラウンド")) setBitrate(160); // Update an item in the Audio list if required. @@ -100,7 +100,7 @@ namespace Handbrake.Controls if (lv_audioList.Items.Count != 0 && lv_audioList.SelectedIndices.Count != 0) { if (drp_audioEncoder.Text.Contains("AC3")) - drp_audioBitrate.SelectedItem = "Auto"; + drp_audioBitrate.SelectedItem = "自動"; lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[5].Text = drp_audioBitrate.Text; lv_audioList.Select(); } @@ -224,8 +224,8 @@ namespace Handbrake.Controls public void SetTrackList(Parsing.Title selectedTitle) { drp_audioTrack.Items.Clear(); - drp_audioTrack.Items.Add("Automatic"); - drp_audioTrack.Items.Add("None"); + drp_audioTrack.Items.Add("自動"); + drp_audioTrack.Items.Add("なし"); drp_audioTrack.Items.AddRange(selectedTitle.AudioTracks.ToArray()); // Handle Native Language and "Dub Foreign language audio" and "Use Foreign language audio and Subtitles" Options @@ -274,8 +274,8 @@ namespace Handbrake.Controls { drp_audioEncoder.Items.Clear(); drp_audioEncoder.Items.Add("AAC (faac)"); - drp_audioEncoder.Items.Add("AC3 Passthru"); - if ((oldval != "AAC (faac)") && (oldval != "AC3 Passthru")) + drp_audioEncoder.Items.Add("AC3パススルー"); + if ((oldval != "AAC (faac)") && (oldval != "AC3パススルー")) drp_audioEncoder.SelectedIndex = 0; else drp_audioEncoder.SelectedItem = oldval; @@ -286,8 +286,8 @@ namespace Handbrake.Controls drp_audioEncoder.Items.Clear(); drp_audioEncoder.Items.Add("AAC (faac)"); drp_audioEncoder.Items.Add("MP3 (lame)"); - drp_audioEncoder.Items.Add("AC3 Passthru"); - drp_audioEncoder.Items.Add("DTS Passthru"); + drp_audioEncoder.Items.Add("AC3パススルー"); + drp_audioEncoder.Items.Add("DTSパススルー"); drp_audioEncoder.Items.Add("Vorbis (vorbis)"); drp_audioEncoder.SelectedItem = oldval; @@ -365,14 +365,14 @@ namespace Handbrake.Controls private void setMixDown(Boolean aac) { drp_audioMix.Items.Clear(); - drp_audioMix.Items.Add("Automatic"); + drp_audioMix.Items.Add("自動"); if (aac) - drp_audioMix.Items.Add("Mono"); - drp_audioMix.Items.Add("Stereo"); + drp_audioMix.Items.Add("モノラル"); + drp_audioMix.Items.Add("ステレオ"); drp_audioMix.Items.Add("Dolby Surround"); drp_audioMix.Items.Add("Dolby Pro Logic II"); if (aac) - drp_audioMix.Items.Add("6 Channel Discrete"); + drp_audioMix.Items.Add("5.1chサラウンド"); } private void lv_audioList_SelectedIndexChanged(object sender, EventArgs e) { @@ -393,10 +393,10 @@ namespace Handbrake.Controls tb_drc.Value = drcCalculated; lbl_drc.Text = lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[6].Text; - AudioTrackGroup.Text = "Selected Track: " + lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[0].Text; + AudioTrackGroup.Text = "選択中のトラック: " + lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[0].Text; } else - AudioTrackGroup.Text = "Selected Track: None (Click \"Add Track\" to add)"; + AudioTrackGroup.Text = "選択中のトラック: なし"; } } diff --git a/win/C#/Controls/Filters.cs b/win/C#/Controls/Filters.cs index c5c56fc..ba6423f 100644 --- a/win/C#/Controls/Filters.cs +++ b/win/C#/Controls/Filters.cs @@ -19,14 +19,14 @@ namespace Handbrake.Controls // Controls private void drop_detelecine_SelectedIndexChanged(object sender, EventArgs e) { - text_customDT.Visible = drop_detelecine.Text == "Custom"; + text_customDT.Visible = drop_detelecine.Text == "カスタム"; // A Filter has changed so raise a FilterSettingsChanged event. if (this.FilterSettingsChanged != null) this.FilterSettingsChanged(this, new EventArgs()); } private void drop_decomb_SelectedIndexChanged(object sender, EventArgs e) { - text_customDC.Visible = drop_decomb.Text == "Custom"; + text_customDC.Visible = drop_decomb.Text == "カスタム"; if (drop_decomb.SelectedIndex != 0 && drop_deinterlace.SelectedIndex != 0) drop_deinterlace.SelectedIndex = 0; @@ -36,7 +36,7 @@ namespace Handbrake.Controls } private void drop_deinterlace_SelectedIndexChanged(object sender, EventArgs e) { - text_customDI.Visible = drop_deinterlace.Text == "Custom"; + text_customDI.Visible = drop_deinterlace.Text == "カスタム"; if (drop_decomb.SelectedIndex != 0 && drop_deinterlace.SelectedIndex != 0) drop_decomb.SelectedIndex = 0; @@ -46,7 +46,7 @@ namespace Handbrake.Controls } private void drop_denoise_SelectedIndexChanged(object sender, EventArgs e) { - text_customDN.Visible = drop_denoise.Text == "Custom"; + text_customDN.Visible = drop_denoise.Text == "カスタム"; // A Filter has changed so raise a FilterSettingsChanged event. if (this.FilterSettingsChanged != null) @@ -73,10 +73,10 @@ namespace Handbrake.Controls case "Off": query += ""; break; - case "Default": + case "デフォルト": query += " --detelecine"; break; - case "Custom": + case "カスタム": query += " --detelecine=\"" + text_customDT.Text + "\""; break; default: @@ -90,10 +90,10 @@ namespace Handbrake.Controls case "Off": query += ""; break; - case "Default": + case "デフォルト": query += " --decomb"; break; - case "Custom": + case "カスタム": query += " --decomb=\"" + text_customDC.Text + "\""; break; default: @@ -106,16 +106,16 @@ namespace Handbrake.Controls case "None": query += ""; break; - case "Fast": + case "高速": query += " --deinterlace=\"fast\""; break; - case "Slow": + case "低速": query += " --deinterlace=\"slow\""; break; - case "Slower": + case "最低": query += " --deinterlace=\"slower\""; break; - case "Custom": + case "カスタム": query += " --deinterlace=\"" + text_customDI.Text + "\""; break; default: @@ -128,16 +128,16 @@ namespace Handbrake.Controls case "None": query += ""; break; - case "Weak": + case "å¼±": query += " --denoise=\"weak\""; break; - case "Medium": + case "中": query += " --denoise=\"medium\""; break; - case "Strong": + case "å¼·": query += " --denoise=\"strong\""; break; - case "Custom": + case "カスタム": query += " --denoise=\"" + text_customDN.Text + "\""; break; default: @@ -165,7 +165,7 @@ namespace Handbrake.Controls case "Off": drop_detelecine.SelectedIndex = 0; break; - case "Default": + case "デフォルト": drop_detelecine.SelectedIndex = 2; break; default: @@ -184,13 +184,13 @@ namespace Handbrake.Controls case "Off": drop_denoise.SelectedIndex = 0; break; - case "Weak": + case "å¼±": drop_denoise.SelectedIndex = 2; break; - case "Medium": + case "中": drop_denoise.SelectedIndex = 3; break; - case "Strong": + case "å¼·": drop_denoise.SelectedIndex = 4; break; default: @@ -210,13 +210,13 @@ namespace Handbrake.Controls case "Off": drop_deinterlace.SelectedIndex = 0; break; - case "Fast": + case "高速": drop_deinterlace.SelectedIndex = 2; break; - case "Slow": + case "低速": drop_deinterlace.SelectedIndex = 3; break; - case "Slower": + case "最低": drop_deinterlace.SelectedIndex = 4; break; @@ -236,7 +236,7 @@ namespace Handbrake.Controls case "Off": drop_decomb.SelectedIndex = 0; break; - case "Default": + case "デフォルト": drop_decomb.SelectedIndex = 2; break; default: diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index bbca24d..5e87c1c 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -94,11 +94,11 @@ namespace Handbrake.Controls _presetMaximumHeight = value.Height; if (value.Width != 0 && value.Height != 0) - lbl_max.Text = "Max Width / Height"; + lbl_max.Text = "Å‘啝 / ‚‚³"; else if (value.Width != 0) - lbl_max.Text = "Max Width"; + lbl_max.Text = "Å‘啝"; else if (value.Height != 0) - lbl_max.Text = "Max Height"; + lbl_max.Text = "Å‘卂‚³"; else lbl_max.Text = ""; } diff --git a/win/C#/Controls/Subtitles.cs b/win/C#/Controls/Subtitles.cs index 80c7edb..4d7af06 100644 --- a/win/C#/Controls/Subtitles.cs +++ b/win/C#/Controls/Subtitles.cs @@ -62,7 +62,7 @@ namespace Handbrake.Controls { if (item.SubItems[0].Text.Contains("Bitmap")) { - MessageBox.Show(this, "More than one vobsub is not supported in mp4... Your first vobsub track will now be used.", + MessageBox.Show(this, "MP4形式の場合、字幕トラックは1つのみ使用できます。1つ目の字幕トラックのみが利用されます。", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } @@ -125,7 +125,7 @@ namespace Handbrake.Controls srt_offset.Value = track.SrtOffset; srt_charcode.SelectedItem = track.SrtCharCode; check_default.CheckState = track.Default == "Yes" ? CheckState.Checked : CheckState.Unchecked; - SubGroupBox.Text = "Selected Track: " + track.Track; + SubGroupBox.Text = "選択中のトラック: " + track.Track; } else // We have Bitmap/CC { @@ -138,11 +138,11 @@ namespace Handbrake.Controls check_forced.CheckState = track.Forced == "Yes" ? CheckState.Checked : CheckState.Unchecked; check_burned.CheckState = track.Burned == "Yes" ? CheckState.Checked : CheckState.Unchecked; check_default.CheckState = track.Default == "Yes" ? CheckState.Checked : CheckState.Unchecked; - SubGroupBox.Text = "Selected Track: " + lv_subList.Items[lv_subList.SelectedIndices[0]].SubItems[0].Text; + SubGroupBox.Text = "選択中のトラック: " + lv_subList.Items[lv_subList.SelectedIndices[0]].SubItems[0].Text; } } else - SubGroupBox.Text = "Selected Track: None (Click \"Add\" to add another track to the list)"; + SubGroupBox.Text = "選択中のトラック: なし"; } // Bitmap / CC / SRT Controls diff --git a/win/C#/EncodeQueue/EncodeAndQueueHandler.cs b/win/C#/EncodeQueue/EncodeAndQueueHandler.cs index f2a4eae..a7c60f6 100644 --- a/win/C#/EncodeQueue/EncodeAndQueueHandler.cs +++ b/win/C#/EncodeQueue/EncodeAndQueueHandler.cs @@ -189,11 +189,11 @@ namespace Handbrake.EncodeQueue line.WriteLine(strCmdLine); } - MessageBox.Show("Your batch script has been sucessfully saved.", "Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); + MessageBox.Show("バッチスクリプトを保存しました。", "Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } catch (Exception) { - MessageBox.Show("Unable to write to the file. Please make sure that the location has the correct permissions for file writing.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); + MessageBox.Show("ファイルを保存できませんでした。書き込み可能なフォルダを指定しているか過帰任してください。", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } @@ -328,7 +328,7 @@ namespace Handbrake.EncodeQueue //Growl if (Properties.Settings.Default.growlEncode) - GrowlCommunicator.Notify("Encode Completed", "Put down that cocktail...\nyour Handbrake encode is done."); + GrowlCommunicator.Notify("変換完了", "Handbrakeの変換作業が完了しました。"); if (CurrentJobCompleted != null) CurrentJobCompleted(this, new EventArgs()); @@ -416,7 +416,7 @@ namespace Handbrake.EncodeQueue } catch (Exception exc) { - MessageBox.Show("It would appear that HandBrakeCLI has not started correctly. You should take a look at the Activity log as it may indicate the reason why.\n\n Detailed Error Information: error occured in runCli()\n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show("HandBrakeCLI.exeの起動に失敗しました。詳細については履歴ログを確認してください。\n\n Detailed Error Information: error occured in runCli()\n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } @@ -439,7 +439,7 @@ namespace Handbrake.EncodeQueue //Growl if (Properties.Settings.Default.growlQueue) - GrowlCommunicator.Notify("Queue Completed", "Put down that cocktail...\nyour Handbrake queue is done."); + GrowlCommunicator.Notify("変換キューの完了", "Handbrake変換キュー内の変換作業がすべて完了しました。"); // Do something whent he encode ends. switch (Properties.Settings.Default.CompletionOption) @@ -524,7 +524,7 @@ namespace Handbrake.EncodeQueue } catch (Exception exc) { - MessageBox.Show("Something went a bit wrong trying to copy your log file.\nError Information:\n\n" + exc, "Error", + MessageBox.Show("ログファイルのコピー中に問題が発生しました。\nError Information:\n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } diff --git a/win/C#/frmOptions.Designer.cs b/win/C#/frmOptions.Designer.cs index a08c5e3..3cbef55 100644 --- a/win/C#/frmOptions.Designer.cs +++ b/win/C#/frmOptions.Designer.cs @@ -170,13 +170,13 @@ namespace Handbrake this.drp_completeOption.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drp_completeOption.FormattingEnabled = true; this.drp_completeOption.Items.AddRange(new object[] { - "Do nothing", - "Shutdown", - "Suspend", - "Hibernate", - "Lock system", - "Log off", - "Quit HandBrake"}); + "‰½‚à‚µ‚È‚¢", + "PC‚Ì“dŒ¹‚ðØ‚é", + "PC‚ðƒTƒXƒyƒ“ƒh", + "PC‚ðƒnƒCƒoƒl[ƒVƒ‡ƒ“", + "PC‚ðƒƒbƒN", + "ƒƒOƒIƒt", + "HandBrake‚ðI—¹"}); this.drp_completeOption.Location = new System.Drawing.Point(108, 95); this.drp_completeOption.Name = "drp_completeOption"; this.drp_completeOption.Size = new System.Drawing.Size(166, 21); @@ -300,9 +300,9 @@ namespace Handbrake this.drop_updateCheckDays.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drop_updateCheckDays.FormattingEnabled = true; this.drop_updateCheckDays.Items.AddRange(new object[] { - "Daily", - "Weekly", - "Monthly"}); + "–ˆ“ú", + "T1‰ñ", + "ŒŽ1‰ñ"}); this.drop_updateCheckDays.Location = new System.Drawing.Point(127, 35); this.drop_updateCheckDays.Name = "drop_updateCheckDays"; this.drop_updateCheckDays.Size = new System.Drawing.Size(97, 21); @@ -772,12 +772,12 @@ namespace Handbrake this.drp_Priority.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drp_Priority.FormattingEnabled = true; this.drp_Priority.Items.AddRange(new object[] { - "Realtime", - "High", - "Above Normal", - "Normal", - "Below Normal", - "Low"}); + "Å‚", + "‚", + "‚‚ß", + "•’Ê", + "’á‚ß", + "’á"}); this.drp_Priority.Location = new System.Drawing.Point(165, 53); this.drp_Priority.Name = "drp_Priority"; this.drp_Priority.Size = new System.Drawing.Size(111, 21); @@ -792,7 +792,7 @@ namespace Handbrake this.drp_processors.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drp_processors.FormattingEnabled = true; this.drp_processors.Items.AddRange(new object[] { - "Automatic", + "Ž©“®", "1", "2", "3", diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index 935e30b..0d736ed 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -41,7 +41,26 @@ namespace Handbrake check_updateCheck.CheckState = CheckState.Checked; // On Encode Completeion Action - drp_completeOption.Text = Properties.Settings.Default.CompletionOption; + // drp_completeOption.Text = Properties.Settings.Default.CompletionOption; + switch (Properties.Settings.Default.CompletionOption) + { + case "Do nothing": + drp_completeOption.Text = "‰½‚à‚µ‚È‚¢"; + case "Shutdown": + drp_completeOption.Text = "PC‚Ì“dŒ¹‚ðØ‚é"; + case "Suspend": + drp_completeOption.Text = "PC‚ðƒTƒXƒyƒ“ƒh"; + case "Hibernate": + drp_completeOption.Text = "PC‚ðƒnƒCƒoƒl[ƒVƒ‡ƒ“"; + case "Lock system": + drp_completeOption.Text = "PC‚ðƒƒbƒN"; + case "Log off": + drp_completeOption.Text = "ƒƒOƒIƒt"; + case "Quit HandBrake": + drp_completeOption.Text = "HandBrake‚ðI—¹"; + default: + drp_completeOption.Text = "‰½‚à‚µ‚È‚¢"; + } // Growl. if (Properties.Settings.Default.growlEncode) @@ -77,7 +96,10 @@ namespace Handbrake // Audio and Subtitles Tab // ############################# - drop_preferredLang.SelectedItem = Properties.Settings.Default.NativeLanguage; + if (Properties.Settings.Default.NativeLanguage == "Japanese") + drop_preferredLang.SelectedItem = "“ú–{Œê"; + else + drop_preferredLang.SelectedItem = Properties.Settings.Default.NativeLanguage; if (Properties.Settings.Default.DubAudio) radio_dub.Checked = true; @@ -94,10 +116,28 @@ namespace Handbrake check_cli_minimized.CheckState = CheckState.Checked; // Number of processor cores - drp_processors.Text = Properties.Settings.Default.Processors; + if (Properties.Settings.Default.Processors == "Automatic") + drp_processors.Text = "Ž©“®"; + else + drp_processors.Text = Properties.Settings.Default.Processors; // Priority level for encodes - drp_Priority.Text = Properties.Settings.Default.processPriority; + // drp_Priority.Text = Properties.Settings.Default.processPriority; + switch (Properties.Settings.Default.processPriority) { + case "Realtime": + drp_Priority.Text = "Å‚"; + case "High": + drp_Priority.Text = "‚"; + case "Above Normal": + drp_Priority.Text = "‚‚ß"; + case "Normal": + drp_Priority.Text = "•’Ê"; + case "Below Normal": + drp_Priority.Text = "’á‚ß"; + case "Low": + drp_Priority.Text = "’á"; + default: + drp_Priority.Text = "•’Ê"; // Log Verbosity Level cb_logVerboseLvl.SelectedIndex = Properties.Settings.Default.verboseLevel; @@ -198,7 +238,33 @@ namespace Handbrake private void drp_completeOption_SelectedIndexChanged(object sender, EventArgs e) { - Properties.Settings.Default.CompletionOption = drp_completeOption.Text; + // Properties.Settings.Default.CompletionOption = drp_completeOption.Text; + switch (drp_completeOption.Text) + { + case "‰½‚à‚µ‚È‚¢": + Properties.Settings.Default.CompletionOption = "Do nothing"; + + case "PC‚Ì“dŒ¹‚ðØ‚é": + Properties.Settings.Default.CompletionOption = "Shutdown"; + + case "PC‚ðƒTƒXƒyƒ“ƒh": + Properties.Settings.Default.CompletionOption = "Suspend"; + + case "PC‚ðƒnƒCƒoƒl[ƒVƒ‡ƒ“": + Properties.Settings.Default.CompletionOption = "Hibernate"; + + case "PC‚ðƒƒbƒN": + Properties.Settings.Default.CompletionOption = "Lock system"; + + case "ƒƒOƒIƒt": + Properties.Settings.Default.CompletionOption = "Log off"; + + case "HandBrake‚ðI—¹": + Properties.Settings.Default.CompletionOption = "Quit HandBrake"; + + default: + Properties.Settings.Default.CompletionOption = "Do nothing"; + } } private void check_GrowlQueue_CheckedChanged(object sender, EventArgs e) @@ -260,7 +326,10 @@ namespace Handbrake #region Audio and Subtitles private void drop_preferredLang_SelectedIndexChanged(object sender, EventArgs e) { - Properties.Settings.Default.NativeLanguage = drop_preferredLang.SelectedItem.ToString(); + if (drop_preferredLang.SelectedItem.ToString() == "“ú–{Œê") + Properties.Settings.Default.NativeLanguage = "Japanese"; + else + Properties.Settings.Default.NativeLanguage = drop_preferredLang.SelectedItem.ToString(); } private void radio_dub_CheckedChanged(object sender, EventArgs e) { @@ -282,12 +351,37 @@ namespace Handbrake private void drp_processors_SelectedIndexChanged(object sender, EventArgs e) { - Properties.Settings.Default.Processors = drp_processors.Text; + if (drp_processors.Text == "Ž©“®") + Properties.Settings.Default.Processors = "Automatic"; + else + Properties.Settings.Default.Processors = drp_processors.Text; } private void drp_Priority_SelectedIndexChanged(object sender, EventArgs e) { - Properties.Settings.Default.processPriority = drp_Priority.Text; + // Properties.Settings.Default.processPriority = drp_Priority.Text; + switch (drp_Priority.Text) { + case "Å‚": + Properties.Settings.Default.processPriority = "Realtime"; + + case "‚": + Properties.Settings.Default.processPriority = "High"; + + case "‚‚ß": + Properties.Settings.Default.processPriority = "Above Normal"; + + case "•’Ê": + Properties.Settings.Default.processPriority = "Normal"; + + case "’á‚ß": + Properties.Settings.Default.processPriority = "Below Normal"; + + case "’á": + Properties.Settings.Default.processPriority = "Low"; + + default: + Properties.Settings.Default.processPriority = "Normal"; + } } private void cb_logVerboseLvl_SelectedIndexChanged(object sender, EventArgs e) @@ -330,11 +424,11 @@ namespace Handbrake private void btn_clearLogs_Click(object sender, EventArgs e) { - DialogResult result = MessageBox.Show("Are you sure you wish to clear the log file directory?", "Clear Logs", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); + DialogResult result = MessageBox.Show("HandBrake‚̃ƒOƒtƒHƒ‹ƒ_‚ð‹ó‚É‚µ‚Ü‚·‚©H", "Clear Logs", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (result == DialogResult.Yes) { Main.clearLogs(); - MessageBox.Show(this, "HandBrake's Log file directory has been cleared!", "Notice", MessageBoxButtons.OK, + MessageBox.Show(this, "ƒƒOƒtƒHƒ‹ƒ_‚ð‹ó‚É‚µ‚Ü‚µ‚½I", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information); } } diff --git a/win/C#/frmOptions.resx b/win/C#/frmOptions.resx index 139d824..27c8ac3 100644 --- a/win/C#/frmOptions.resx +++ b/win/C#/frmOptions.resx @@ -120,6 +120,12 @@ 132, 18 + + 132, 18 + + + 132, 18 + 17, 17 diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index 59e6c25..a4cf59c 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -30,7 +30,7 @@ namespace Handbrake } catch (Exception exc) { - MessageBox.Show(mw, "It would appear QuickTime 7 is not installed or not accessible. QuickTime preview functionality will be disabled! \n\n Debug Info:\n" + exc, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(mw, "QuickTimeでのプレビューにはQuickTime 7が必要です。QuickTime 7をインストールしてください。\n\n Debug Info:\n" + exc, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); btn_playQT.Enabled = false; noQT = true; } @@ -51,12 +51,12 @@ namespace Handbrake } catch (Exception) { - MessageBox.Show(this, "Unable to delete previous preview file. You may need to restart the application.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show(this, "存在するプレビュー用ファイルを削除できません。アプリケーションを再起動すると解決するかもしれません。", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } btn_playQT.Enabled = false; btn_playVLC.Enabled = false; - lbl_status.Text = "Encoding Sample for (VLC) ..."; + lbl_status.Text = "サンプル表示用ファイル(VLC用)を作成中..."; int duration; int.TryParse(cb_duration.Text, out duration); String query = hb_common_func.GenerateCLIQuery(mainWindow, duration, cb_preview.Text); @@ -67,7 +67,7 @@ namespace Handbrake if (mainWindow.text_destination.Text.Contains(".mkv")) { MessageBox.Show(this, - "The QuickTime Control does not support MKV files, It is recommended you use VLC option instead.", + "QuickTimeはMKVファイルをサポートしていません。VLCを利用してください。", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else @@ -81,12 +81,12 @@ namespace Handbrake } catch (Exception) { - MessageBox.Show(this, "Unable to delete previous preview file. You may need to restart the application.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show(this, "以前作成したプレビュー用ファイルを削除できません。アプリケーションを再起動すると解決するかもしれません。", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } btn_playQT.Enabled = false; btn_playVLC.Enabled = false; - lbl_status.Text = "Encoding Sample for (QT) ..."; + lbl_status.Text = "サンプル表示用ファイル(QuickTime用)を作成中..."; int duration; int.TryParse(cb_duration.Text, out duration); String query = hb_common_func.GenerateCLIQuery(mainWindow, duration, cb_preview.Text); @@ -98,7 +98,7 @@ namespace Handbrake { // Make sure we are not already encoding and if we are then display an error. if (process.hbProcess != null) - MessageBox.Show(this, "Handbrake is already encoding a video!", "Status", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(this, "すでに動画の変換作業は完了しています!", "Status", MessageBoxButtons.OK, MessageBoxIcon.Warning); else { process.RunCli((string)state); @@ -126,7 +126,7 @@ namespace Handbrake // Decide which player to use. String playerSelection = lbl_status.Text.Contains("QT") ? "QT" : "VLC"; - lbl_status.Text = "Loading Clip ..."; + lbl_status.Text = "ロード中..."; // Get the sample filename if (mainWindow.text_destination.Text != "") @@ -174,13 +174,13 @@ namespace Handbrake String args = "\"" + currently_playing + "\""; ProcessStartInfo vlc = new ProcessStartInfo(Properties.Settings.Default.VLC_Path, args); Process.Start(vlc); - lbl_status.Text = "VLC will now launch."; + lbl_status.Text = "VLCを起動します。"; } else - MessageBox.Show(this, "Unable to detect VLC Player. \nPlease make sure VLC is installed and the directory specified in HandBrake's options is correct. (See: \"Tools Menu > Options > Picture Tab\") ", "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(this, "VLCを見つけられませんでした。VLCがインストールされているか、またオプションで正しいパスを指定しているかどうかを確認してください。\nこの設定は、「ツール」メニューの「オプション」を選択→「画像」タブで変更できます。", "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else - MessageBox.Show(this, "Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details.", "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(this, "プレビュー用のファイルを見つけられませんでした。プレビュー用ファイルが削除されたか、作成に失敗した可能性があります。詳しくは履歴ログを確認してください。", "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning); } lbl_status.Visible = false; } @@ -209,11 +209,11 @@ namespace Handbrake catch (COMException ex) { QTUtils qtu = new QTUtils(); - MessageBox.Show(this, "Unable to open movie:\n\nError Code: " + ex.ErrorCode.ToString("X") + "\nQT Error code : " + qtu.QTErrorFromErrorCode(ex.ErrorCode), "QT", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(this, "動画ファイルを開けませんでした。\n\nError Code: " + ex.ErrorCode.ToString("X") + "\nQT Error code : " + qtu.QTErrorFromErrorCode(ex.ErrorCode), "QT", MessageBoxButtons.OK, MessageBoxIcon.Warning); } catch (Exception ex) { - MessageBox.Show(this, "Unable to open movie:\n\n" + ex, "QT", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(this, "動画ファイルを開けませんでした。\n\n" + ex, "QT", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } #endregion diff --git a/win/C#/frmQueue.Designer.cs b/win/C#/frmQueue.Designer.cs index f5b61be..690ac0f 100644 --- a/win/C#/frmQueue.Designer.cs +++ b/win/C#/frmQueue.Designer.cs @@ -294,7 +294,7 @@ namespace Handbrake // this.mnu_batch.Image = global::Handbrake.Properties.Resources.Output_Small; this.mnu_batch.Name = "mnu_batch"; - this.mnu_batch.Size = new System.Drawing.Size(208, 22); + this.mnu_batch.Size = new System.Drawing.Size(280, 22); this.mnu_batch.Text = "ƒoƒbƒ`ƒXƒNƒŠƒvƒg‚ðì¬"; this.mnu_batch.Click += new System.EventHandler(this.mnu_batch_Click); // @@ -302,7 +302,7 @@ namespace Handbrake // this.mnu_import.Image = global::Handbrake.Properties.Resources.folder; this.mnu_import.Name = "mnu_import"; - this.mnu_import.Size = new System.Drawing.Size(208, 22); + this.mnu_import.Size = new System.Drawing.Size(280, 22); this.mnu_import.Text = "ƒLƒ…[‚ðƒCƒ“ƒ|[ƒg"; this.mnu_import.Click += new System.EventHandler(this.mnu_import_Click); // @@ -310,22 +310,22 @@ namespace Handbrake // this.mnu_export.Image = global::Handbrake.Properties.Resources.save; this.mnu_export.Name = "mnu_export"; - this.mnu_export.Size = new System.Drawing.Size(208, 22); + this.mnu_export.Size = new System.Drawing.Size(280, 22); this.mnu_export.Text = "ƒLƒ…[‚ðƒGƒNƒXƒ|[ƒg"; this.mnu_export.Click += new System.EventHandler(this.mnu_export_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(205, 6); + this.toolStripSeparator2.Size = new System.Drawing.Size(277, 6); // // mnu_readd // this.mnu_readd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.mnu_readd.Image = global::Handbrake.Properties.Resources.AddToQueue_small; this.mnu_readd.Name = "mnu_readd"; - this.mnu_readd.Size = new System.Drawing.Size(208, 22); - this.mnu_readd.Text = "Re-Add Current Job"; + this.mnu_readd.Size = new System.Drawing.Size(280, 22); + this.mnu_readd.Text = "ì‹Æ’†‚̃AƒCƒeƒ€‚ðÄ“xƒLƒ…[‚ɒljÁ"; this.mnu_readd.Click += new System.EventHandler(this.mnu_readd_Click); // // SaveFile -- 2.11.0