microsoft/PowerToys

[PT Run] Folder plugin: Add localization

Open

#23,666 创建于 2023年1月30日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (7,978 fork)batch import
Help WantedIdea-EnhancementProduct-PowerToys RunRun-Plugin

仓库指标

Star
 (133,154 star)
PR 合并指标
 (平均合并 14天 20小时) (30 天内合并 117 个 PR)

描述

For the plugins "Programs" and "Windows Search" we added localization now. For Folder plugin this is not done yet.

The localization should be added using the two methods from ShellLocalization helper in Wox.Plugin.Common.

Requirements for search:

  • Searching by localized name.
  • Searching by original name.

Requirements for results:

  • Localized file/folder name as title.
  • Localized file/folder path in sub title.
  • Tool tip showing original and localized path.

Things to take care about:

  • For opening files/folders in Explorer, CMD, ... we have to use the original file name. The localized version will fail with access denied error.
  • The helper class should be initialized as static variable in the main method of the plugin to benefit from its cache feature.

贡献者指南