diff --git a/gMKVExtractGUI/Controls/gComboBox.cs b/gMKVExtractGUI/Controls/gComboBox.cs index ca60d62..9f9b4e0 100644 --- a/gMKVExtractGUI/Controls/gComboBox.cs +++ b/gMKVExtractGUI/Controls/gComboBox.cs @@ -79,7 +79,7 @@ protected void InitializeComponent() // // gComboBox // - this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.Size = new System.Drawing.Size(121, 21); this.ResumeLayout(false); } diff --git a/gMKVExtractGUI/Controls/gForm.cs b/gMKVExtractGUI/Controls/gForm.cs index d920231..66e45fc 100644 --- a/gMKVExtractGUI/Controls/gForm.cs +++ b/gMKVExtractGUI/Controls/gForm.cs @@ -206,12 +206,12 @@ protected Version GetCurrentVersion() protected void ShowErrorMessage(String argMessage) { - MessageBox.Show("An error has occured!" + Environment.NewLine + Environment.NewLine + argMessage, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show("发生了错误!" + Environment.NewLine + Environment.NewLine + argMessage, "错误!", MessageBoxButtons.OK, MessageBoxIcon.Error); } protected void ShowSuccessMessage(String argMessage) { - MessageBox.Show(argMessage, "Success!", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show(argMessage, "成功!", MessageBoxButtons.OK, MessageBoxIcon.Information); } protected DialogResult ShowQuestion(String argQuestion, String argTitle, bool argShowCancel = true) diff --git a/gMKVExtractGUI/Forms/frmJobManager.Designer.cs b/gMKVExtractGUI/Forms/frmJobManager.Designer.cs index 8fc1d80..72909c6 100644 --- a/gMKVExtractGUI/Forms/frmJobManager.Designer.cs +++ b/gMKVExtractGUI/Forms/frmJobManager.Designer.cs @@ -95,7 +95,7 @@ private void InitializeComponent() this.grpProgress.Size = new System.Drawing.Size(618, 104); this.grpProgress.TabIndex = 3; this.grpProgress.TabStop = false; - this.grpProgress.Text = "Progress"; + this.grpProgress.Text = "进度"; // // txtCurrentTrack // @@ -115,7 +115,7 @@ private void InitializeComponent() this.lblCurrentTrack.Name = "lblCurrentTrack"; this.lblCurrentTrack.Size = new System.Drawing.Size(78, 15); this.lblCurrentTrack.TabIndex = 7; - this.lblCurrentTrack.Text = "Current Track"; + this.lblCurrentTrack.Text = "当前轨道"; // // lblTotalProgressValue // @@ -142,7 +142,7 @@ private void InitializeComponent() this.lblTotalProgress.Name = "lblTotalProgress"; this.lblTotalProgress.Size = new System.Drawing.Size(81, 15); this.lblTotalProgress.TabIndex = 4; - this.lblTotalProgress.Text = "Total Progress"; + this.lblTotalProgress.Text = "总体进度"; // // lblCurrentProgress // @@ -151,7 +151,7 @@ private void InitializeComponent() this.lblCurrentProgress.Name = "lblCurrentProgress"; this.lblCurrentProgress.Size = new System.Drawing.Size(95, 15); this.lblCurrentProgress.TabIndex = 3; - this.lblCurrentProgress.Text = "Current Progress"; + this.lblCurrentProgress.Text = "当前进度"; // // prgBrTotal // @@ -196,7 +196,7 @@ private void InitializeComponent() this.grpJobs.Size = new System.Drawing.Size(508, 315); this.grpJobs.TabIndex = 0; this.grpJobs.TabStop = false; - this.grpJobs.Text = "Jobs"; + this.grpJobs.Text = "任务"; // // grdJobs // @@ -236,7 +236,7 @@ private void InitializeComponent() // this.changeToReadyStatusToolStripMenuItem.Name = "changeToReadyStatusToolStripMenuItem"; this.changeToReadyStatusToolStripMenuItem.Size = new System.Drawing.Size(199, 22); - this.changeToReadyStatusToolStripMenuItem.Text = "Change to Ready Status"; + this.changeToReadyStatusToolStripMenuItem.Text = "变更为准备就绪状态"; this.changeToReadyStatusToolStripMenuItem.Click += new System.EventHandler(this.changeToReadyStatusToolStripMenuItem_Click); // // grpActions @@ -254,7 +254,7 @@ private void InitializeComponent() this.grpActions.Size = new System.Drawing.Size(104, 315); this.grpActions.TabIndex = 4; this.grpActions.TabStop = false; - this.grpActions.Text = "Actions"; + this.grpActions.Text = "操作"; // // chkShowPopup // @@ -264,7 +264,7 @@ private void InitializeComponent() this.chkShowPopup.Name = "chkShowPopup"; this.chkShowPopup.Size = new System.Drawing.Size(61, 19); this.chkShowPopup.TabIndex = 13; - this.chkShowPopup.Text = "Popup"; + this.chkShowPopup.Text = "弹出"; this.chkShowPopup.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.chkShowPopup.UseVisualStyleBackColor = true; this.chkShowPopup.CheckedChanged += new System.EventHandler(this.chkShowPopup_CheckedChanged); @@ -275,7 +275,7 @@ private void InitializeComponent() this.btnSaveJobs.Name = "btnSaveJobs"; this.btnSaveJobs.Size = new System.Drawing.Size(90, 30); this.btnSaveJobs.TabIndex = 6; - this.btnSaveJobs.Text = "Save Jobs..."; + this.btnSaveJobs.Text = "保存任务 ..."; this.btnSaveJobs.UseVisualStyleBackColor = true; this.btnSaveJobs.Click += new System.EventHandler(this.btnSaveJobs_Click); // @@ -285,7 +285,7 @@ private void InitializeComponent() this.btnLoadJobs.Name = "btnLoadJobs"; this.btnLoadJobs.Size = new System.Drawing.Size(90, 30); this.btnLoadJobs.TabIndex = 5; - this.btnLoadJobs.Text = "Load Jobs..."; + this.btnLoadJobs.Text = "加载任务 ..."; this.btnLoadJobs.UseVisualStyleBackColor = true; this.btnLoadJobs.Click += new System.EventHandler(this.btnLoadJobs_Click); // @@ -296,7 +296,7 @@ private void InitializeComponent() this.btnAbortAll.Name = "btnAbortAll"; this.btnAbortAll.Size = new System.Drawing.Size(90, 30); this.btnAbortAll.TabIndex = 4; - this.btnAbortAll.Text = "Abort All"; + this.btnAbortAll.Text = "中止全部"; this.btnAbortAll.UseVisualStyleBackColor = true; this.btnAbortAll.Click += new System.EventHandler(this.btnAbortAll_Click); // @@ -307,7 +307,7 @@ private void InitializeComponent() this.btnAbort.Name = "btnAbort"; this.btnAbort.Size = new System.Drawing.Size(90, 30); this.btnAbort.TabIndex = 3; - this.btnAbort.Text = "Abort"; + this.btnAbort.Text = "中止"; this.btnAbort.UseVisualStyleBackColor = true; this.btnAbort.Click += new System.EventHandler(this.btnAbort_Click); // @@ -317,7 +317,7 @@ private void InitializeComponent() this.btnRunAll.Name = "btnRunAll"; this.btnRunAll.Size = new System.Drawing.Size(90, 30); this.btnRunAll.TabIndex = 2; - this.btnRunAll.Text = "Run Jobs"; + this.btnRunAll.Text = "运行任务"; this.btnRunAll.UseVisualStyleBackColor = true; this.btnRunAll.Click += new System.EventHandler(this.btnRunAll_Click); // @@ -327,7 +327,7 @@ private void InitializeComponent() this.btnRemove.Name = "btnRemove"; this.btnRemove.Size = new System.Drawing.Size(90, 30); this.btnRemove.TabIndex = 0; - this.btnRemove.Text = "Remove"; + this.btnRemove.Text = "移除"; this.btnRemove.UseVisualStyleBackColor = true; this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click); // @@ -335,14 +335,14 @@ private void InitializeComponent() // this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(199, 22); - this.selectAllToolStripMenuItem.Text = "Select All"; + this.selectAllToolStripMenuItem.Text = "选择全部"; this.selectAllToolStripMenuItem.Click += new System.EventHandler(this.selectAllToolStripMenuItem_Click); // // deselectAllToolStripMenuItem // this.deselectAllToolStripMenuItem.Name = "deselectAllToolStripMenuItem"; this.deselectAllToolStripMenuItem.Size = new System.Drawing.Size(199, 22); - this.deselectAllToolStripMenuItem.Text = "Deselect All"; + this.deselectAllToolStripMenuItem.Text = "禁选全部"; this.deselectAllToolStripMenuItem.Click += new System.EventHandler(this.deselectAllToolStripMenuItem_Click); // // toolStripSeparator1 @@ -356,7 +356,7 @@ private void InitializeComponent() this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(624, 431); this.Controls.Add(this.tlpMain); - this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.MinimumSize = new System.Drawing.Size(640, 470); this.Name = "frmJobManager"; this.Text = "frmJobManager"; diff --git a/gMKVExtractGUI/Forms/frmJobManager.cs b/gMKVExtractGUI/Forms/frmJobManager.cs index 8716d1f..7c2c704 100644 --- a/gMKVExtractGUI/Forms/frmJobManager.cs +++ b/gMKVExtractGUI/Forms/frmJobManager.cs @@ -40,7 +40,7 @@ public frmJobManager(IFormMain argMainForm) _MainForm = argMainForm; Icon = Icon.ExtractAssociatedIcon(GetExecutingAssemblyLocation()); - Text = String.Format("gMKVExtractGUI v{0} -- Job Manager", GetCurrentVersion()); + Text = String.Format("gMKVExtractGUI_chs v{0} -- 任务管理器", GetCurrentVersion()); _FromConstructor = true; @@ -249,7 +249,7 @@ private void btnRunAll_Click(object sender, EventArgs e) { if (GetNumberOfJobs(JobState.Ready) == 0) { - throw new Exception("There are no available jobs to run!"); + throw new Exception("无可用的任务以运行!"); } List jobList = new List(); foreach (DataGridViewRow item in grdJobs.Rows) @@ -328,7 +328,7 @@ private void PrepareForRunJobs(List argJobInfoList) { lblCurrentProgressValue.Text = ""; lblTotalProgressValue.Text = ""; - txtCurrentTrack.Text = "Extraction completed!"; + txtCurrentTrack.Text = "导出完成!"; } gTaskbarProgress.SetState(this, gTaskbarProgress.TaskbarStates.NoProgress); gTaskbarProgress.SetOverlayIcon(this, null, null); @@ -418,7 +418,7 @@ private void btnSaveJobs_Click(object sender, EventArgs e) { // ask for path SaveFileDialog sfd = new SaveFileDialog(); - sfd.Title = "Select job file..."; + sfd.Title = "选择任务文件 ..."; sfd.InitialDirectory = GetCurrentDirectory(); sfd.Filter = "*.xml|*.xml"; if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK) @@ -539,7 +539,7 @@ private void grdJobs_DataBindingComplete(object sender, DataGridViewBindingCompl { try { - grpJobs.Text = String.Format("Jobs ({0})", grdJobs.Rows.Count); + grpJobs.Text = String.Format("任务 ({0})", grdJobs.Rows.Count); } catch (Exception ex) { diff --git a/gMKVExtractGUI/Forms/frmLog.Designer.cs b/gMKVExtractGUI/Forms/frmLog.Designer.cs index a68811c..564550e 100644 --- a/gMKVExtractGUI/Forms/frmLog.Designer.cs +++ b/gMKVExtractGUI/Forms/frmLog.Designer.cs @@ -96,7 +96,7 @@ private void InitializeComponent() this.grpActions.Size = new System.Drawing.Size(598, 54); this.grpActions.TabIndex = 1; this.grpActions.TabStop = false; - this.grpActions.Text = "Actions"; + this.grpActions.Text = "操作"; // // btnSave // @@ -104,7 +104,7 @@ private void InitializeComponent() this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(95, 30); this.btnSave.TabIndex = 4; - this.btnSave.Text = "Save..."; + this.btnSave.Text = "保存 ..."; this.btnSave.UseVisualStyleBackColor = true; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // @@ -114,7 +114,7 @@ private void InitializeComponent() this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(95, 30); this.btnClear.TabIndex = 3; - this.btnClear.Text = "Clear Log"; + this.btnClear.Text = "清空日志"; this.btnClear.UseVisualStyleBackColor = true; this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // @@ -125,7 +125,7 @@ private void InitializeComponent() this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Size = new System.Drawing.Size(95, 30); this.btnRefresh.TabIndex = 2; - this.btnRefresh.Text = "Refresh"; + this.btnRefresh.Text = "刷新"; this.btnRefresh.UseVisualStyleBackColor = true; this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); // @@ -136,7 +136,7 @@ private void InitializeComponent() this.btnCopy.Name = "btnCopy"; this.btnCopy.Size = new System.Drawing.Size(95, 30); this.btnCopy.TabIndex = 1; - this.btnCopy.Text = "Copy Selection"; + this.btnCopy.Text = "复制已选"; this.btnCopy.UseVisualStyleBackColor = true; this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); // @@ -147,7 +147,7 @@ private void InitializeComponent() this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(95, 30); this.btnClose.TabIndex = 0; - this.btnClose.Text = "Close"; + this.btnClose.Text = "关闭"; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // @@ -157,7 +157,7 @@ private void InitializeComponent() this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(604, 501); this.Controls.Add(this.tlpMain); - this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.MinimumSize = new System.Drawing.Size(350, 350); this.Name = "frmLog"; this.Text = "frmLog"; diff --git a/gMKVExtractGUI/Forms/frmLog.cs b/gMKVExtractGUI/Forms/frmLog.cs index 3ce3e1d..c7794c8 100644 --- a/gMKVExtractGUI/Forms/frmLog.cs +++ b/gMKVExtractGUI/Forms/frmLog.cs @@ -26,7 +26,7 @@ public frmLog() private void InitForm() { Icon = Icon.ExtractAssociatedIcon(GetExecutingAssemblyLocation()); - Text = String.Format("gMKVExtractGUI v{0} -- Log", GetCurrentVersion()); + Text = String.Format("gMKVExtractGUI_chs v{0} -- 日志", GetCurrentVersion()); } private void frmLog_Activated(object sender, EventArgs e) @@ -38,7 +38,7 @@ private void txtLog_TextChanged(object sender, EventArgs e) { txtLog.Select(txtLog.TextLength + 1, 0); txtLog.ScrollToCaret(); - grpLog.Text = String.Format("Log ({0})", txtLog.Lines.LongLength); + grpLog.Text = String.Format("日志 ({0})", txtLog.Lines.LongLength); } private void btnClose_Click(object sender, EventArgs e) diff --git a/gMKVExtractGUI/Forms/frmMain.Designer.cs b/gMKVExtractGUI/Forms/frmMain.Designer.cs index ed711f0..15809b0 100644 --- a/gMKVExtractGUI/Forms/frmMain.Designer.cs +++ b/gMKVExtractGUI/Forms/frmMain.Designer.cs @@ -181,7 +181,7 @@ private void InitializeComponent() this.btnAbort.Name = "btnAbort"; this.btnAbort.Size = new System.Drawing.Size(92, 30); this.btnAbort.TabIndex = 10; - this.btnAbort.Text = "Abort"; + this.btnAbort.Text = "中止"; this.btnAbort.UseVisualStyleBackColor = true; this.btnAbort.Click += new System.EventHandler(this.btnAbort_Click); // @@ -192,7 +192,7 @@ private void InitializeComponent() this.btnAbortAll.Name = "btnAbortAll"; this.btnAbortAll.Size = new System.Drawing.Size(92, 30); this.btnAbortAll.TabIndex = 11; - this.btnAbortAll.Text = "Abort All"; + this.btnAbortAll.Text = "中止全部"; this.btnAbortAll.UseVisualStyleBackColor = true; this.btnAbortAll.Click += new System.EventHandler(this.btnAbortAll_Click); // @@ -255,7 +255,7 @@ private void InitializeComponent() this.btnBrowseInputFile.Name = "btnBrowseInputFile"; this.btnBrowseInputFile.Size = new System.Drawing.Size(80, 30); this.btnBrowseInputFile.TabIndex = 2; - this.btnBrowseInputFile.Text = "Browse..."; + this.btnBrowseInputFile.Text = "浏览 ..."; this.btnBrowseInputFile.UseVisualStyleBackColor = true; this.btnBrowseInputFile.Click += new System.EventHandler(this.btnBrowseInputFile_Click); // @@ -292,7 +292,7 @@ private void InitializeComponent() this.btnBrowseOutputDirectory.Name = "btnBrowseOutputDirectory"; this.btnBrowseOutputDirectory.Size = new System.Drawing.Size(80, 30); this.btnBrowseOutputDirectory.TabIndex = 3; - this.btnBrowseOutputDirectory.Text = "Browse..."; + this.btnBrowseOutputDirectory.Text = "浏览 ..."; this.btnBrowseOutputDirectory.UseVisualStyleBackColor = true; this.btnBrowseOutputDirectory.Click += new System.EventHandler(this.btnBrowseOutputDirectory_Click); // @@ -327,7 +327,7 @@ private void InitializeComponent() this.grpActions.Size = new System.Drawing.Size(618, 54); this.grpActions.TabIndex = 6; this.grpActions.TabStop = false; - this.grpActions.Text = "Actions"; + this.grpActions.Text = "操作"; // // chkShowPopup // @@ -337,7 +337,7 @@ private void InitializeComponent() this.chkShowPopup.Name = "chkShowPopup"; this.chkShowPopup.Size = new System.Drawing.Size(61, 19); this.chkShowPopup.TabIndex = 12; - this.chkShowPopup.Text = "Popup"; + this.chkShowPopup.Text = "弹出"; this.chkShowPopup.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.chkShowPopup.UseVisualStyleBackColor = true; this.chkShowPopup.CheckedChanged += new System.EventHandler(this.chkShowPopup_CheckedChanged); @@ -362,7 +362,7 @@ private void InitializeComponent() this.btnExtract.Name = "btnExtract"; this.btnExtract.Size = new System.Drawing.Size(90, 30); this.btnExtract.TabIndex = 10; - this.btnExtract.Text = "Extract"; + this.btnExtract.Text = "导出"; this.btnExtract.UseVisualStyleBackColor = true; this.btnExtract.Click += new System.EventHandler(this.btnExtract_Click); // @@ -380,7 +380,7 @@ private void InitializeComponent() // this.cmbExtractionMode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmbExtractionMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbExtractionMode.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.cmbExtractionMode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.cmbExtractionMode.FormattingEnabled = true; this.cmbExtractionMode.Location = new System.Drawing.Point(411, 22); this.cmbExtractionMode.Name = "cmbExtractionMode"; @@ -393,7 +393,7 @@ private void InitializeComponent() this.btnShowLog.Name = "btnShowLog"; this.btnShowLog.Size = new System.Drawing.Size(60, 30); this.btnShowLog.TabIndex = 6; - this.btnShowLog.Text = "Log..."; + this.btnShowLog.Text = "日志 ..."; this.btnShowLog.UseVisualStyleBackColor = true; this.btnShowLog.Click += new System.EventHandler(this.btnShowLog_Click); // @@ -405,13 +405,13 @@ private void InitializeComponent() this.lblChapterType.Name = "lblChapterType"; this.lblChapterType.Size = new System.Drawing.Size(49, 15); this.lblChapterType.TabIndex = 3; - this.lblChapterType.Text = "Chapter"; + this.lblChapterType.Text = "章节"; // // cmbChapterType // this.cmbChapterType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmbChapterType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbChapterType.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.cmbChapterType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.cmbChapterType.FormattingEnabled = true; this.cmbChapterType.Location = new System.Drawing.Point(281, 22); this.cmbChapterType.Name = "cmbChapterType"; @@ -429,7 +429,7 @@ private void InitializeComponent() this.grpConfig.Size = new System.Drawing.Size(618, 54); this.grpConfig.TabIndex = 7; this.grpConfig.TabStop = false; - this.grpConfig.Text = "MKVToolnix Directory (you can drag and drop the directory)"; + this.grpConfig.Text = "MKVToolnix 路径(允许拖拽目录)"; // // btnBrowseMKVToolnixPath // @@ -438,7 +438,7 @@ private void InitializeComponent() this.btnBrowseMKVToolnixPath.Name = "btnBrowseMKVToolnixPath"; this.btnBrowseMKVToolnixPath.Size = new System.Drawing.Size(80, 30); this.btnBrowseMKVToolnixPath.TabIndex = 5; - this.btnBrowseMKVToolnixPath.Text = "Browse..."; + this.btnBrowseMKVToolnixPath.Text = "浏览 ..."; this.btnBrowseMKVToolnixPath.UseVisualStyleBackColor = true; this.btnBrowseMKVToolnixPath.Click += new System.EventHandler(this.btnBrowseMKVToolnixPath_Click); // @@ -468,7 +468,7 @@ private void InitializeComponent() this.grpInputFileInfo.Size = new System.Drawing.Size(618, 279); this.grpInputFileInfo.TabIndex = 5; this.grpInputFileInfo.TabStop = false; - this.grpInputFileInfo.Text = "Input File Information"; + this.grpInputFileInfo.Text = "输入文件信息"; this.grpInputFileInfo.DragDrop += new System.Windows.Forms.DragEventHandler(this.grpInputFileInfo_DragDrop); this.grpInputFileInfo.DragEnter += new System.Windows.Forms.DragEventHandler(this.grpInputFile_DragEnter); // @@ -551,7 +551,7 @@ private void InitializeComponent() this.grpLog.Size = new System.Drawing.Size(755, 106); this.grpLog.TabIndex = 8; this.grpLog.TabStop = false; - this.grpLog.Text = "Log"; + this.grpLog.Text = "日志"; // // frmMain // @@ -560,10 +560,10 @@ private void InitializeComponent() this.ClientSize = new System.Drawing.Size(624, 561); this.Controls.Add(this.toolStripContainer1); this.Controls.Add(this.grpLog); - this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.MinimumSize = new System.Drawing.Size(400, 400); this.Name = "frmMain"; - this.Text = "gMKVExtractGUI"; + this.Text = "gMKVExtractGUI_chs"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing); this.ResizeEnd += new System.EventHandler(this.frmMain_ResizeEnd); this.ClientSizeChanged += new System.EventHandler(this.frmMain_ClientSizeChanged); diff --git a/gMKVExtractGUI/Forms/frmMain.cs b/gMKVExtractGUI/Forms/frmMain.cs index fd7d63d..ecaf0a6 100644 --- a/gMKVExtractGUI/Forms/frmMain.cs +++ b/gMKVExtractGUI/Forms/frmMain.cs @@ -52,7 +52,7 @@ public frmMain() Icon = Icon.ExtractAssociatedIcon(this.GetExecutingAssemblyLocation()); // Set form title - Text = String.Format("gMKVExtractGUI v{0} -- By Gpower2", Assembly.GetExecutingAssembly().GetName().Version); + Text = String.Format("gMKVExtractGUI_chs v{0}", Assembly.GetExecutingAssembly().GetName().Version); // Set tooltips SetTooltips(); @@ -109,7 +109,7 @@ public frmMain() } else { - throw new Exception(String.Format("mkvmerge was not found in path {0}!", Path.Combine("usr", "bin"))); + throw new Exception(String.Format("路径中未找到 mkvmerge {0}!", Path.Combine("usr", "bin"))); } } } @@ -140,14 +140,14 @@ public frmMain() String exceptionMessage = ""; if (gMKVHelper.IsOnLinux) { - exceptionMessage = "Could not find MKVToolNix in /usr/bin, or in the current directory, or in the ini file!"; + exceptionMessage = "无法在 /usr/bin ,当前目录,或ini文件中找到 MKVToolNix !"; } else { - exceptionMessage = "Could not find MKVToolNix in registry, or in the current directory, or in the ini file!"; + exceptionMessage = "无法在注册表,当前目录,或ini文件中找到 MKVToolNix !"; } gMKVLogger.Log(exceptionMessage); - throw new Exception(exceptionMessage + Environment.NewLine + "Please download and reinstall or provide a manual path!"); + throw new Exception(exceptionMessage + Environment.NewLine + "请下载并重新安装或提供一个手动指定的路径!"); } } } @@ -176,7 +176,7 @@ private void SetTooltips() //_ToolTip.ReshowDelay = 100; //_ToolTip.IsBalloon = true; //_ToolTip.ToolTipIcon = ToolTipIcon.Info; - //_ToolTip.ToolTipTitle = "gMKVExtractGUI Help"; + //_ToolTip.ToolTipTitle = "gMKVExtractGUI_chs Help"; //// Assign Control Tooltip Text //StringBuilder txtBuilder = new StringBuilder(); @@ -219,7 +219,7 @@ private void txt_DragDrop(object sender, DragEventArgs e) // check if MKVToolnix Path is already set if (!String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { - if (ShowQuestion("Do you really want to change MKVToolnix path?", "Are you sure?") != DialogResult.Yes) + if (ShowQuestion("是否更改 MKVToolnix 路径?", "是否确定?") != DialogResult.Yes) { return; } @@ -382,7 +382,7 @@ private void txtMKVToolnixPath_TextChanged(object sender, EventArgs e) _FromConstructor = true; txtMKVToolnixPath.Text = ""; _FromConstructor = false; - throw new Exception("The folder does not contain MKVToolnix!"); + throw new Exception("该文件夹内不包含 MKVToolnix!"); } // Write the value to the ini file @@ -439,7 +439,7 @@ private void txtInputFile_TextChanged(object sender, EventArgs e) // check if input file is valid if (!File.Exists(txtInputFile.Text.Trim())) { - throw new Exception("The input file " + Environment.NewLine + Environment.NewLine + txtInputFile.Text.Trim() + Environment.NewLine + Environment.NewLine + "does not exist!"); + throw new Exception("输入文件 " + Environment.NewLine + Environment.NewLine + txtInputFile.Text.Trim() + Environment.NewLine + Environment.NewLine + "不存在!"); } // check if file is an mkv file String inputExtension = Path.GetExtension(txtInputFile.Text.Trim()).ToLower(); @@ -449,7 +449,7 @@ private void txtInputFile_TextChanged(object sender, EventArgs e) && inputExtension != ".mk3d" && inputExtension != ".webm") { - throw new Exception("The input file " + Environment.NewLine + Environment.NewLine + txtInputFile.Text.Trim() + Environment.NewLine + Environment.NewLine + "is not a valid matroska file!"); + throw new Exception("输入文件 " + Environment.NewLine + Environment.NewLine + txtInputFile.Text.Trim() + Environment.NewLine + Environment.NewLine + "不是一个有效的 Matroska 文件!"); } // check if output directory is locked if (!chkLockOutputDirectory.Checked) @@ -464,7 +464,7 @@ private void txtInputFile_TextChanged(object sender, EventArgs e) { if (seg is gMKVSegmentInfo) { - txtSegmentInfo.Text = String.Format("Writing Application: {1}{0}Muxing Application: {2}{0}Duration: {3}{0}Date: {4}", + txtSegmentInfo.Text = String.Format("写入应用: {1}{0}混流应用: {2}{0}持续时间: {3}{0}日期: {4}", Environment.NewLine, ((gMKVSegmentInfo)seg).WritingApplication, ((gMKVSegmentInfo)seg).MuxingApplication, @@ -490,7 +490,7 @@ private void txtInputFile_TextChanged(object sender, EventArgs e) finally { tlpMain.Enabled = true; - grpInputFileInfo.Text = String.Format("Input File Information ({0} Tracks)", chkLstInputFileTracks.Items.Count); + grpInputFileInfo.Text = String.Format("输入文件信息 ({0} 个轨道)", chkLstInputFileTracks.Items.Count); this.Refresh(); gTaskbarProgress.SetState(this, gTaskbarProgress.TaskbarStates.NoProgress); Application.DoEvents(); @@ -509,7 +509,7 @@ private void btnBrowseInputFile_Click(object sender, EventArgs e) ofd.InitialDirectory = Path.GetDirectoryName(txtInputFile.Text.Trim()); } } - ofd.Title = "Select an input mkv file..."; + ofd.Title = "选择一个输入的 mkv 文件 ..."; ofd.Filter = "Matroska files (*.mkv;*.mka;*.mks;*.mk3d;*.webm)|*.mkv;*.mka;*.mks;*.mk3d;*.webm|Matroska video files (*.mkv)|*.mkv|Matroska audio files (*.mka)|*.mka|Matroska subtitle files (*.mks)|*.mks|Matroska 3D files (*.mk3d)|*.mk3d|Webm files (*.webm)|*.webm"; ofd.Multiselect = false; ofd.AutoUpgradeEnabled = true; @@ -585,8 +585,8 @@ private void btnBrowseOutputDirectory_Click(object sender, EventArgs e) sfd.CheckFileExists = false; sfd.CheckPathExists = false; sfd.OverwritePrompt = false; - sfd.FileName = "Select directory"; - sfd.Title = "Select output directory..."; + sfd.FileName = "选择路径"; + sfd.Title = "选择输出路径 ..."; if ((sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)) { txtOutputDirectory.Text = Path.GetDirectoryName(sfd.FileName); @@ -608,7 +608,7 @@ private void btnBrowseMKVToolnixPath_Click(object sender, EventArgs e) // check if MKVToolnix Path is already set if (!String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { - if (ShowQuestion("Do you really want to change MKVToolnix path?", "Are you sure?") != DialogResult.Yes) + if (ShowQuestion("是否更改 MKVToolnix 路径?", "是否确定?") != DialogResult.Yes) { return; } @@ -618,8 +618,8 @@ private void btnBrowseMKVToolnixPath_Click(object sender, EventArgs e) ofd.RestoreDirectory = true; ofd.CheckFileExists = false; ofd.CheckPathExists = false; - ofd.FileName = "Select directory"; - ofd.Title = "Select MKVToolnix directory..."; + ofd.FileName = "选择路径"; + ofd.Title = "选择 MKVToolnix 路径 ..."; if (txtMKVToolnixPath.Text.Trim().Length > 0) { if (Directory.Exists(txtMKVToolnixPath.Text.Trim())) @@ -820,7 +820,7 @@ private void btnExtract_Click(object sender, EventArgs e) btnAbort.Enabled = true; btnAbortAll.Enabled = true; gTaskbarProgress.SetState(this, gTaskbarProgress.TaskbarStates.Normal); - gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Shield, "Extracting..."); + gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Shield, "导出中 ..."); Application.DoEvents(); while (myThread.ThreadState != System.Threading.ThreadState.Stopped) { @@ -834,7 +834,7 @@ private void btnExtract_Click(object sender, EventArgs e) UpdateProgress(100); if (chkShowPopup.Checked) { - ShowSuccessMessage("The extraction was completed successfully!"); + ShowSuccessMessage("导出已成功!"); } else { @@ -848,7 +848,7 @@ private void btnExtract_Click(object sender, EventArgs e) gMKVLogger.Log(ex.ToString()); gTaskbarProgress.SetState(this, gTaskbarProgress.TaskbarStates.Error); - gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Error, "Error!"); + gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Error, "错误!"); exceptionOccured = true; ShowErrorMessage(ex.Message); } @@ -868,7 +868,7 @@ private void btnExtract_Click(object sender, EventArgs e) lblTrack.Text = ""; if (!_JobMode) { - lblStatus.Text = "Extraction completed!"; + lblStatus.Text = "导出完成!"; } } _ExtractRunning = false; @@ -954,28 +954,28 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che { if (String.IsNullOrWhiteSpace(txtInputFile.Text)) { - throw new Exception("You must provide with a valid Matroska file!"); + throw new Exception("你必须提供一个有效的 Matroska 文件!"); } if (!File.Exists(txtInputFile.Text.Trim())) { - throw new Exception("The input file does not exist!"); + throw new Exception("输入文件不存在!"); } if (String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { - throw new Exception("You must provide with MKVToolnix path!"); + throw new Exception("你必须提供 MKVToolnix 路径!"); } if (!File.Exists(Path.Combine(txtMKVToolnixPath.Text.Trim(), gMKVHelper.MKV_MERGE_GUI_FILENAME)) && !File.Exists(Path.Combine(txtMKVToolnixPath.Text.Trim(), gMKVHelper.MKV_MERGE_NEW_GUI_FILENAME))) { - throw new Exception("The MKVToolnix path provided does not contain MKVToolnix files!"); + throw new Exception("提供的 MKVToolnix 路径内不包含 MKVToolnix 文件!"); } if (checkSelectedTracks) { if (chkLstInputFileTracks.CheckedItems.Count == 0) { - throw new Exception("You must select a track to extract!"); + throw new Exception("你必须选择一个轨道以导出!"); } FormMkvExtractionMode selectedExtractionMode = (FormMkvExtractionMode)Enum.Parse(typeof(FormMkvExtractionMode), (String)cmbExtractionMode.SelectedItem); @@ -995,7 +995,7 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che } if (!ok) { - throw new Exception("You must select a video, audio or subtitles track to extract timecodes!"); + throw new Exception("你必须选择一个视频,音频或字幕轨道以导出时间码!"); } } @@ -1014,7 +1014,7 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che } if (!ok) { - throw new Exception("You must select a video, audio or subtitles track to extract cues!"); + throw new Exception("你必须选择一个视频,音频或字幕轨道以导出辅助文件!"); } } } @@ -1027,7 +1027,7 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che { if (cmbChapterType.SelectedIndex == -1) { - throw new Exception("You must select a chapter type!"); + throw new Exception("你必须选择一个章节类型!"); } } } @@ -1302,8 +1302,8 @@ private void frmMain_FormClosing(object sender, FormClosingEventArgs e) private void chkJobMode_CheckedChanged(object sender, EventArgs e) { _JobMode = chkJobMode.Checked; - btnExtract.Text = _JobMode ? "Add job" : "Extract"; - btnShowLog.Text = _JobMode ? "Jobs..." : "Log..."; + btnExtract.Text = _JobMode ? "添加任务" : "导出"; + btnShowLog.Text = _JobMode ? "任务 ..." : "日志 ..."; if (!_FromConstructor) { _Settings.JobMode = chkJobMode.Checked; diff --git a/gMKVExtractGUI/Forms/frmMain2.Designer.cs b/gMKVExtractGUI/Forms/frmMain2.Designer.cs index f36eaa2..83fcfac 100644 --- a/gMKVExtractGUI/Forms/frmMain2.Designer.cs +++ b/gMKVExtractGUI/Forms/frmMain2.Designer.cs @@ -188,7 +188,7 @@ private void InitializeComponent() this.grpActions.Size = new System.Drawing.Size(618, 54); this.grpActions.TabIndex = 8; this.grpActions.TabStop = false; - this.grpActions.Text = "Actions"; + this.grpActions.Text = "操作"; // // btnAddJobs // @@ -197,7 +197,7 @@ private void InitializeComponent() this.btnAddJobs.Name = "btnAddJobs"; this.btnAddJobs.Size = new System.Drawing.Size(70, 30); this.btnAddJobs.TabIndex = 14; - this.btnAddJobs.Text = "Add Jobs"; + this.btnAddJobs.Text = "添加任务"; this.btnAddJobs.UseVisualStyleBackColor = true; this.btnAddJobs.Click += new System.EventHandler(this.btnExtract_btnAddJobs_Click); // @@ -207,7 +207,7 @@ private void InitializeComponent() this.btnShowJobs.Name = "btnShowJobs"; this.btnShowJobs.Size = new System.Drawing.Size(60, 30); this.btnShowJobs.TabIndex = 13; - this.btnShowJobs.Text = "Jobs..."; + this.btnShowJobs.Text = "任务 ..."; this.btnShowJobs.UseVisualStyleBackColor = true; this.btnShowJobs.Click += new System.EventHandler(this.btnShowJobs_Click); // @@ -218,7 +218,7 @@ private void InitializeComponent() this.chkShowPopup.Name = "chkShowPopup"; this.chkShowPopup.Size = new System.Drawing.Size(61, 19); this.chkShowPopup.TabIndex = 12; - this.chkShowPopup.Text = "Popup"; + this.chkShowPopup.Text = "弹出"; this.chkShowPopup.UseVisualStyleBackColor = true; this.chkShowPopup.CheckedChanged += new System.EventHandler(this.chkShowPopup_CheckedChanged); // @@ -229,7 +229,7 @@ private void InitializeComponent() this.btnExtract.Name = "btnExtract"; this.btnExtract.Size = new System.Drawing.Size(70, 30); this.btnExtract.TabIndex = 10; - this.btnExtract.Text = "Extract"; + this.btnExtract.Text = "导出"; this.btnExtract.UseVisualStyleBackColor = true; this.btnExtract.Click += new System.EventHandler(this.btnExtract_btnAddJobs_Click); // @@ -241,7 +241,7 @@ private void InitializeComponent() this.lblExtractionMode.Name = "lblExtractionMode"; this.lblExtractionMode.Size = new System.Drawing.Size(42, 15); this.lblExtractionMode.TabIndex = 9; - this.lblExtractionMode.Text = "Extract"; + this.lblExtractionMode.Text = "导出"; // // cmbExtractionMode // @@ -260,7 +260,7 @@ private void InitializeComponent() this.btnShowLog.Name = "btnShowLog"; this.btnShowLog.Size = new System.Drawing.Size(60, 30); this.btnShowLog.TabIndex = 6; - this.btnShowLog.Text = "Log..."; + this.btnShowLog.Text = "日志 ..."; this.btnShowLog.UseVisualStyleBackColor = true; this.btnShowLog.Click += new System.EventHandler(this.btnShowLog_Click); // @@ -272,7 +272,7 @@ private void InitializeComponent() this.lblChapterType.Name = "lblChapterType"; this.lblChapterType.Size = new System.Drawing.Size(49, 15); this.lblChapterType.TabIndex = 3; - this.lblChapterType.Text = "Chapter"; + this.lblChapterType.Text = "章节"; // // cmbChapterType // @@ -297,7 +297,7 @@ private void InitializeComponent() this.grpOutputDirectory.Size = new System.Drawing.Size(618, 54); this.grpOutputDirectory.TabIndex = 7; this.grpOutputDirectory.TabStop = false; - this.grpOutputDirectory.Text = "Output Directory for Selected File (you can drag and drop the directory)"; + this.grpOutputDirectory.Text = "已选文件的输出目录(允许拖拽目录)"; // // chkUseSourceDirectory // @@ -308,7 +308,7 @@ private void InitializeComponent() this.chkUseSourceDirectory.Name = "chkUseSourceDirectory"; this.chkUseSourceDirectory.Size = new System.Drawing.Size(84, 19); this.chkUseSourceDirectory.TabIndex = 4; - this.chkUseSourceDirectory.Text = "Use Source"; + this.chkUseSourceDirectory.Text = "同源"; this.chkUseSourceDirectory.UseVisualStyleBackColor = true; this.chkUseSourceDirectory.CheckedChanged += new System.EventHandler(this.chkUseSourceDirectory_CheckedChanged); // @@ -319,7 +319,7 @@ private void InitializeComponent() this.btnBrowseOutputDirectory.Name = "btnBrowseOutputDirectory"; this.btnBrowseOutputDirectory.Size = new System.Drawing.Size(80, 30); this.btnBrowseOutputDirectory.TabIndex = 3; - this.btnBrowseOutputDirectory.Text = "Browse..."; + this.btnBrowseOutputDirectory.Text = "浏览 ..."; this.btnBrowseOutputDirectory.UseVisualStyleBackColor = true; this.btnBrowseOutputDirectory.Click += new System.EventHandler(this.btnBrowseOutputDirectory_Click); // @@ -352,7 +352,7 @@ private void InitializeComponent() // this.setAsDefaultDirectoryToolStripMenuItem.Name = "setAsDefaultDirectoryToolStripMenuItem"; this.setAsDefaultDirectoryToolStripMenuItem.Size = new System.Drawing.Size(259, 22); - this.setAsDefaultDirectoryToolStripMenuItem.Text = "Set As Default Directory"; + this.setAsDefaultDirectoryToolStripMenuItem.Text = "设未默认目录"; this.setAsDefaultDirectoryToolStripMenuItem.Click += new System.EventHandler(this.setAsDefaultDirectoryToolStripMenuItem_Click); // // useCurrentlySetDefaultDirectoryToolStripMenuItem @@ -360,7 +360,7 @@ private void InitializeComponent() this.useCurrentlySetDefaultDirectoryToolStripMenuItem.Enabled = false; this.useCurrentlySetDefaultDirectoryToolStripMenuItem.Name = "useCurrentlySetDefaultDirectoryToolStripMenuItem"; this.useCurrentlySetDefaultDirectoryToolStripMenuItem.Size = new System.Drawing.Size(259, 22); - this.useCurrentlySetDefaultDirectoryToolStripMenuItem.Text = "Use Currently Set Default Directory:"; + this.useCurrentlySetDefaultDirectoryToolStripMenuItem.Text = "使用当前设定的默认目录:"; this.useCurrentlySetDefaultDirectoryToolStripMenuItem.Click += new System.EventHandler(this.useCurrentlySetDefaultDirectoryToolStripMenuItem_Click); // // grpConfig @@ -373,7 +373,7 @@ private void InitializeComponent() this.grpConfig.Size = new System.Drawing.Size(618, 54); this.grpConfig.TabIndex = 0; this.grpConfig.TabStop = false; - this.grpConfig.Text = "MKVToolnix Directory (you can drag and drop the directory)"; + this.grpConfig.Text = "MKVToolnix 路径(允许拖拽目录)"; // // txtMKVToolnixPath // @@ -398,7 +398,7 @@ private void InitializeComponent() this.btnBrowseMKVToolnixPath.Name = "btnBrowseMKVToolnixPath"; this.btnBrowseMKVToolnixPath.Size = new System.Drawing.Size(80, 30); this.btnBrowseMKVToolnixPath.TabIndex = 6; - this.btnBrowseMKVToolnixPath.Text = "Browse..."; + this.btnBrowseMKVToolnixPath.Text = "浏览 ..."; this.btnBrowseMKVToolnixPath.UseVisualStyleBackColor = true; this.btnBrowseMKVToolnixPath.Click += new System.EventHandler(this.btnBrowseMKVToolnixPath_Click); // @@ -411,7 +411,7 @@ private void InitializeComponent() this.grpInputFiles.Size = new System.Drawing.Size(618, 239); this.grpInputFiles.TabIndex = 1; this.grpInputFiles.TabStop = false; - this.grpInputFiles.Text = "Input Files (you can drag and drop files or directories)"; + this.grpInputFiles.Text = "输入文件(允许拖拽文件或目录)"; // // trvInputFiles // @@ -467,7 +467,7 @@ private void InitializeComponent() // this.addInputFileToolStripMenuItem.Name = "addInputFileToolStripMenuItem"; this.addInputFileToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.addInputFileToolStripMenuItem.Text = "Add Input File(s)..."; + this.addInputFileToolStripMenuItem.Text = "添加输入文件(多选) ..."; this.addInputFileToolStripMenuItem.Click += new System.EventHandler(this.addInputFileToolStripMenuItem_Click); // // toolStripSeparator5 @@ -479,7 +479,7 @@ private void InitializeComponent() // this.checkTracksToolStripMenuItem.Name = "checkTracksToolStripMenuItem"; this.checkTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.checkTracksToolStripMenuItem.Text = "Check All Tracks"; + this.checkTracksToolStripMenuItem.Text = "勾选全部轨道"; this.checkTracksToolStripMenuItem.Click += new System.EventHandler(this.checkTracksToolStripMenuItem_Click); // // toolStripSeparator2 @@ -493,7 +493,7 @@ private void InitializeComponent() this.allVideoTracksToolStripMenuItem}); this.checkVideoTracksToolStripMenuItem.Name = "checkVideoTracksToolStripMenuItem"; this.checkVideoTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.checkVideoTracksToolStripMenuItem.Text = "Check Video Tracks..."; + this.checkVideoTracksToolStripMenuItem.Text = "勾选视频轨道 ..."; // // allVideoTracksToolStripMenuItem // @@ -508,7 +508,7 @@ private void InitializeComponent() this.allAudioTracksToolStripMenuItem}); this.checkAudioTracksToolStripMenuItem.Name = "checkAudioTracksToolStripMenuItem"; this.checkAudioTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.checkAudioTracksToolStripMenuItem.Text = "Check Audio Tracks..."; + this.checkAudioTracksToolStripMenuItem.Text = "勾选音频轨道 ..."; // // allAudioTracksToolStripMenuItem // @@ -523,7 +523,7 @@ private void InitializeComponent() this.allSubtitleTracksToolStripMenuItem}); this.checkSubtitleTracksToolStripMenuItem.Name = "checkSubtitleTracksToolStripMenuItem"; this.checkSubtitleTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.checkSubtitleTracksToolStripMenuItem.Text = "Check Subtitle Tracks..."; + this.checkSubtitleTracksToolStripMenuItem.Text = "勾选字幕轨道 ..."; // // allSubtitleTracksToolStripMenuItem // @@ -538,7 +538,7 @@ private void InitializeComponent() this.allChapterTracksToolStripMenuItem}); this.checkChapterTracksToolStripMenuItem.Name = "checkChapterTracksToolStripMenuItem"; this.checkChapterTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.checkChapterTracksToolStripMenuItem.Text = "Check Chapter Tracks..."; + this.checkChapterTracksToolStripMenuItem.Text = "勾选章节轨道 ..."; // // allChapterTracksToolStripMenuItem // @@ -553,7 +553,7 @@ private void InitializeComponent() this.allAttachmentTracksToolStripMenuItem}); this.checkAttachmentTracksToolStripMenuItem.Name = "checkAttachmentTracksToolStripMenuItem"; this.checkAttachmentTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.checkAttachmentTracksToolStripMenuItem.Text = "Check Attachment Tracks..."; + this.checkAttachmentTracksToolStripMenuItem.Text = "勾选附件轨道 ..."; // // allAttachmentTracksToolStripMenuItem // @@ -571,7 +571,7 @@ private void InitializeComponent() // this.uncheckTracksToolStripMenuItem.Name = "uncheckTracksToolStripMenuItem"; this.uncheckTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.uncheckTracksToolStripMenuItem.Text = "Uncheck All Tracks"; + this.uncheckTracksToolStripMenuItem.Text = "禁选全部轨道"; this.uncheckTracksToolStripMenuItem.Click += new System.EventHandler(this.uncheckTracksToolStripMenuItem_Click); // // toolStripSeparator1 @@ -585,7 +585,7 @@ private void InitializeComponent() this.allVideoTracksToolStripMenuItem1}); this.uncheckVideoTracksToolStripMenuItem.Name = "uncheckVideoTracksToolStripMenuItem"; this.uncheckVideoTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.uncheckVideoTracksToolStripMenuItem.Text = "Uncheck Video Tracks..."; + this.uncheckVideoTracksToolStripMenuItem.Text = "禁选视频轨道 ..."; // // allVideoTracksToolStripMenuItem1 // @@ -600,7 +600,7 @@ private void InitializeComponent() this.allAudioTracksToolStripMenuItem1}); this.uncheckAudioTracksToolStripMenuItem.Name = "uncheckAudioTracksToolStripMenuItem"; this.uncheckAudioTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.uncheckAudioTracksToolStripMenuItem.Text = "Uncheck Audio Tracks..."; + this.uncheckAudioTracksToolStripMenuItem.Text = "禁选音频轨道 ..."; // // allAudioTracksToolStripMenuItem1 // @@ -615,7 +615,7 @@ private void InitializeComponent() this.allSubtitleTracksToolStripMenuItem1}); this.uncheckSubtitleTracksToolStripMenuItem.Name = "uncheckSubtitleTracksToolStripMenuItem"; this.uncheckSubtitleTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.uncheckSubtitleTracksToolStripMenuItem.Text = "Uncheck Subtitle Tracks..."; + this.uncheckSubtitleTracksToolStripMenuItem.Text = "禁选字幕轨道 ..."; // // allSubtitleTracksToolStripMenuItem1 // @@ -630,7 +630,7 @@ private void InitializeComponent() this.allChapterTracksToolStripMenuItem1}); this.uncheckChapterTracksToolStripMenuItem.Name = "uncheckChapterTracksToolStripMenuItem"; this.uncheckChapterTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.uncheckChapterTracksToolStripMenuItem.Text = "Uncheck Chapter Tracks..."; + this.uncheckChapterTracksToolStripMenuItem.Text = "禁选章节轨道 ..."; // // allChapterTracksToolStripMenuItem1 // @@ -645,7 +645,7 @@ private void InitializeComponent() this.allAttachmentTracksToolStripMenuItem1}); this.uncheckAttachmentTracksToolStripMenuItem.Name = "uncheckAttachmentTracksToolStripMenuItem"; this.uncheckAttachmentTracksToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.uncheckAttachmentTracksToolStripMenuItem.Text = "Uncheck Attachment Tracks..."; + this.uncheckAttachmentTracksToolStripMenuItem.Text = "禁选附件轨道 ..."; // // allAttachmentTracksToolStripMenuItem1 // @@ -663,28 +663,28 @@ private void InitializeComponent() // this.removeAllInputFilesToolStripMenuItem.Name = "removeAllInputFilesToolStripMenuItem"; this.removeAllInputFilesToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.removeAllInputFilesToolStripMenuItem.Text = "Remove All Input Files"; + this.removeAllInputFilesToolStripMenuItem.Text = "移除全部输入文件"; this.removeAllInputFilesToolStripMenuItem.Click += new System.EventHandler(this.removeAllInputFilesToolStripMenuItem_Click); // // removeSelectedInputFileToolStripMenuItem // this.removeSelectedInputFileToolStripMenuItem.Name = "removeSelectedInputFileToolStripMenuItem"; this.removeSelectedInputFileToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.removeSelectedInputFileToolStripMenuItem.Text = "Remove Selected Input File"; + this.removeSelectedInputFileToolStripMenuItem.Text = "移除已选的输入文件"; this.removeSelectedInputFileToolStripMenuItem.Click += new System.EventHandler(this.removeSelectedInputFileToolStripMenuItem_Click); // // openSelectedFileToolStripMenuItem // this.openSelectedFileToolStripMenuItem.Name = "openSelectedFileToolStripMenuItem"; this.openSelectedFileToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.openSelectedFileToolStripMenuItem.Text = "Open Selected File..."; + this.openSelectedFileToolStripMenuItem.Text = "打开已选的文件 ..."; this.openSelectedFileToolStripMenuItem.Click += new System.EventHandler(this.openSelectedFileToolStripMenuItem_Click); // // openSelectedFileFolderToolStripMenuItem // this.openSelectedFileFolderToolStripMenuItem.Name = "openSelectedFileFolderToolStripMenuItem"; this.openSelectedFileFolderToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.openSelectedFileFolderToolStripMenuItem.Text = "Open Selected File Folder..."; + this.openSelectedFileFolderToolStripMenuItem.Text = "打开已选文件的文件夹 ..."; this.openSelectedFileFolderToolStripMenuItem.Click += new System.EventHandler(this.openSelectedFileFolderToolStripMenuItem_Click); // // toolStripSeparator3 @@ -696,14 +696,14 @@ private void InitializeComponent() // this.expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem"; this.expandAllToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.expandAllToolStripMenuItem.Text = "Expand All"; + this.expandAllToolStripMenuItem.Text = "全部展开"; this.expandAllToolStripMenuItem.Click += new System.EventHandler(this.expandAllToolStripMenuItem_Click); // // collapseAllToolStripMenuItem // this.collapseAllToolStripMenuItem.Name = "collapseAllToolStripMenuItem"; this.collapseAllToolStripMenuItem.Size = new System.Drawing.Size(231, 22); - this.collapseAllToolStripMenuItem.Text = "Collapse All"; + this.collapseAllToolStripMenuItem.Text = "全部折叠"; this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click); // // grpSelectedFileInfo @@ -716,7 +716,7 @@ private void InitializeComponent() this.grpSelectedFileInfo.Size = new System.Drawing.Size(618, 94); this.grpSelectedFileInfo.TabIndex = 6; this.grpSelectedFileInfo.TabStop = false; - this.grpSelectedFileInfo.Text = "Selected File Information"; + this.grpSelectedFileInfo.Text = "已选文件的信息"; this.grpSelectedFileInfo.DragDrop += new System.Windows.Forms.DragEventHandler(this.trvInputFiles_DragDrop); this.grpSelectedFileInfo.DragEnter += new System.Windows.Forms.DragEventHandler(this.trvInputFiles_DragEnter); // @@ -740,7 +740,7 @@ private void InitializeComponent() this.btnAbort.Name = "btnAbort"; this.btnAbort.Size = new System.Drawing.Size(80, 30); this.btnAbort.TabIndex = 12; - this.btnAbort.Text = "Abort"; + this.btnAbort.Text = "中止"; this.btnAbort.UseVisualStyleBackColor = true; this.btnAbort.Click += new System.EventHandler(this.btnAbort_Click); // @@ -751,7 +751,7 @@ private void InitializeComponent() this.btnAbortAll.Name = "btnAbortAll"; this.btnAbortAll.Size = new System.Drawing.Size(80, 30); this.btnAbortAll.TabIndex = 13; - this.btnAbortAll.Text = "Abort All"; + this.btnAbortAll.Text = "中止全部"; this.btnAbortAll.UseVisualStyleBackColor = true; this.btnAbortAll.Click += new System.EventHandler(this.btnAbortAll_Click); // @@ -762,7 +762,7 @@ private void InitializeComponent() this.btnOptions.Name = "btnOptions"; this.btnOptions.Size = new System.Drawing.Size(80, 30); this.btnOptions.TabIndex = 14; - this.btnOptions.Text = "Options..."; + this.btnOptions.Text = "选项 ..."; this.btnOptions.UseVisualStyleBackColor = true; this.btnOptions.Click += new System.EventHandler(this.btnOptions_Click); // @@ -779,7 +779,7 @@ private void InitializeComponent() this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.MinimumSize = new System.Drawing.Size(400, 400); this.Name = "frmMain2"; - this.Text = "gMKVExtractGUI"; + this.Text = "gMKVExtractGUI_chs"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing); this.Shown += new System.EventHandler(this.frmMain2_Shown); this.ResizeEnd += new System.EventHandler(this.frmMain_ResizeEnd); diff --git a/gMKVExtractGUI/Forms/frmMain2.cs b/gMKVExtractGUI/Forms/frmMain2.cs index 210998f..9fd040e 100644 --- a/gMKVExtractGUI/Forms/frmMain2.cs +++ b/gMKVExtractGUI/Forms/frmMain2.cs @@ -62,7 +62,7 @@ public frmMain2() Icon = Icon.ExtractAssociatedIcon(this.GetExecutingAssemblyLocation()); // Set form title - Text = String.Format("gMKVExtractGUI v{0} -- By Gpower2", this.GetCurrentVersion()); + Text = String.Format("gMKVExtractGUI_chs v{0}", this.GetCurrentVersion()); btnAbort.Enabled = false; btnAbortAll.Enabled = false; @@ -123,14 +123,14 @@ public frmMain2() if (String.IsNullOrWhiteSpace(manualPath)) { manualPathOK = false; - gMKVLogger.Log(String.Format("The manual path for MKVToolNix was empty!")); + gMKVLogger.Log(String.Format("手动指定的 MKVToolNix 为空!")); } else { if (!Directory.Exists(manualPath)) { manualPathOK = false; - gMKVLogger.Log(String.Format("The manual path for MKVToolNix does not exist!")); + gMKVLogger.Log(String.Format("手动指定的 MKVToolNix 路径不存在!")); } else { @@ -139,7 +139,7 @@ public frmMain2() ) { manualPathOK = false; - gMKVLogger.Log(String.Format("mkvmerge was not found in manual path!")); + gMKVLogger.Log(String.Format("手动指定的路径中未找到 mkvmerge !")); } else { @@ -151,7 +151,7 @@ public frmMain2() if (manualMkvToolNixPath && !manualPathOK) { - gMKVLogger.Log(String.Format("Failed to set manual path! Trying to auto-detect...")); + gMKVLogger.Log(String.Format("手动指定路径失败!尝试自动检测 ...")); } if (!manualMkvToolNixPath || (manualMkvToolNixPath && !manualPathOK)) @@ -175,7 +175,7 @@ public frmMain2() } else { - throw new Exception(String.Format("mkvmerge was not found in path {0}!", Path.Combine("usr", "bin"))); + throw new Exception(String.Format("路径中未找到 mkvmerge {0}!", Path.Combine("usr", "bin"))); } } } @@ -206,14 +206,14 @@ public frmMain2() String exceptionMessage = ""; if (gMKVHelper.IsOnLinux) { - exceptionMessage = "Could not find MKVToolNix in /usr/bin, or in the current directory, or in the ini file!"; + exceptionMessage = "无法在 /usr/bin ,当前目录,或ini文件中找到 MKVToolNix !"; } else { - exceptionMessage = "Could not find MKVToolNix in registry, or in the current directory, or in the ini file!"; + exceptionMessage = "无法在注册表,当前目录,或ini文件中找到 MKVToolNix !"; } gMKVLogger.Log(exceptionMessage); - throw new Exception(exceptionMessage + Environment.NewLine + "Please download and reinstall or provide a manual path!"); + throw new Exception(exceptionMessage + Environment.NewLine + "请下载并重新安装或提供一个手动指定的路径!"); } } } @@ -238,7 +238,7 @@ private void frmMain2_Shown(object sender, EventArgs e) { tlpMain.Enabled = false; Cursor = Cursors.WaitCursor; - txtSegmentInfo.Text = "Getting files..."; + txtSegmentInfo.Text = "获取文件中 ..."; // Get the file list List fileList = GetFilesFromInputFileDrop(_CmdArguments.Where(c => !c.StartsWith("--")).ToArray()); @@ -246,7 +246,7 @@ private void frmMain2_Shown(object sender, EventArgs e) // Check if any valid matroska files were provided if (!fileList.Any()) { - throw new Exception("No valid matroska files were provided!"); + throw new Exception("提供的 Matroska 文件无效!"); } // Add files to the TreeView @@ -295,7 +295,7 @@ private void txt_DragDrop(object sender, DragEventArgs e) // check if MKVToolnix Path is already set if (!String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { - if (ShowQuestion("Do you really want to change MKVToolnix path?", "Are you sure?", false) != DialogResult.Yes) + if (ShowQuestion("是否更改 MKVToolnix 路径?", "是否确定?", false) != DialogResult.Yes) { return; } @@ -383,7 +383,7 @@ private List GetFilesFromInputFileDrop(string[] argFileDrop) if (subDirList.Any()) { Cursor = Cursors.Default; - var result = ShowQuestion("Do you want to include files in sub directories?", "Sub directories found!"); + var result = ShowQuestion("是否包括子目录中的文件?", "子目录已发现!"); Cursor = Cursors.WaitCursor; if (result == DialogResult.Yes) { @@ -455,7 +455,7 @@ private void trvInputFiles_DragDrop(object sender, DragEventArgs e) { tlpMain.Enabled = false; Cursor = Cursors.WaitCursor; - txtSegmentInfo.Text = "Getting files..."; + txtSegmentInfo.Text = "获取文件中 ..."; // Get the file list List fileList = GetFilesFromInputFileDrop(s); @@ -463,7 +463,7 @@ private void trvInputFiles_DragDrop(object sender, DragEventArgs e) // Check if any valid matroska files were provided if (!fileList.Any()) { - throw new Exception("No valid matroska files were provided!"); + throw new Exception("提供的 Matroska 文件无效!"); } // Add files to the TreeView @@ -540,7 +540,7 @@ private void AddFileNodes(String argMKVToolNixPath, List argFiles, bool // Check if there are any new files to add if (!argFiles.Any()) { - throw new Exception("No new files to add!"); + throw new Exception("未添加新文件!"); } } @@ -581,7 +581,7 @@ private void AddFileNodes(String argMKVToolNixPath, List argFiles, bool prgBrStatus.Value = 0; lblStatus.Text = ""; - grpInputFiles.Text = String.Format("Input Files (you can drag and drop files or directories) ({0} files)", + grpInputFiles.Text = String.Format("输入文件(允许拖拽文件或目录) ({0} 个文件)", trvInputFiles.AllNodes.Count(n => n != null && n.Tag != null && n.Tag is gMKVSegmentInfo)); tlpMain.Enabled = true; @@ -604,7 +604,7 @@ private NodeResults GetFileInfoNodes(String argMKVToolNixPath, List argF { counter++; txtSegmentInfo.Invoke((MethodInvoker) delegate { - txtSegmentInfo.Text = String.Format("Analyzing {0}...", Path.GetFileName(sf)); + txtSegmentInfo.Text = String.Format("分析中 {0}...", Path.GetFileName(sf)); }); statusStrip.Invoke((MethodInvoker)delegate { @@ -619,7 +619,7 @@ private NodeResults GetFileInfoNodes(String argMKVToolNixPath, List argF } catch (Exception ex) { - results.ErrorMessages.Add(String.Format("file: {0} error: {1}", Path.GetFileName(sf), ex.Message)); + results.ErrorMessages.Add(String.Format("文件: {0} 错误: {1}", Path.GetFileName(sf), ex.Message)); } } @@ -636,19 +636,19 @@ private TreeNode GetFileNode(String argMKVToolNixPath, String argFilename) // Check if MKVToolNix path was provided if (String.IsNullOrWhiteSpace(argMKVToolNixPath)) { - throw new Exception("The MKVToolNix path was not provided!"); + throw new Exception("未提供 MKVToolNix 路径!"); } // Check if filename was provided if (String.IsNullOrWhiteSpace(argFilename)) { - throw new Exception("No filename was provided!"); + throw new Exception("未提供文件名!"); } // Check if file exists if (!File.Exists(argFilename)) { - throw new Exception(String.Format("The file {0} does not exist!", argFilename)); + throw new Exception(String.Format("文件 {0} 不存在!", argFilename)); } // Check if the extension is a valid matroska file @@ -659,7 +659,7 @@ private TreeNode GetFileNode(String argMKVToolNixPath, String argFilename) && inputExtension != ".mk3d" && inputExtension != ".webm") { - throw new Exception("The input file " + argFilename + Environment.NewLine + Environment.NewLine + "is not a valid matroska file!"); + throw new Exception("输入文件 " + argFilename + Environment.NewLine + Environment.NewLine + "不是有效的 Matroska 文件!"); } // get the file information @@ -688,7 +688,7 @@ private void trvInputFiles_AfterSelect(object sender, TreeViewEventArgs e) TreeNode selNode = trvInputFiles.SelectedNode; if(selNode.Tag == null) { - throw new Exception("Selected node has null tag!"); + throw new Exception("选择的节点有空标签!"); } if(!(selNode.Tag is gMKVSegmentInfo)) { @@ -696,19 +696,19 @@ private void trvInputFiles_AfterSelect(object sender, TreeViewEventArgs e) selNode = selNode.Parent; if(selNode == null) { - throw new Exception("Selected node has no parent node!"); + throw new Exception("选择的节点无父节点!"); } if (selNode.Tag == null) { - throw new Exception("Selected node has null tag!"); + throw new Exception("选择的节点有空标签!"); } if (!(selNode.Tag is gMKVSegmentInfo)) { - throw new Exception("Selected node has no info!"); + throw new Exception("选择的节点无信息!"); } } gMKVSegmentInfo seg = selNode.Tag as gMKVSegmentInfo; - txtSegmentInfo.Text = String.Format("Writing Application: {1}{0}Muxing Application: {2}{0}Duration: {3}{0}Date: {4}", + txtSegmentInfo.Text = String.Format("写入应用: {1}{0}混流应用: {2}{0}持续时间: {3}{0}日期: {4}", Environment.NewLine, seg.WritingApplication, seg.MuxingApplication, @@ -723,12 +723,12 @@ private void trvInputFiles_AfterSelect(object sender, TreeViewEventArgs e) } // Set the GroupBox title - grpSelectedFileInfo.Text = String.Format("Selected File Information ({0})", seg.Filename); + grpSelectedFileInfo.Text = String.Format("已选文件的信息 ({0})", seg.Filename); } else { txtSegmentInfo.Clear(); - grpSelectedFileInfo.Text = "Selected File Information"; + grpSelectedFileInfo.Text = "已选文件的信息"; } } catch (Exception ex) @@ -761,7 +761,7 @@ public void UpdateProgress(Object val) public void UpdateTrackLabel(Object filename, Object val) { - txtSegmentInfo.Text = String.Format("Extracting {0} from {1}...", val, Path.GetFileName((string)filename)); + txtSegmentInfo.Text = String.Format("导出中 {0} 从 {1}...", val, Path.GetFileName((string)filename)); Application.DoEvents(); } @@ -769,23 +769,23 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che { if (String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { - throw new Exception("You must provide with MKVToolnix path!"); + throw new Exception("你必须提供 MKVToolnix 路径!"); } if (!File.Exists(Path.Combine(txtMKVToolnixPath.Text.Trim(), gMKVHelper.MKV_MERGE_GUI_FILENAME)) && !File.Exists(Path.Combine(txtMKVToolnixPath.Text.Trim(), gMKVHelper.MKV_MERGE_NEW_GUI_FILENAME))) { - throw new Exception("The MKVToolnix path provided does not contain MKVToolnix files!"); + throw new Exception("提供的 MKVToolnix 路径内不包含 MKVToolnix 文件!"); } if(!chkUseSourceDirectory.Checked && string.IsNullOrWhiteSpace(txtOutputDirectory.Text)) { - throw new Exception("You haven't specified an output directory!"); + throw new Exception("你尚未指定一个输出目录!"); } if (!chkUseSourceDirectory.Checked && !Directory.Exists(txtOutputDirectory.Text.Trim())) { // Ask the user to create the non existing output directory - if (ShowQuestion(String.Format("The output directory \"{0}\" does not exist!{1}{1}Do you want to create it?", txtOutputDirectory.Text.Trim(), Environment.NewLine), "Output directory does not exist!", false) != DialogResult.Yes) + if (ShowQuestion(String.Format("输出路径 \"{0}\" 不存在!{1}{1}是否创建它?", txtOutputDirectory.Text.Trim(), Environment.NewLine), "输出路径不存在!", false) != DialogResult.Yes) { - throw new Exception(String.Format("The output directory \"{0}\" does not exist!{1}{1}Extraction was cancelled!", txtOutputDirectory.Text.Trim(), Environment.NewLine)); + throw new Exception(String.Format("输出路径 \"{0}\" 不存在!{1}{1}导出已取消!", txtOutputDirectory.Text.Trim(), Environment.NewLine)); } else { @@ -806,11 +806,11 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che { if (selectedExtractionMode == FormMkvExtractionMode.Cue_Sheet || selectedExtractionMode == FormMkvExtractionMode.Tags) { - throw new Exception(string.Format("You must select a file's track in order to extract {0}!", (String)cmbExtractionMode.SelectedItem)); + throw new Exception(string.Format("你必须选择一个文件的轨道以导出 {0}!", (String)cmbExtractionMode.SelectedItem)); } else { - throw new Exception("You must select a track to extract!"); + throw new Exception("你必须选择一个轨道以导出!"); } } @@ -821,7 +821,7 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che // Check if the ckecked nodes contain video, audio or subtitle track if (!checkedNodes.Any(t => t.Tag != null && (t.Tag is gMKVTrack))) { - throw new Exception("You must select a video, audio or subtitles track to extract timecodes!"); + throw new Exception("你必须选择一个视频,音频或字幕轨道以导出时间码!"); } } @@ -832,7 +832,7 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che // Check if the ckecked nodes contain video, audio or subtitle track if (!checkedNodes.Any(t => t.Tag != null && (t.Tag is gMKVTrack))) { - throw new Exception("You must select a video, audio or subtitles track to extract cues!"); + throw new Exception("你必须选择一个视频,音频或字幕轨道以导出辅助文件!"); } } } @@ -843,7 +843,7 @@ private void CheckNeccessaryInputFields(Boolean checkSelectedTracks, Boolean che { if (cmbChapterType.SelectedIndex == -1) { - throw new Exception("You must select a chapter type!"); + throw new Exception("你必须选择一个章节类型!"); } } } @@ -1045,7 +1045,7 @@ private void btnExtract_btnAddJobs_Click(object sender, EventArgs e) btnAbortAll.Enabled = true; btnOptions.Enabled = false; gTaskbarProgress.SetState(this, gTaskbarProgress.TaskbarStates.Normal); - gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Shield, "Extracting..."); + gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Shield, "导出中 ..."); Application.DoEvents(); while (myThread.ThreadState != System.Threading.ThreadState.Stopped) { @@ -1060,7 +1060,7 @@ private void btnExtract_btnAddJobs_Click(object sender, EventArgs e) } if (chkShowPopup.Checked) { - ShowSuccessMessage("The extraction was completed successfully!"); + ShowSuccessMessage("导出已成功!"); } else { @@ -1074,7 +1074,7 @@ private void btnExtract_btnAddJobs_Click(object sender, EventArgs e) gMKVLogger.Log(ex.ToString()); gTaskbarProgress.SetState(this, gTaskbarProgress.TaskbarStates.Error); - gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Error, "Error!"); + gTaskbarProgress.SetOverlayIcon(this, SystemIcons.Error, "错误!"); exceptionOccured = true; ShowErrorMessage(ex.Message); } @@ -1093,12 +1093,12 @@ private void btnExtract_btnAddJobs_Click(object sender, EventArgs e) { if (sender == btnExtract) { - lblStatus.Text = "Extraction completed!"; + lblStatus.Text = "导出完成!"; } } trvInputFiles.SelectedNode = null; txtSegmentInfo.Clear(); - grpSelectedFileInfo.Text = "Selected File Information"; + grpSelectedFileInfo.Text = "已选文件的信息"; _ExtractRunning = false; tlpMain.Enabled = true; @@ -1120,8 +1120,8 @@ private void ClearControls() txtOutputDirectory.Clear(); } - grpInputFiles.Text = "Input Files (you can drag and drop files or directories)"; - grpSelectedFileInfo.Text = "Selected File Information"; + grpInputFiles.Text = "输入文件(允许拖拽文件或目录)"; + grpSelectedFileInfo.Text = "已选文件的信息"; txtSegmentInfo.Clear(); ClearStatus(); @@ -1149,7 +1149,7 @@ private void txtMKVToolnixPath_TextChanged(object sender, EventArgs e) _FromConstructor = true; txtMKVToolnixPath.Text = ""; _FromConstructor = false; - throw new Exception("The folder does not contain MKVToolnix!"); + throw new Exception("该文件夹内不包含 MKVToolnix!"); } // Write the value to the ini file @@ -1241,8 +1241,8 @@ private void btnBrowseOutputDirectory_Click(object sender, EventArgs e) sfd.CheckFileExists = false; sfd.CheckPathExists = false; sfd.OverwritePrompt = false; - sfd.FileName = "Select directory"; - sfd.Title = "Select output directory..."; + sfd.FileName = "选择路径"; + sfd.Title = "选择输出路径 ..."; if ((sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)) { txtOutputDirectory.Text = Path.GetDirectoryName(sfd.FileName); @@ -1264,7 +1264,7 @@ private void btnBrowseMKVToolnixPath_Click(object sender, EventArgs e) // check if MKVToolnix Path is already set if (!String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { - if (ShowQuestion("Do you really want to change MKVToolnix path?", "Are you sure?", false) != DialogResult.Yes) + if (ShowQuestion("是否更改 MKVToolnix 路径?", "是否确定?", false) != DialogResult.Yes) { return; } @@ -1274,8 +1274,8 @@ private void btnBrowseMKVToolnixPath_Click(object sender, EventArgs e) ofd.RestoreDirectory = true; ofd.CheckFileExists = false; ofd.CheckPathExists = false; - ofd.FileName = "Select directory"; - ofd.Title = "Select MKVToolnix directory..."; + ofd.FileName = "选择路径"; + ofd.Title = "选择 MKVToolnix 路径 ..."; if (!String.IsNullOrWhiteSpace(txtMKVToolnixPath.Text)) { if (Directory.Exists(txtMKVToolnixPath.Text.Trim())) @@ -1501,13 +1501,13 @@ private void SetContextMenuText() openSelectedFileFolderToolStripMenuItem.Enabled = (trvInputFiles.SelectedNode != null && trvInputFiles.SelectedNode.Tag != null); openSelectedFileToolStripMenuItem.Enabled = (trvInputFiles.SelectedNode != null && trvInputFiles.SelectedNode.Tag != null); - checkTracksToolStripMenuItem.Text = string.Format("Check All Tracks ({0}/{1})", checkedAllTracksCount, allTracksCount); + checkTracksToolStripMenuItem.Text = string.Format("勾选全部轨道 ({0}/{1})", checkedAllTracksCount, allTracksCount); - checkVideoTracksToolStripMenuItem.Text = string.Format("Check Video Tracks... ({0}/{1})", checkedVideoTracksCount, videoTracksCount); - checkAudioTracksToolStripMenuItem.Text = string.Format("Check Audio Tracks... ({0}/{1})", checkedAudioTracksCount, audioTracksCount); - checkSubtitleTracksToolStripMenuItem.Text = string.Format("Check Subtitle Tracks... ({0}/{1})", checkedSubtitleTracksCount, subtitleTracksCount); - checkChapterTracksToolStripMenuItem.Text = string.Format("Check Chapter Tracks... ({0}/{1})", checkedChapterTracksCount, chapterTracksCount); - checkAttachmentTracksToolStripMenuItem.Text = string.Format("Check Attachment Tracks... ({0}/{1})", checkedAttachmentTracksCount, attachmentTracksCount); + checkVideoTracksToolStripMenuItem.Text = string.Format("勾选视频轨道 ... ({0}/{1})", checkedVideoTracksCount, videoTracksCount); + checkAudioTracksToolStripMenuItem.Text = string.Format("勾选音频轨道 ... ({0}/{1})", checkedAudioTracksCount, audioTracksCount); + checkSubtitleTracksToolStripMenuItem.Text = string.Format("勾选字幕轨道 ... ({0}/{1})", checkedSubtitleTracksCount, subtitleTracksCount); + checkChapterTracksToolStripMenuItem.Text = string.Format("勾选章节轨道 ... ({0}/{1})", checkedChapterTracksCount, chapterTracksCount); + checkAttachmentTracksToolStripMenuItem.Text = string.Format("勾选附件轨道 ... ({0}/{1})", checkedAttachmentTracksCount, attachmentTracksCount); allVideoTracksToolStripMenuItem.Text = string.Format("All Video Tracks ({0}/{1})", checkedVideoTracksCount, videoTracksCount); allAudioTracksToolStripMenuItem.Text = string.Format("All Audio Tracks ({0}/{1})", checkedAudioTracksCount, audioTracksCount); @@ -1515,13 +1515,13 @@ private void SetContextMenuText() allChapterTracksToolStripMenuItem.Text = string.Format("All Chapter Tracks ({0}/{1})", checkedChapterTracksCount, chapterTracksCount); allAttachmentTracksToolStripMenuItem.Text = string.Format("All Attachment Tracks ({0}/{1})", checkedAttachmentTracksCount, attachmentTracksCount); - uncheckTracksToolStripMenuItem.Text = string.Format("Uncheck All Tracks ({0}/{1})", (allTracksCount - checkedAllTracksCount), allTracksCount); + uncheckTracksToolStripMenuItem.Text = string.Format("禁选全部轨道 ({0}/{1})", (allTracksCount - checkedAllTracksCount), allTracksCount); - uncheckVideoTracksToolStripMenuItem.Text = string.Format("Uncheck Video Tracks... ({0}/{1})", videoTracksCount - checkedVideoTracksCount, videoTracksCount); - uncheckAudioTracksToolStripMenuItem.Text = string.Format("Uncheck Audio Tracks... ({0}/{1})", audioTracksCount - checkedAudioTracksCount, audioTracksCount); - uncheckSubtitleTracksToolStripMenuItem.Text = string.Format("Uncheck Subtitle Tracks... ({0}/{1})", subtitleTracksCount - checkedSubtitleTracksCount, subtitleTracksCount); - uncheckChapterTracksToolStripMenuItem.Text = string.Format("Uncheck Chapter Tracks... ({0}/{1})", chapterTracksCount - checkedChapterTracksCount, chapterTracksCount); - uncheckAttachmentTracksToolStripMenuItem.Text = string.Format("Uncheck Attachment Tracks... ({0}/{1})", attachmentTracksCount - checkedAttachmentTracksCount, attachmentTracksCount); + uncheckVideoTracksToolStripMenuItem.Text = string.Format("禁选视频轨道 ... ({0}/{1})", videoTracksCount - checkedVideoTracksCount, videoTracksCount); + uncheckAudioTracksToolStripMenuItem.Text = string.Format("禁选音频轨道 ... ({0}/{1})", audioTracksCount - checkedAudioTracksCount, audioTracksCount); + uncheckSubtitleTracksToolStripMenuItem.Text = string.Format("禁选字幕轨道 ... ({0}/{1})", subtitleTracksCount - checkedSubtitleTracksCount, subtitleTracksCount); + uncheckChapterTracksToolStripMenuItem.Text = string.Format("禁选章节轨道 ... ({0}/{1})", chapterTracksCount - checkedChapterTracksCount, chapterTracksCount); + uncheckAttachmentTracksToolStripMenuItem.Text = string.Format("禁选附件轨道 ... ({0}/{1})", attachmentTracksCount - checkedAttachmentTracksCount, attachmentTracksCount); allVideoTracksToolStripMenuItem1.Text = string.Format("All Video Tracks ({0}/{1})", videoTracksCount - checkedVideoTracksCount, videoTracksCount); allAudioTracksToolStripMenuItem1.Text = string.Format("All Audio Tracks ({0}/{1})", audioTracksCount - checkedAudioTracksCount, audioTracksCount); @@ -1529,9 +1529,9 @@ private void SetContextMenuText() allChapterTracksToolStripMenuItem1.Text = string.Format("All Chapter Tracks ({0}/{1})", chapterTracksCount - checkedChapterTracksCount, chapterTracksCount); allAttachmentTracksToolStripMenuItem1.Text = string.Format("All Attachment Tracks ({0}/{1})", attachmentTracksCount - checkedAttachmentTracksCount, attachmentTracksCount); - removeAllInputFilesToolStripMenuItem.Text = string.Format("Remove All Input Files ({0})", allInputFilesCount); + removeAllInputFilesToolStripMenuItem.Text = string.Format("移除全部输入文件 ({0})", allInputFilesCount); - removeSelectedInputFileToolStripMenuItem.Text = "Remove Selected Input File"; + removeSelectedInputFileToolStripMenuItem.Text = "移除已选的输入文件"; checkVideoTracksToolStripMenuItem.DropDownItems.Clear(); checkVideoTracksToolStripMenuItem.DropDownItems.Add(allVideoTracksToolStripMenuItem); @@ -2145,7 +2145,7 @@ private void removeSelectedInputFileToolStripMenuItem_Click(object sender, Event trvInputFiles.Nodes.Remove(node); if(trvInputFiles.Nodes.Count > 0) { - grpInputFiles.Text = String.Format("Input Files (you can drag and drop files or directories) ({0} files)", + grpInputFiles.Text = String.Format("输入文件(允许拖拽文件或目录) ({0} 个文件)", trvInputFiles.AllNodes.Count(n => n != null && n.Tag != null && n.Tag is gMKVSegmentInfo)); } else @@ -2221,7 +2221,7 @@ private void addInputFileToolStripMenuItem_Click(object sender, EventArgs e) try { OpenFileDialog ofd = new OpenFileDialog(); - ofd.Title = "Select an input matroska file..."; + ofd.Title = "选择一个输入的 Matroska 文件 ..."; ofd.Filter = "Matroska files (*.mkv;*.mka;*.mks;*.mk3d;*.webm)|*.mkv;*.mka;*.mks;*.mk3d;*.webm|Matroska video files (*.mkv)|*.mkv|Matroska audio files (*.mka)|*.mka|Matroska subtitle files (*.mks)|*.mks|Matroska 3D files (*.mk3d)|*.mk3d|Webm files (*.webm)|*.webm"; ofd.Multiselect = true; ofd.AutoUpgradeEnabled = true; @@ -2272,12 +2272,12 @@ private void contextMenuStripOutputDirectory_Opening(object sender, CancelEventA // Check if we can use the default directory useCurrentlySetDefaultDirectoryToolStripMenuItem.Enabled = !chkUseSourceDirectory.Checked; // Set the text - useCurrentlySetDefaultDirectoryToolStripMenuItem.Text = String.Format("Use Currently Set Default Directory: ({0})", _Settings.DefaultOutputDirectory); + useCurrentlySetDefaultDirectoryToolStripMenuItem.Text = String.Format("使用当前设定的默认目录: ({0})", _Settings.DefaultOutputDirectory); } else { useCurrentlySetDefaultDirectoryToolStripMenuItem.Enabled = false; - useCurrentlySetDefaultDirectoryToolStripMenuItem.Text = "Use Currently Set Default Directory: (Not Set!)"; + useCurrentlySetDefaultDirectoryToolStripMenuItem.Text = "使用当前设定的默认目录:(尚未设置!)"; } } catch (Exception ex) diff --git a/gMKVExtractGUI/Forms/frmOptions.Designer.cs b/gMKVExtractGUI/Forms/frmOptions.Designer.cs index 613ccc0..2c91fd6 100644 --- a/gMKVExtractGUI/Forms/frmOptions.Designer.cs +++ b/gMKVExtractGUI/Forms/frmOptions.Designer.cs @@ -101,7 +101,7 @@ private void InitializeComponent() this.grpChapters.Size = new System.Drawing.Size(619, 54); this.grpChapters.TabIndex = 0; this.grpChapters.TabStop = false; - this.grpChapters.Text = "Chapters"; + this.grpChapters.Text = "章节"; // // btnDefaultChapterPlaceholder // @@ -110,7 +110,7 @@ private void InitializeComponent() this.btnDefaultChapterPlaceholder.Name = "btnDefaultChapterPlaceholder"; this.btnDefaultChapterPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnDefaultChapterPlaceholder.TabIndex = 5; - this.btnDefaultChapterPlaceholder.Text = "Default"; + this.btnDefaultChapterPlaceholder.Text = "重置"; this.btnDefaultChapterPlaceholder.UseVisualStyleBackColor = true; this.btnDefaultChapterPlaceholder.Click += new System.EventHandler(this.btnDefaultChapterPlaceholder_Click); // @@ -121,7 +121,7 @@ private void InitializeComponent() this.btnAddChapterPlaceholder.Name = "btnAddChapterPlaceholder"; this.btnAddChapterPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnAddChapterPlaceholder.TabIndex = 4; - this.btnAddChapterPlaceholder.Text = "Add..."; + this.btnAddChapterPlaceholder.Text = "添加 ..."; this.btnAddChapterPlaceholder.UseVisualStyleBackColor = true; this.btnAddChapterPlaceholder.Click += new System.EventHandler(this.btnAddChapterPlaceholder_Click); // @@ -153,7 +153,7 @@ private void InitializeComponent() this.btnDefaults.Name = "btnDefaults"; this.btnDefaults.Size = new System.Drawing.Size(83, 30); this.btnDefaults.TabIndex = 6; - this.btnDefaults.Text = "Defaults"; + this.btnDefaults.Text = "重置全部"; this.btnDefaults.UseVisualStyleBackColor = true; this.btnDefaults.Click += new System.EventHandler(this.btnDefaults_Click); // @@ -164,7 +164,7 @@ private void InitializeComponent() this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(80, 30); this.btnOK.TabIndex = 1; - this.btnOK.Text = "OK"; + this.btnOK.Text = "确认"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // @@ -176,7 +176,7 @@ private void InitializeComponent() this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(80, 30); this.btnCancel.TabIndex = 0; - this.btnCancel.Text = "Cancel"; + this.btnCancel.Text = "取消"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // @@ -191,7 +191,7 @@ private void InitializeComponent() this.grpVideoTracks.Size = new System.Drawing.Size(619, 54); this.grpVideoTracks.TabIndex = 1; this.grpVideoTracks.TabStop = false; - this.grpVideoTracks.Text = "Video Tracks"; + this.grpVideoTracks.Text = "视频轨道"; // // btnDefaultVideoTrackPlaceholder // @@ -200,7 +200,7 @@ private void InitializeComponent() this.btnDefaultVideoTrackPlaceholder.Name = "btnDefaultVideoTrackPlaceholder"; this.btnDefaultVideoTrackPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnDefaultVideoTrackPlaceholder.TabIndex = 2; - this.btnDefaultVideoTrackPlaceholder.Text = "Default"; + this.btnDefaultVideoTrackPlaceholder.Text = "重置"; this.btnDefaultVideoTrackPlaceholder.UseVisualStyleBackColor = true; this.btnDefaultVideoTrackPlaceholder.Click += new System.EventHandler(this.btnDefaultVideoTrackPlaceholder_Click); // @@ -211,7 +211,7 @@ private void InitializeComponent() this.btnAddVideoTrackPlaceholder.Name = "btnAddVideoTrackPlaceholder"; this.btnAddVideoTrackPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnAddVideoTrackPlaceholder.TabIndex = 1; - this.btnAddVideoTrackPlaceholder.Text = "Add..."; + this.btnAddVideoTrackPlaceholder.Text = "添加 ..."; this.btnAddVideoTrackPlaceholder.UseVisualStyleBackColor = true; this.btnAddVideoTrackPlaceholder.Click += new System.EventHandler(this.btnAddVideoTrackPlaceholder_Click); // @@ -236,7 +236,7 @@ private void InitializeComponent() this.grpAudioTracks.Size = new System.Drawing.Size(619, 54); this.grpAudioTracks.TabIndex = 2; this.grpAudioTracks.TabStop = false; - this.grpAudioTracks.Text = "Audio Tracks"; + this.grpAudioTracks.Text = "音频轨道"; // // btnDefaultAudioTrackPlaceholder // @@ -245,7 +245,7 @@ private void InitializeComponent() this.btnDefaultAudioTrackPlaceholder.Name = "btnDefaultAudioTrackPlaceholder"; this.btnDefaultAudioTrackPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnDefaultAudioTrackPlaceholder.TabIndex = 3; - this.btnDefaultAudioTrackPlaceholder.Text = "Default"; + this.btnDefaultAudioTrackPlaceholder.Text = "重置"; this.btnDefaultAudioTrackPlaceholder.UseVisualStyleBackColor = true; this.btnDefaultAudioTrackPlaceholder.Click += new System.EventHandler(this.btnDefaultAudioTrackPlaceholder_Click); // @@ -256,7 +256,7 @@ private void InitializeComponent() this.btnAddAudioTrackPlaceholder.Name = "btnAddAudioTrackPlaceholder"; this.btnAddAudioTrackPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnAddAudioTrackPlaceholder.TabIndex = 2; - this.btnAddAudioTrackPlaceholder.Text = "Add..."; + this.btnAddAudioTrackPlaceholder.Text = "添加 ..."; this.btnAddAudioTrackPlaceholder.UseVisualStyleBackColor = true; this.btnAddAudioTrackPlaceholder.Click += new System.EventHandler(this.btnAddAudioTrackPlaceholder_Click); // @@ -281,7 +281,7 @@ private void InitializeComponent() this.grpSubtitleTracks.Size = new System.Drawing.Size(619, 54); this.grpSubtitleTracks.TabIndex = 3; this.grpSubtitleTracks.TabStop = false; - this.grpSubtitleTracks.Text = "Subtitle Tracks"; + this.grpSubtitleTracks.Text = "字幕轨道"; // // btnDefaultSubtitleTrackPlaceholder // @@ -290,7 +290,7 @@ private void InitializeComponent() this.btnDefaultSubtitleTrackPlaceholder.Name = "btnDefaultSubtitleTrackPlaceholder"; this.btnDefaultSubtitleTrackPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnDefaultSubtitleTrackPlaceholder.TabIndex = 4; - this.btnDefaultSubtitleTrackPlaceholder.Text = "Default"; + this.btnDefaultSubtitleTrackPlaceholder.Text = "重置"; this.btnDefaultSubtitleTrackPlaceholder.UseVisualStyleBackColor = true; this.btnDefaultSubtitleTrackPlaceholder.Click += new System.EventHandler(this.btnDefaultSubtitleTrackPlaceholder_Click); // @@ -301,7 +301,7 @@ private void InitializeComponent() this.btnAddSubtitleTrackPlaceholder.Name = "btnAddSubtitleTrackPlaceholder"; this.btnAddSubtitleTrackPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnAddSubtitleTrackPlaceholder.TabIndex = 3; - this.btnAddSubtitleTrackPlaceholder.Text = "Add..."; + this.btnAddSubtitleTrackPlaceholder.Text = "添加 ..."; this.btnAddSubtitleTrackPlaceholder.UseVisualStyleBackColor = true; this.btnAddSubtitleTrackPlaceholder.Click += new System.EventHandler(this.btnAddSubtitleTrackPlaceholder_Click); // @@ -326,7 +326,7 @@ private void InitializeComponent() this.grpAttachments.Size = new System.Drawing.Size(619, 54); this.grpAttachments.TabIndex = 4; this.grpAttachments.TabStop = false; - this.grpAttachments.Text = "Attachments"; + this.grpAttachments.Text = "附件"; // // btnDefaultAttachmentPlaceholder // @@ -335,7 +335,7 @@ private void InitializeComponent() this.btnDefaultAttachmentPlaceholder.Name = "btnDefaultAttachmentPlaceholder"; this.btnDefaultAttachmentPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnDefaultAttachmentPlaceholder.TabIndex = 6; - this.btnDefaultAttachmentPlaceholder.Text = "Default"; + this.btnDefaultAttachmentPlaceholder.Text = "重置"; this.btnDefaultAttachmentPlaceholder.UseVisualStyleBackColor = true; this.btnDefaultAttachmentPlaceholder.Click += new System.EventHandler(this.btnDefaultAttachmentPlaceholder_Click); // @@ -346,7 +346,7 @@ private void InitializeComponent() this.btnAddAttachmentPlaceholder.Name = "btnAddAttachmentPlaceholder"; this.btnAddAttachmentPlaceholder.Size = new System.Drawing.Size(83, 30); this.btnAddAttachmentPlaceholder.TabIndex = 5; - this.btnAddAttachmentPlaceholder.Text = "Add..."; + this.btnAddAttachmentPlaceholder.Text = "添加 ..."; this.btnAddAttachmentPlaceholder.UseVisualStyleBackColor = true; this.btnAddAttachmentPlaceholder.Click += new System.EventHandler(this.btnAddAttachmentPlaceholder_Click); // @@ -369,7 +369,7 @@ private void InitializeComponent() this.grpInfo.Size = new System.Drawing.Size(619, 145); this.grpInfo.TabIndex = 5; this.grpInfo.TabStop = false; - this.grpInfo.Text = "Information"; + this.grpInfo.Text = "信息"; // // txtInfo // @@ -388,10 +388,10 @@ private void InitializeComponent() this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(654, 481); this.Controls.Add(this.tlpMain); - this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.Name = "frmOptions"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Options"; + this.Text = "选项"; this.Load += new System.EventHandler(this.frmOptions_Load); this.tlpMain.ResumeLayout(false); this.grpChapters.ResumeLayout(false); diff --git a/gMKVExtractGUI/Forms/frmOptions.cs b/gMKVExtractGUI/Forms/frmOptions.cs index d2fd445..fe6acb6 100644 --- a/gMKVExtractGUI/Forms/frmOptions.cs +++ b/gMKVExtractGUI/Forms/frmOptions.cs @@ -20,9 +20,9 @@ public partial class frmOptions : gMKVToolNix.gForm private ContextMenuStrip _ChapterContextMenu = null; private ContextMenuStrip _AttachmentContextMenu = null; - private readonly static string INFO_TEXT = "Here you can specify the output filename format for each kind of track." + Environment.NewLine + - "Pressing the \"Add...\" button you will see the list with the available placeholders and select them." + Environment.NewLine + - "Pressing the \"Default\" button you will reset the output filename format to its default value."; + private readonly static string INFO_TEXT = "在这里你可以为每一种轨道指定输出文件名的格式。" + Environment.NewLine + + "按下 \"添加 ...\" 按钮,你将看到可用占位符的列表以选择。" + Environment.NewLine + + "按下 \"重置\" 按钮,将重设输出文件名的格式为它的默认值。"; public frmOptions() { @@ -31,7 +31,7 @@ public frmOptions() InitializeComponent(); Icon = Icon.ExtractAssociatedIcon(GetExecutingAssemblyLocation()); - Text = String.Format("gMKVExtractGUI v{0} -- Options", GetCurrentVersion()); + Text = String.Format("gMKVExtractGUI_chs v{0} -- 选项", GetCurrentVersion()); // Set the info text txtInfo.Text = INFO_TEXT; diff --git a/gMKVExtractGUI/Properties/AssemblyInfo.cs b/gMKVExtractGUI/Properties/AssemblyInfo.cs index 68638e0..5299335 100644 --- a/gMKVExtractGUI/Properties/AssemblyInfo.cs +++ b/gMKVExtractGUI/Properties/AssemblyInfo.cs @@ -5,12 +5,12 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("gMKVExtractGUI")] -[assembly: AssemblyDescription("A GUI for mkvextract utility (part of MKVToolNix)")] +[assembly: AssemblyTitle("gMKVExtractGUI_chs")] +[assembly: AssemblyDescription("gMKVExtractGUI sc edition")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Gpower2")] -[assembly: AssemblyProduct("gMKVExtractGUI")] -[assembly: AssemblyCopyright("Copyright © 2014-2022")] +[assembly: AssemblyCompany("hooke007")] +[assembly: AssemblyProduct("gMKVExtractGUI_chs")] +[assembly: AssemblyCopyright("Copyright © 2021-2022")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/gMKVToolNix/gMKVInfo.cs b/gMKVToolNix/gMKVInfo.cs index c138d24..efec2db 100644 --- a/gMKVToolNix/gMKVInfo.cs +++ b/gMKVToolNix/gMKVInfo.cs @@ -71,11 +71,11 @@ public gMKVInfo(string mkvToonlixPath) { if (string.IsNullOrWhiteSpace(mkvToonlixPath)) { - throw new Exception("The MKVToolNix path was not provided!"); + throw new Exception("未提供 MKVToolNix 路径!"); } if (!Directory.Exists(mkvToonlixPath)) { - throw new Exception($"The MKVToolNix path {mkvToonlixPath} does not exist!"); + throw new Exception($"MKVToolNix 路径 {mkvToonlixPath} 不存在!"); } _MKVToolnixPath = mkvToonlixPath; _MKVInfoFilename = Path.Combine(_MKVToolnixPath, MKV_INFO_FILENAME); diff --git a/gMKVToolNix/gMKVMerge.cs b/gMKVToolNix/gMKVMerge.cs index bc181c4..7fa58ef 100644 --- a/gMKVToolNix/gMKVMerge.cs +++ b/gMKVToolNix/gMKVMerge.cs @@ -85,11 +85,11 @@ public gMKVMerge(string mkvToonlixPath) { if (string.IsNullOrWhiteSpace(mkvToonlixPath)) { - throw new Exception("The MKVToolNix path was not provided!"); + throw new Exception("未提供 MKVToolNix 路径!"); } if(!Directory.Exists(mkvToonlixPath)) { - throw new Exception(string.Format("The MKVToolNix path {0} does not exist!", mkvToonlixPath)); + throw new Exception(string.Format("MKVToolNix 路径 {0} 不存在!", mkvToonlixPath)); } _MKVToolnixPath = mkvToonlixPath; _MKVMergeFilename = Path.Combine(_MKVToolnixPath, MKV_MERGE_FILENAME);