microsoft/PowerToys

[PT Run] Folder plugin: Add localization

Open

#23.666 geöffnet am 30. Jan. 2023

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (7.978 Forks)batch import
Help WantedIdea-EnhancementProduct-PowerToys RunRun-Plugin

Repository-Metriken

Stars
 (133.154 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 20h) (117 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide