mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[PTRun][Narrator]Mention appended controls (#20876)
* added context menu items count * changed message
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
@@ -96,6 +96,15 @@ namespace PowerLauncher.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Appended controls available.
|
||||||
|
/// </summary>
|
||||||
|
public static string ContextMenuItemsAvailable {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("ContextMenuItemsAvailable", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Context Menu Items Collection.
|
/// Looks up a localized string similar to Context Menu Items Collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -191,4 +191,7 @@
|
|||||||
<data name="FailedToInitializePluginsTitle" xml:space="preserve">
|
<data name="FailedToInitializePluginsTitle" xml:space="preserve">
|
||||||
<value>Fail to initialize plugins</value>
|
<value>Fail to initialize plugins</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ContextMenuItemsAvailable" xml:space="preserve">
|
||||||
|
<value>Appended controls available</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Globalization;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using PowerLauncher.Helper;
|
using PowerLauncher.Helper;
|
||||||
@@ -282,7 +283,9 @@ namespace PowerLauncher.ViewModel
|
|||||||
|
|
||||||
public override string ToString()
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user