From a23f5f6a47d627bff6b1d2f32150d061bd55248c Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Thu, 12 Jun 2014 01:45:40 +0100 Subject: [PATCH] Fix: Displays `Subtitle seems to be empty - try to re-save if you're working on a valid subtitle!` for every language when trying to save empty subtitle thanks to @marb99 --- LanguageMaster.xml | 4 +++- src/Forms/Main.cs | 2 +- src/Languages/pt-PT.xml | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/LanguageMaster.xml b/LanguageMaster.xml index 6c5f04c4a..95b572326 100644 --- a/LanguageMaster.xml +++ b/LanguageMaster.xml @@ -966,7 +966,9 @@ Email: mailto:nikse.dk@gmail.com Saved original subtitle {0} file on disk modified Overwrite the file {0} modified at {1} {2}{3} with current file loaded from disk at {4} {5}? - Unable to save subtitle file {0} + Unable to save subtitle file {0} +Subtitle seems to be empty - try to re-save if you're working on a valid subtitle! + Before new New Before converting to {0} diff --git a/src/Forms/Main.cs b/src/Forms/Main.cs index 9721c3bb3..593e54ec3 100644 --- a/src/Forms/Main.cs +++ b/src/Forms/Main.cs @@ -3495,7 +3495,7 @@ namespace Nikse.SubtitleEdit.Forms { if (allText.Trim().Length == 0) { - MessageBox.Show(string.Format(_language.UnableToSaveSubtitleX, _fileName) + Environment.NewLine + Environment.NewLine + "Subtitle seems to be empty - try to re-save if you're working on a valid subtitle!"); + MessageBox.Show(string.Format(_language.UnableToSaveSubtitleX, _fileName), String.Empty, MessageBoxButtons.OK, MessageBoxIcon.Stop); return DialogResult.Cancel; } File.WriteAllText(_fileName, allText, currentEncoding); diff --git a/src/Languages/pt-PT.xml b/src/Languages/pt-PT.xml index 9e76eea7b..6b6409b4d 100644 --- a/src/Languages/pt-PT.xml +++ b/src/Languages/pt-PT.xml @@ -981,7 +981,9 @@ Email: mailto:nikse.dk@gmail.com Legenda original guardada {0} Ficheiro modificado no disco Substituir o ficheiro {0} modificado em {1} {2}{3} pelo ficheiro actual carregado do disco em {4} {5}? - Não foi possível guardar a legenda {0} + Não foi possível guardar a legenda {0} +parece estar vazia! + Antes de novo Novo Convertendo anterior para {0}