diff --git a/LanguageMaster.xml b/LanguageMaster.xml
index 1aaf488d0..cf2d262f2 100644
--- a/LanguageMaster.xml
+++ b/LanguageMaster.xml
@@ -1279,6 +1279,7 @@ To use an API key go to "Options -> Settings -> Tools" to enter your Googl
Translate selected lines...
Adjust durations for selected lines...
Apply duration limits for selected lines...
+ Apply custom override tag...
Fix common errors in selected lines...
Change casing for selected lines...
Save selected lines as...
@@ -2014,6 +2015,7 @@ can edit in same subtitle file (collaboration)
Start in source view
Remove blank lines when opening a subtitle
Remove blank lines
+ Apply ASSA override tags to selection
Show line breaks in list view as
"Save as..." uses file name from
Double-clicking line in main window list view will
diff --git a/src/ui/Forms/Main.Designer.cs b/src/ui/Forms/Main.Designer.cs
index d11ae7cda..26666b2c0 100644
--- a/src/ui/Forms/Main.Designer.cs
+++ b/src/ui/Forms/Main.Designer.cs
@@ -2563,7 +2563,7 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripMenuItemSelectedLines,
this.toolStripMenuItemGoogleMicrosoftTranslateSelLine});
this.contextMenuStripListView.Name = "contextMenuStripListView";
- this.contextMenuStripListView.Size = new System.Drawing.Size(285, 754);
+ this.contextMenuStripListView.Size = new System.Drawing.Size(285, 732);
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);
diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs
index 8bcd0c762..eb9e22b0b 100644
--- a/src/ui/Forms/Main.cs
+++ b/src/ui/Forms/Main.cs
@@ -2138,7 +2138,7 @@ namespace Nikse.SubtitleEdit.Forms
private bool ContinueNewOrExitOriginal()
{
- if (Configuration.Settings.General.AllowEditOfOriginalSubtitle && _subtitleOriginal != null && _subtitleOriginal.Paragraphs.Count > 0 && _changeOriginalSubtitleHash != _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName))
+ if (Configuration.Settings.General.AllowEditOfOriginalSubtitle && _subtitleOriginal != null && _subtitleOriginal.Paragraphs.Count > 0 && _changeOriginalSubtitleHash != GetFastSubtitleOriginalHash())
{
string promptText = _language.SaveChangesToUntitledOriginal;
if (!string.IsNullOrEmpty(_subtitleOriginalFileName))
@@ -3986,7 +3986,7 @@ namespace Nikse.SubtitleEdit.Forms
if (_subtitleOriginal != null && _subtitleOriginal.Paragraphs.Count > 0)
{
_subtitleOriginal.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
- _changeOriginalSubtitleHash = _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName);
+ _changeOriginalSubtitleHash = GetFastSubtitleOriginalHash();
SubtitleListview1.Fill(_subtitle, _subtitleOriginal);
}
else
@@ -4432,7 +4432,7 @@ namespace Nikse.SubtitleEdit.Forms
Configuration.Settings.RecentFiles.Add(_fileName, FirstVisibleIndex, FirstSelectedIndex, VideoFileName, _subtitleOriginalFileName, Configuration.Settings.General.CurrentVideoOffsetInMs);
Configuration.Settings.Save();
ShowStatus(string.Format(_language.SavedOriginalSubtitleX, _subtitleOriginalFileName));
- _changeOriginalSubtitleHash = _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName);
+ _changeOriginalSubtitleHash = GetFastSubtitleOriginalHash();
return DialogResult.OK;
}
@@ -4460,7 +4460,7 @@ namespace Nikse.SubtitleEdit.Forms
File.WriteAllText(_subtitleOriginalFileName, allText, currentEncoding);
ShowStatus(string.Format(_language.SavedOriginalSubtitleX, _subtitleOriginalFileName));
- _changeOriginalSubtitleHash = _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName);
+ _changeOriginalSubtitleHash = GetFastSubtitleOriginalHash();
return DialogResult.OK;
}
catch
@@ -20028,7 +20028,7 @@ namespace Nikse.SubtitleEdit.Forms
labelCharactersPerSecond.Left = textBoxListViewText.Left + (textBoxListViewText.Width - labelCharactersPerSecond.Width);
labelTextLineTotal.Left = textBoxListViewText.Left + (textBoxListViewText.Width - labelTextLineTotal.Width);
Main_Resize(null, null);
- _changeOriginalSubtitleHash = _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName);
+ _changeOriginalSubtitleHash = GetFastSubtitleOriginalHash();
SetTitle();
}
@@ -20501,8 +20501,7 @@ namespace Nikse.SubtitleEdit.Forms
var originalActive = Configuration.Settings.General.AllowEditOfOriginalSubtitle &&
_subtitleOriginal != null &&
_subtitleOriginal.Paragraphs.Count > 0;
- var originalChanged = originalActive &&
- _changeOriginalSubtitleHash != _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName);
+ var originalChanged = originalActive && _changeOriginalSubtitleHash != GetFastSubtitleOriginalHash();
if (currentChanged || originalChanged)
{
AddTitleBarChangeAsterisk(currentChanged, originalChanged, originalActive);
@@ -24568,7 +24567,7 @@ namespace Nikse.SubtitleEdit.Forms
labelTextLineTotal.Left = textBoxListViewText.Left + (textBoxListViewText.Width - labelTextLineTotal.Width);
AddOriginal();
Main_Resize(null, null);
- _changeOriginalSubtitleHash = _subtitleOriginal.GetFastHashCode(GetCurrentEncoding().BodyName);
+ _changeOriginalSubtitleHash = GetFastSubtitleOriginalHash();
}
else
{
@@ -31112,6 +31111,11 @@ namespace Nikse.SubtitleEdit.Forms
return _subtitle.GetFastHashCode(_fileName + GetCurrentEncoding().BodyName);
}
+ private int GetFastSubtitleOriginalHash()
+ {
+ return _subtitleOriginal.GetFastHashCode(_subtitleOriginalFileName + GetCurrentEncoding().BodyName);
+ }
+
private void mergeSentencesToolStripMenuItem_Click(object sender, EventArgs e)
{
var language = LanguageAutoDetect.AutoDetectGoogleLanguage(_subtitle);
diff --git a/src/ui/Forms/Main.resx b/src/ui/Forms/Main.resx
index c6a3097b8..ecca87c4a 100644
--- a/src/ui/Forms/Main.resx
+++ b/src/ui/Forms/Main.resx
@@ -464,75 +464,75 @@
iVBORw0KGgoAAAANSUhEUgAAACA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FQAAAABJRU5ErkJggg==
@@ -775,7 +775,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
- CAAAAk1TRnQBSQFMAgEBAgEAAVQBKgFUASoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
+ CAAAAk1TRnQBSQFMAgEBAgEAAVwBKgFcASoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
diff --git a/src/ui/Forms/Translate/GenericTranslate.cs b/src/ui/Forms/Translate/GenericTranslate.cs
index 730fa1b4b..2a7b095da 100644
--- a/src/ui/Forms/Translate/GenericTranslate.cs
+++ b/src/ui/Forms/Translate/GenericTranslate.cs
@@ -1,5 +1,4 @@
using Nikse.SubtitleEdit.Controls;
-using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.SubtitleFormats;
using Nikse.SubtitleEdit.Core.Translate;
@@ -341,8 +340,20 @@ namespace Nikse.SubtitleEdit.Forms.Translate
}
catch (TranslationException translationException)
{
- MessageBox.Show(translationException.Message + Environment.NewLine +
- translationException.InnerException?.Source + ": " + translationException.InnerException?.Message);
+ if (translationException.InnerException != null && translationException.InnerException.Message.Contains("The remote name could not be resolved"))
+ {
+ ShowNetworkError(translationException.InnerException);
+ }
+ else
+ {
+ MessageBox.Show(translationException.Message + Environment.NewLine +
+ translationException.InnerException?.Source + ": " + translationException.InnerException?.Message);
+ }
+ }
+ catch (Exception exception)
+ {
+ SeLogger.Error(exception);
+ ShowNetworkError(exception);
}
finally
{
@@ -358,6 +369,14 @@ namespace Nikse.SubtitleEdit.Forms.Translate
}
}
+ private static void ShowNetworkError(Exception exception)
+ {
+ MessageBox.Show("Subtitle Edit was unable to connect to the translation service." + Environment.NewLine +
+ "Try again later or check your internet connection." + Environment.NewLine +
+ Environment.NewLine +
+ "Error: " + exception.Message);
+ }
+
private List GetSelectedParagraphs()
{
var selectedParagraphs = new List();
diff --git a/src/ui/Logic/LanguageDeserializer.cs b/src/ui/Logic/LanguageDeserializer.cs
index 0c26d1dcb..dc0f9ddb1 100644
--- a/src/ui/Logic/LanguageDeserializer.cs
+++ b/src/ui/Logic/LanguageDeserializer.cs
@@ -4225,6 +4225,9 @@ namespace Nikse.SubtitleEdit.Logic
case "Main/Menu/ContextMenu/ApplyDurationLimitsForSelectedLines":
language.Main.Menu.ContextMenu.ApplyDurationLimitsForSelectedLines = reader.Value;
break;
+ case "Main/Menu/ContextMenu/ApplyCustomOverrideTag":
+ language.Main.Menu.ContextMenu.ApplyCustomOverrideTag = reader.Value;
+ break;
case "Main/Menu/ContextMenu/FixCommonErrorsInSelectedLines":
language.Main.Menu.ContextMenu.FixCommonErrorsInSelectedLines = reader.Value;
break;
@@ -5452,6 +5455,9 @@ namespace Nikse.SubtitleEdit.Logic
case "Settings/RemoveBlankLines":
language.Settings.RemoveBlankLines = reader.Value;
break;
+ case "Settings/ApplyAssaOverrideTags":
+ language.Settings.ApplyAssaOverrideTags = reader.Value;
+ break;
case "Settings/ShowLineBreaksAs":
language.Settings.ShowLineBreaksAs = reader.Value;
break;