-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
menu: update go
main-menu
#10299
menu: update go
main-menu
#10299
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I can confirm that the added menu entries work as expected and are grouped/ordered as they are in vscode 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to the merge of #10106, I'd recommend to add the appropriate nls.localize
calls with the respective vscode IDs.
packages/file-search/src/browser/quick-file-open-contribution.ts
Outdated
Show resolved
Hide resolved
@msujew ehh...I did not expect the codebase to have so much noise as we now reference I have a few follow-up questions:
I think without all these in place it makes handling localization going forward difficult. |
@vince-fugnitto I feel like localization in general is a lot of noise, I noticed that as well when looking at the codebase of vscode. Regarding your questions: I already have some stuff prepared for the coding guidelines (in regards to how and what to localize), which I will add tomorrow and improve over the coming days. I also have something planned for developers to have an easier time finding keys that already exist inside of the vscode language packs.
This is probably the one that's the hardest to deal with, as programmatically identifying which strings are shown to the user and which ones aren't is quite impossible. I'll keep that issue in mind and see what I can do.
That will also be included in the coding guidelines. In short: Write a |
I don't mean so much the noise of all the We are a framework, and we are Eclipse Theia not VS Code so I did not expect to have references of internals of vscode everywhere.
There are many commands I assume already in the framework which have no vscode counterpart, are these handled today or are simply not localized yet? |
9eafe03
to
5c57057
Compare
The commit updates the `go` main-menu to add missing items used for navigation, location, language-features and problems. Signed-off-by: vince-fugnitto <[email protected]>
5c57057
to
922480b
Compare
I see, that's understandable. I'll think about how we could reduce our tight coupling with vscode.
They're currently not localized. Around 15% of user-facing strings in Theia (there only a bit more than a thousand of them in total) are not translated, mainly in the custom views that do not exist inside of vscode (like the properties view, scm amend, scm history, etc.). For the actual translation, if I recall correcly, @brianking proposed during a dev-meeting to have manual reviewers/contributors for each supported language which utilize the machine-translations (generated by the appropriate CLI commands). I'll start to work on this next. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am currently working on tooling to improve finding translation keys... :/
packages/file-search/src/browser/quick-file-open-contribution.ts
Outdated
Show resolved
Hide resolved
The commit fixes a typo in the key which translates the label. Signed-off-by: vince-fugnitto <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merge at your own discretion 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran every command. It seems 'Go to declaration' didn't work in either Theia or VScode for TypeScript, but otherwise all executed successfully. I also installed the Chinese (Traditional) language pack and observed that all of the commands in the menu were translated.
@msujew, while I was testing this, I installed a language pack and then switched to that language, and everything went well. Then I experienced a bug that shut the application down, and when I restarted it, everything was in English again. I tried running the 'Configure Display Language' command to switch back, but when I selected Chinese, nothing happened. Selecting English again caused a refresh, then everything was in English again, and then I could select Chinese and produce a refresh. However, shutting things down and restarting got me back to English again, with selecting Chinese doing nothing. Is this a known issue, or should I create one? |
@colin-grant-work Interesting, please go ahead and create an issue for that. I should have time tomorrow to work on fixing this. |
Signed-off-by: vince-fugnitto <[email protected]>
What it does
The commit updates the
go
main-menu to add missing items used for navigation, location, language-features and problems.How to test
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]