microsoft/PowerToys

[PT Run] Folder plugin: Add localization

Open

#23 666 ouverte le 30 janv. 2023

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)C# (7 978 forks)batch import
Help WantedIdea-EnhancementProduct-PowerToys RunRun-Plugin

Métriques du dépôt

Stars
 (133 154 stars)
Métriques de merge PR
 (Merge moyen 14j 20h) (117 PRs mergées en 30 j)

Description

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.

Guide contributeur