Try to fix auto-translate selected lines - thx rRobis :)

Work on  #8111
This commit is contained in:
Nikolaj Olsson 2024-04-01 14:07:07 +02:00
parent 0891670426
commit a054893ec0
3 changed files with 7 additions and 7 deletions

View File

@ -1028,7 +1028,7 @@ namespace Nikse.SubtitleEdit.Forms
// toolStripLabelSubtitleFormat
//
this.toolStripLabelSubtitleFormat.Name = "toolStripLabelSubtitleFormat";
this.toolStripLabelSubtitleFormat.Size = new System.Drawing.Size(86, 15);
this.toolStripLabelSubtitleFormat.Size = new System.Drawing.Size(86, 37);
this.toolStripLabelSubtitleFormat.Text = "Subtitle format";
//
// comboBoxSubtitleFormats
@ -2721,7 +2721,7 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripMenuItemSelectedLines,
this.toolStripMenuItemGoogleMicrosoftTranslateSelLine});
this.contextMenuStripListView.Name = "contextMenuStripListView";
this.contextMenuStripListView.Size = new System.Drawing.Size(285, 826);
this.contextMenuStripListView.Size = new System.Drawing.Size(285, 848);
this.contextMenuStripListView.Closed += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this.MenuClosed);
this.contextMenuStripListView.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripListViewOpening);
this.contextMenuStripListView.Opened += new System.EventHandler(this.MenuOpened);
@ -3233,7 +3233,7 @@ namespace Nikse.SubtitleEdit.Forms
// genericTranslateToolStripMenuItem
//
this.genericTranslateToolStripMenuItem.Name = "genericTranslateToolStripMenuItem";
this.genericTranslateToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
this.genericTranslateToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.genericTranslateToolStripMenuItem.Text = "translate...";
this.genericTranslateToolStripMenuItem.Click += new System.EventHandler(this.TranslateSelectedLinesToolStripMenuItemClick);
//

View File

@ -36426,7 +36426,7 @@ namespace Nikse.SubtitleEdit.Forms
sub.Paragraphs.Add(new Paragraph(_subtitle.Paragraphs[index], false));
}
if (_subtitleOriginal != null)
if (_subtitleOriginal != null && SubtitleListview1.IsOriginalTextColumnVisible)
{
var paragraphs = new List<Paragraph>();
var paragraphsToRemove = new List<Paragraph>();

View File

@ -730,9 +730,9 @@
<data name="toolStripButtonLockCenter.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACJSURBVEhLYxjioPT6M4aKawVQHvEApAekFydIuv6bofx6
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACJSURBVEhLYxjioPT6M4aKawVQHvEApAekFydIvP6bofx6
A5RHPADpAenFCbAZXHk1ACi2nqHi6n44BokhA5INrrpiwFBx/T9Q7DxYHILPg8VAcjBAssEgNsgQdACx
DFXdqMFgMGowlDdqMCUG0yxLgwCowEEugEAFEsWFELGAoME0K+gHP2BgAAB/hhfWFmBXIQAAAABJRU5E
DFXdqMFgMGowlDdqMCUG0yxLgwCowEEugEAFEsWFELGAoME0K+gHP2BgAAAFFhe2fSAzQAAAAABJRU5E
rkJggg==
</value>
</data>
@ -788,6 +788,6 @@
<value>676, 92</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>98</value>
<value>25</value>
</metadata>
</root>