diff --git a/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs b/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs index 839ac53a24..042a1a2b21 100644 --- a/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs +++ b/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 @@ -96,6 +96,15 @@ namespace PowerLauncher.Properties { } } + /// + /// Looks up a localized string similar to Appended controls available. + /// + public static string ContextMenuItemsAvailable { + get { + return ResourceManager.GetString("ContextMenuItemsAvailable", resourceCulture); + } + } + /// /// Looks up a localized string similar to Context Menu Items Collection. /// diff --git a/src/modules/launcher/PowerLauncher/Properties/Resources.resx b/src/modules/launcher/PowerLauncher/Properties/Resources.resx index f2554c59db..47d152f4d9 100644 --- a/src/modules/launcher/PowerLauncher/Properties/Resources.resx +++ b/src/modules/launcher/PowerLauncher/Properties/Resources.resx @@ -191,4 +191,7 @@ Fail to initialize plugins + + Appended controls available + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/ViewModel/ResultViewModel.cs b/src/modules/launcher/PowerLauncher/ViewModel/ResultViewModel.cs index f4f8e98231..fb524e77c9 100644 --- a/src/modules/launcher/PowerLauncher/ViewModel/ResultViewModel.cs +++ b/src/modules/launcher/PowerLauncher/ViewModel/ResultViewModel.cs @@ -4,6 +4,7 @@ using System; using System.Collections.ObjectModel; +using System.Globalization; using System.Windows.Input; using System.Windows.Media; using PowerLauncher.Helper; @@ -282,7 +283,9 @@ namespace PowerLauncher.ViewModel public override string ToString() { - return Result.ToString(); + // Using CurrentCulture since this is user facing + var contextMenuInfo = ContextMenuItems.Count > 0 ? string.Format(CultureInfo.CurrentCulture, "{0} {1}", ContextMenuItems.Count, Properties.Resources.ContextMenuItemsAvailable) : string.Empty; + return string.Format(CultureInfo.CurrentCulture, "{0}, {1}", Result.ToString(), contextMenuInfo); } } }