mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Add err msg about empty sub when saving
This commit is contained in:
parent
8aa0d804cd
commit
8e22070744
@ -1333,6 +1333,7 @@ To use an API key go to "Options -> Settings -> Tools" to enter your Googl
|
||||
<SaveChangesToOriginalX>Save changes to original {0}?</SaveChangesToOriginalX>
|
||||
<SaveSubtitleAs>Save subtitle as...</SaveSubtitleAs>
|
||||
<SaveOriginalSubtitleAs>Save original subtitle as...</SaveOriginalSubtitleAs>
|
||||
<CannotSaveEmptySubtitle>Cannot save empty subtitle</CannotSaveEmptySubtitle>
|
||||
<NoSubtitleLoaded>No subtitle loaded</NoSubtitleLoaded>
|
||||
<VisualSyncSelectedLines>Visual sync - selected lines</VisualSyncSelectedLines>
|
||||
<VisualSyncTitle>Visual sync</VisualSyncTitle>
|
||||
|
@ -3970,6 +3970,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
if (!IsSubtitleLoaded)
|
||||
{
|
||||
ShowStatus(_language.CannotSaveEmptySubtitle);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -3982,6 +3983,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
if (!IsSubtitleLoaded)
|
||||
{
|
||||
ShowStatus(_language.CannotSaveEmptySubtitle);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5359,6 +5361,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
if (!IsSubtitleLoaded)
|
||||
{
|
||||
ShowStatus(_language.CannotSaveEmptySubtitle);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1223,6 +1223,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
SaveChangesToOriginalX = "Save changes to original {0}?",
|
||||
SaveSubtitleAs = "Save subtitle as...",
|
||||
SaveOriginalSubtitleAs = "Save original subtitle as...",
|
||||
CannotSaveEmptySubtitle = "Cannot save empty subtitle",
|
||||
NoSubtitleLoaded = "No subtitle loaded",
|
||||
VisualSyncSelectedLines = "Visual sync - selected lines",
|
||||
VisualSyncTitle = "Visual sync",
|
||||
|
@ -2680,6 +2680,9 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
case "Main/SaveOriginalSubtitleAs":
|
||||
language.Main.SaveOriginalSubtitleAs = reader.Value;
|
||||
break;
|
||||
case "Main/CannotSaveEmptySubtitle":
|
||||
language.Main.CannotSaveEmptySubtitle = reader.Value;
|
||||
break;
|
||||
case "Main/NoSubtitleLoaded":
|
||||
language.Main.NoSubtitleLoaded = reader.Value;
|
||||
break;
|
||||
|
@ -1095,6 +1095,7 @@
|
||||
public string SaveChangesToOriginalX { get; set; }
|
||||
public string SaveSubtitleAs { get; set; }
|
||||
public string SaveOriginalSubtitleAs { get; set; }
|
||||
public string CannotSaveEmptySubtitle { get; set; }
|
||||
public string NoSubtitleLoaded { get; set; }
|
||||
public string VisualSyncSelectedLines { get; set; }
|
||||
public string VisualSyncTitle { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user