display file name that caused extraction error.

This commit is contained in:
morkt 2015-08-17 23:09:05 +04:00
parent d526ef96fc
commit 52bc79bb96
4 changed files with 26 additions and 1 deletions

View File

@ -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();
}

View File

@ -900,6 +900,17 @@ namespace GARbro.GUI.Strings {
}
}
/// <summary>
/// Looks up a localized string similar to Error occured while extracting file
///{0}
///{1}.
/// </summary>
public static string TextErrorExtracting {
get {
return ResourceManager.GetString("TextErrorExtracting", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extract audio.
/// </summary>

View File

@ -441,4 +441,9 @@ Overwrite?</value>
<data name="TextSelectFiles" xml:space="preserve">
<value>Select files</value>
</data>
<data name="TextErrorExtracting" xml:space="preserve">
<value>Error occured while extracting file
{0}
{1}</value>
</data>
</root>

View File

@ -462,4 +462,9 @@
<data name="TextSelectFiles" xml:space="preserve">
<value>Выбрать файлы</value>
</data>
<data name="TextErrorExtracting" xml:space="preserve">
<value>Произошёл сбой во время извлечения файла
{0}
{1}</value>
</data>
</root>