From 67cc8aa4805f1957bec9a0b0dbe19eb3093b90e6 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Tue, 1 Aug 2017 23:06:38 +0300 Subject: [PATCH] refine --- QuickLook/Plugin/InfoPanel/InfoPanel.xaml.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/QuickLook/Plugin/InfoPanel/InfoPanel.xaml.cs b/QuickLook/Plugin/InfoPanel/InfoPanel.xaml.cs index 2034208..6d00e04 100644 --- a/QuickLook/Plugin/InfoPanel/InfoPanel.xaml.cs +++ b/QuickLook/Plugin/InfoPanel/InfoPanel.xaml.cs @@ -101,18 +101,12 @@ namespace QuickLook.Plugin.InfoPanel string t; var folders = totalDirsL == 0 ? string.Empty - : totalDirsL == 1 - ? string.Format( - TranslationHelper.GetString("InfoPanel_Folder"), totalDirsL) - : string.Format( - TranslationHelper.GetString("InfoPanel_Folders"), totalDirsL); + : string.Format(TranslationHelper.GetString( + totalDirsL == 1 ? "InfoPanel_Folder" : "InfoPanel_Folders"), totalDirsL); var files = totalFilesL == 0 ? string.Empty - : totalFilesL == 1 - ? string.Format( - TranslationHelper.GetString("InfoPanel_File"), totalFilesL) - : string.Format( - TranslationHelper.GetString("InfoPanel_Files"), totalFilesL); + : string.Format(TranslationHelper.GetString( + totalFilesL == 1 ? "InfoPanel_File" : "InfoPanel_Files"), totalFilesL); if (!string.IsNullOrEmpty(folders) && !string.IsNullOrEmpty(files)) t = string.Format(