Under Win11, the app name set in the resource file is not displayed when the context menu is collapsed.

si zuo 20 Reputation points
2024-02-08T09:00:39.98+00:00

The program has been configured to display the program name in multiple languages using the following link and has implemented the IExplorerCommand interface, registering multiple context menu options.

https://learn.microsoft.com/en-us/windows/uwp/app-resources/localize-strings-ui-manifest

The code snippet from the Package.appxmanifest file is as follows, with the resource file located at Strings/en-US/Resources.resw.

  <uap:VisualElements>
    DisplayName="ms-resource:AppDisplayName"
  </uap:VisualElements>

After the program is executed, the displayed app name in the Start menu is correct.

In Win11, when the context menu is collapsed in File Explorer, the correct app name is not displayed.

Instead, it shows: ms-resource:AppDisplayName.

The sample code is in branch [AddMultiLangName] at the following URL. https://github.com/zobinimm/Windows-classic-samples

Why doesn't the text displayed in the collapsed context menu of File Explorer show the text set in the resource file?

Windows development | Windows API - Win32
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.