mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
Fixed the error that Files were named Folder (#6935)
* Fixed the error that Files were named Folder * Add and use resources in Results. * Last item without resources in Plugin.Folder * Changed to CurrentCulture, added N0 to Folder truncate warning. Co-authored-by: p-storm <paul.de.man@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using Wox.Infrastructure;
|
||||
using Wox.Plugin;
|
||||
@@ -23,7 +24,7 @@ namespace Microsoft.Plugin.Folder.Sources.Result
|
||||
var result = new Wox.Plugin.Result
|
||||
{
|
||||
Title = Title,
|
||||
SubTitle = "Folder: " + FilePath,
|
||||
SubTitle = string.Format(CultureInfo.CurrentCulture, Properties.Resources.wox_plugin_folder_select_file_result_subtitle, FilePath),
|
||||
IcoPath = FilePath,
|
||||
TitleHighlightData = StringMatcher.FuzzySearch(Search, Path.GetFileName(FilePath)).MatchData,
|
||||
Action = c => ExplorerAction.Execute(FilePath, contextApi),
|
||||
|
||||
Reference in New Issue
Block a user