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) if (m_pending_error is OperationCanceledException)
m_main.SetStatusText (m_pending_error.Message); m_main.SetStatusText (m_pending_error.Message);
else 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(); 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> /// <summary>
/// Looks up a localized string similar to Extract audio. /// Looks up a localized string similar to Extract audio.
/// </summary> /// </summary>

View File

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

View File

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