From 219d98fa799a39c12dff30e25cbe8d1c7fd38aa7 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 1 Aug 2014 22:17:27 +0400 Subject: [PATCH] report number of files within archive at status bar. --- MainWindow.xaml.cs | 3 ++- Strings/guiStrings.Designer.cs | 18 ++++++++++++++++++ Strings/guiStrings.resx | 6 ++++++ Strings/guiStrings.ru-RU.resx | 9 +++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index d96bcafa..42163e1a 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -690,7 +690,8 @@ namespace GARbro.GUI SaveCurrentPosition(); ViewModel = vm; 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 SetStatusText (""); var old_parent = Directory.GetParent (old_dir); diff --git a/Strings/guiStrings.Designer.cs b/Strings/guiStrings.Designer.cs index 3f8cc571..ac24d841 100644 --- a/Strings/guiStrings.Designer.cs +++ b/Strings/guiStrings.Designer.cs @@ -474,6 +474,24 @@ namespace GARbro.GUI.Strings { } } + /// + /// Looks up a localized string similar to {0} file. + /// + public static string MsgFiles1 { + get { + return ResourceManager.GetString("MsgFiles1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} files. + /// + public static string MsgFiles2 { + get { + return ResourceManager.GetString("MsgFiles2", resourceCulture); + } + } + /// /// Looks up a localized string similar to Image {0} x {1} pixels. /// diff --git a/Strings/guiStrings.resx b/Strings/guiStrings.resx index feed8927..bfe5a215 100644 --- a/Strings/guiStrings.resx +++ b/Strings/guiStrings.resx @@ -345,4 +345,10 @@ Overwrite? Extracted {0} files + + {0} file + + + {0} files + \ No newline at end of file diff --git a/Strings/guiStrings.ru-RU.resx b/Strings/guiStrings.ru-RU.resx index b3408a07..dc9dc76f 100644 --- a/Strings/guiStrings.ru-RU.resx +++ b/Strings/guiStrings.ru-RU.resx @@ -357,4 +357,13 @@ Извлечено {0} файлов + + {0} файл + + + {0} файла + + + {0} файлов + \ No newline at end of file