-
Notifications
You must be signed in to change notification settings - Fork 1.2k
I18n pull request restore with CrowdIn support #1888
Conversation
7adfbf5
to
0661a30
Compare
Merged #1871 into this branch, but it appears that the |
crowdin.yml
Outdated
- source: /src/**/Resources.en-US.resx | ||
translation: /%original_path%/Resources.%locale%.resx | ||
- source: /src/**/VSPackage.en-US.resx | ||
translation: /%original_path%/VSPackage.%locale%.resx |
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 wouldn't do this one right now. This is information that's merged with the package for the marketplace and the extension list, not for the VS UI itself.
crowdin.yml
Outdated
- source: /src/**/VSPackage.en-US.resx | ||
translation: /%original_path%/VSPackage.%locale%.resx | ||
- source: /src/**/OcticonPaths.en-US.resx | ||
translation: /%original_path%/OcticonPaths.%locale%.resx |
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.
There is nothing to translate on this, these are icons in svg format.
dfd1f70
to
9839f9c
Compare
@maikebing could take a look at this and tell me if I've got anything wrong? |
And move hard-coded UI strings to resources. Co-Authored-By: MysticBoy <[email protected]>
9839f9c
to
d45f6b1
Compare
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.
Looking good! Just a suggestion about how we could handle resources in TestCase
attributes and a white space issue.
test/GitHub.VisualStudio.UnitTests/Commands/OpenFromClipboardCommandTests.cs
Show resolved
Hide resolved
test/GitHub.VisualStudio.UnitTests/Commands/OpenFromClipboardCommandTests.cs
Show resolved
Hide resolved
@@ -126,9 +146,13 @@ public async Task NoChangesInWorkingDirectory() | |||
vsServices.DidNotReceiveWithAnyArgs().ShowMessageBoxInfo(null); | |||
gitHubContextService.Received(1).TryOpenFile(repositoryDir, context); | |||
} | |||
[Test] |
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.
Missing CR
Resolve resources that start with a "#" using ResolveResources.
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.
All good. 👍
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.
Approve. 😕
Looking good! |
Where are the resources specified to be satellites? |
@StanleyGoldman the non- |
This PR restores parts of #1714 and adds initial integration with CrowdIn.
It is currently only providing translations in
zn-CH
for our.resx
files. We're going to need a more scalable solution than duplicating the entirety of our.vsct
files for every language so those files are going to be tackled in a separate PR.The neutral language
en-US
resources are being stored directly in the assemblies themselves with satellite assemblies only being used for translations. This is because WPF does not work well with satellite assemblies for the neutral language.