From 52bc79bb960f59637387bdfd95ab2304e1891293 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 17 Aug 2015 23:09:05 +0400 Subject: [PATCH] display file name that caused extraction error. --- GarExtract.cs | 6 +++++- Strings/guiStrings.Designer.cs | 11 +++++++++++ Strings/guiStrings.resx | 5 +++++ Strings/guiStrings.ru-RU.resx | 5 +++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/GarExtract.cs b/GarExtract.cs index 29e2d9fe..42dcfe07 100644 --- a/GarExtract.cs +++ b/GarExtract.cs @@ -414,7 +414,11 @@ namespace GARbro.GUI if (m_pending_error is OperationCanceledException) m_main.SetStatusText (m_pending_error.Message); else - m_main.PopupError (m_pending_error.Message, guiStrings.MsgErrorExtracting); + { + string message = string.Format (guiStrings.TextErrorExtracting, + m_progress_dialog.Description, m_pending_error.Message); + m_main.PopupError (message, guiStrings.MsgErrorExtracting); + } } this.Dispose(); } diff --git a/Strings/guiStrings.Designer.cs b/Strings/guiStrings.Designer.cs index cfa7885f..399f231d 100644 --- a/Strings/guiStrings.Designer.cs +++ b/Strings/guiStrings.Designer.cs @@ -900,6 +900,17 @@ namespace GARbro.GUI.Strings { } } + /// + /// Looks up a localized string similar to Error occured while extracting file + ///{0} + ///{1}. + /// + public static string TextErrorExtracting { + get { + return ResourceManager.GetString("TextErrorExtracting", resourceCulture); + } + } + /// /// Looks up a localized string similar to Extract audio. /// diff --git a/Strings/guiStrings.resx b/Strings/guiStrings.resx index 52920070..e0777885 100644 --- a/Strings/guiStrings.resx +++ b/Strings/guiStrings.resx @@ -441,4 +441,9 @@ Overwrite? Select files + + Error occured while extracting file +{0} +{1} + \ No newline at end of file diff --git a/Strings/guiStrings.ru-RU.resx b/Strings/guiStrings.ru-RU.resx index aa182d70..b3b59578 100644 --- a/Strings/guiStrings.ru-RU.resx +++ b/Strings/guiStrings.ru-RU.resx @@ -462,4 +462,9 @@ Выбрать файлы + + Произошёл сбой во время извлечения файла +{0} +{1} + \ No newline at end of file