report number of files within archive at status bar.

This commit is contained in:
morkt 2014-08-01 22:17:27 +04:00
parent e90643d71d
commit 219d98fa79
4 changed files with 35 additions and 1 deletions

View File

@ -690,7 +690,8 @@ namespace GARbro.GUI
SaveCurrentPosition(); SaveCurrentPosition();
ViewModel = vm; ViewModel = vm;
if (vm.IsArchive && null != m_app.CurrentArchive) if (vm.IsArchive && null != m_app.CurrentArchive)
SetStatusText (m_app.CurrentArchive.Description); SetStatusText (string.Format ("{0}: {1}", m_app.CurrentArchive.Description,
Localization.Format ("MsgFiles", m_app.CurrentArchive.Dir.Count())));
else else
SetStatusText (""); SetStatusText ("");
var old_parent = Directory.GetParent (old_dir); var old_parent = Directory.GetParent (old_dir);

View File

@ -474,6 +474,24 @@ namespace GARbro.GUI.Strings {
} }
} }
/// <summary>
/// Looks up a localized string similar to {0} file.
/// </summary>
public static string MsgFiles1 {
get {
return ResourceManager.GetString("MsgFiles1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} files.
/// </summary>
public static string MsgFiles2 {
get {
return ResourceManager.GetString("MsgFiles2", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Image {0} x {1} pixels. /// Looks up a localized string similar to Image {0} x {1} pixels.
/// </summary> /// </summary>

View File

@ -345,4 +345,10 @@ Overwrite?</value>
<data name="MsgExtractedFiles2" xml:space="preserve"> <data name="MsgExtractedFiles2" xml:space="preserve">
<value>Extracted {0} files</value> <value>Extracted {0} files</value>
</data> </data>
<data name="MsgFiles1" xml:space="preserve">
<value>{0} file</value>
</data>
<data name="MsgFiles2" xml:space="preserve">
<value>{0} files</value>
</data>
</root> </root>

View File

@ -357,4 +357,13 @@
<data name="MsgExtractedFiles3" xml:space="preserve"> <data name="MsgExtractedFiles3" xml:space="preserve">
<value>Извлечено {0} файлов</value> <value>Извлечено {0} файлов</value>
</data> </data>
<data name="MsgFiles1" xml:space="preserve">
<value>{0} файл</value>
</data>
<data name="MsgFiles2" xml:space="preserve">
<value>{0} файла</value>
</data>
<data name="MsgFiles3" xml:space="preserve">
<value>{0} файлов</value>
</data>
</root> </root>