-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Use top level statements does not have an accelerator key in display name for Visual Studio #42719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc/ @DamianEdwards & @dougbu as this may impact ongoing localization efforts |
I don't see a localization issue here. Added underscores in template.json or ide.host.json files should automatically cause those underscores to be reflected in templatestrings.en.json files (assuming the dev does a local build and includes updated localize/* files in their PR). The next |
@dougbu is correct, worse case is that non-enu would not have the accelerators until the updated language strings files got checked in by OneLocBuild. |
A bit greater concern is how dotnet new handles underscores in display names in the help text. I asked that question in the dotnet/templating version of this issue. |
@phenning is it a bug that underscores are duplicated from template.json files (if that's where they first appear) into templatestrings.{lang}.json files as part of the /cc @jonfortescue |
I'm not sure what you mean, do you mean that a string like "Do not use _top level statements" would added to templatestrings.en.json as "Do not use __toplevel statements"? Have you seen this with other strings? That seems like it would be a bug to me, since I would think we would want the accelerator indicator preserved. /cc @vlada-shubina |
Vlada informed me that the CLI does not currently use the displayName property. So it is safe to put the accelerators into the template.json and templatestrings.json files as the displayName. |
Accelerators can be loc'd, but under our current loc process they often require manual intervention to ensure we're not breaking our product with duplicate accelerators. There's not much we can do about that without significantly overhauling the loc process. Basically, if using accelerators, make sure to scrutinize the loc PR handbacks. |
According to dotnet/templating#4961 (comment) suggestion we will be using T as accelerator. |
Closed via #42802. |
Is there an existing issue for this?
Describe the bug
From https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1576097/
Accelerator key should be displayed for use top level statements (and probably other template defined options as well)
See also, dotnet/templating#4961
Expected Behavior
Some sort of accelerator key should be indicated.
Steps To Reproduce
Repro steps:
Launch VS and open NPD
Choose any web project template and click "Next" to "Additional information"
Click "Alt" on the keyboard
Observe the "Do not use top-level statements" option
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: