Skip to content
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

Localization of GHfVS for Chinese - Simplified and Traditional #1714

Merged
merged 35 commits into from Aug 10, 2018

Conversation

@maikebing
Copy link
Contributor

@maikebing maikebing commented Jun 1, 2018

Localization work started
Let's all translate together, click here to join https://crwd.in/github-visual-studio HTTPS://CRWD.IN/GITHUBVS

  • Chinese (Simplified) -

  • Chinese (Traditional) -

  • English -

- [ ] Czech
- [ ] French - 
- [ ] German -  @wenz
- [ ] Italian -  
- [ ] Japanese
- [ ] Korean
- [ ] Polish
- [ ] Portuguese (Brazil)
- [ ] Russian - 
- [ ] Spanish - 
- [ ] Turkish
@maikebing
Copy link
Contributor Author

@maikebing maikebing commented Jun 1, 2018

#18 Localization: Localize the extension to {insert language here}

@maikebing
Copy link
Contributor Author

@maikebing maikebing commented Jun 3, 2018

1
2

@sguthals
Copy link
Contributor

@sguthals sguthals commented Jun 15, 2018

Thank you @maikebing for getting this started! We're really excited to see localization in our extension! 🎉

Let us know how we can help 👍

maikebing added 6 commits Jun 16, 2018
@maikebing
Copy link
Contributor Author

@maikebing maikebing commented Jun 21, 2018

@sguthals GitHub context Menu I have not been able to localize, and I did not find the reason, perhaps I fell into some kind of misunderstanding. Do you know who is familiar with VSCT?

@sguthals
Copy link
Contributor

@sguthals sguthals commented Jun 21, 2018

Hi @maikebing!

Maybe @jcansdale or @grokys can help you out with that!

@grokys
Copy link
Contributor

@grokys grokys commented Jun 21, 2018

Hi @maikebing - to be honest this is something I've never done either!

First of all, what have you already tried? Have you tried following the instructions at https://docs.microsoft.com/en-gb/visualstudio/extensibility/localizing-menu-commands?

maikebing added 5 commits Jun 24, 2018
…anslation of the login interface
@maikebing
Copy link
Contributor Author

@maikebing maikebing commented Jun 29, 2018

githubchs
Hi @sguthals @grokys
The problems that have been encountered have been resolved. Please review the code? If you have any questions, please ask me.

@heku If you have time, can you reconsider the Chinese content?

maikebing added 2 commits Jul 5, 2018
@meaghanlewis
Copy link
Contributor

@meaghanlewis meaghanlewis commented Aug 10, 2018

@maikebing I'll test out this PR today.

Perhaps @grokys can review the code?

@grokys
Copy link
Contributor

@grokys grokys commented Aug 10, 2018

Thanks for keeping with this @maikebing! I am reviewing now. Localization is something I'm not very familiar with, so I apologise if I need to ask stupid questions ;)

Copy link
Contributor

@grokys grokys left a comment

This is looking great! I tested it, and though I cannot read Chinese and so can't attest to the translations, everything seems to be translated!

I've got just a few very small changes to request in the code. I know that this isn't the focus of this PR so I would be happy to make these changes myself - just let me know if you want me to do it.

Other than that, I think this looks good to merge!

@@ -50,8 +51,12 @@ public async Task UnknownLinkType()

vsServices.Received(1).ShowMessageBoxInfo(expectMessage);
}
[Test]

This comment has been minimized.

@grokys

grokys Aug 10, 2018
Contributor

Nit: needs a space between methods.

{
await CouldNotResolve("TargetOwner", "CurrentOwner", Resources.NoResolveDifferentOwnerMessage);
}
[Test]

This comment has been minimized.

@grokys

grokys Aug 10, 2018
Contributor

Also needs a newline here, and between the following methods.

@@ -126,9 +144,12 @@ public async Task NoChangesInWorkingDirectory()
vsServices.DidNotReceiveWithAnyArgs().ShowMessageBoxInfo(null);
gitHubContextService.Received(1).TryOpenFile(repositoryDir, context);
}

[Test]

This comment has been minimized.

@grokys

grokys Aug 10, 2018
Contributor

And here ;)

@@ -67,7 +67,7 @@
CornerRadius="3"
Padding="2 1"
Visibility="{Binding IsPending, Converter={ui:BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
<TextBlock FontSize="10">Pending</TextBlock>
<TextBlock FontSize="10" Text="{x:Static prop:Resources.Pending}"></TextBlock>

This comment has been minimized.

@grokys

grokys Aug 10, 2018
Contributor

Now that the <TextBlock> doesn't have any content, it can use an auto-closing tag, i.e.:

<TextBlock FontSize="10" Text="{x:Static prop:Resources.Pending}"/>

This can be done in a lot of places, I won't add a comment for each one ;)

@grokys
Copy link
Contributor

@grokys grokys commented Aug 10, 2018

I was worried about what would happen if we add a new resource in English but there isn't a corresponding resource in the other language yet. I just tried this and it appears to fall-back to the English text, which is the best outcome we can hope for.

@maikebing
Copy link
Contributor Author

@maikebing maikebing commented Aug 10, 2018

@grokys Yes , it fall-back to English .

maikebing added 4 commits Aug 10, 2018
@meaghanlewis
Copy link
Contributor

@meaghanlewis meaghanlewis commented Aug 10, 2018

This looks good to me. Thanks so much @maikebing!

@meaghanlewis meaghanlewis dismissed grokys’s stale review Aug 10, 2018

changes addressed!

@meaghanlewis meaghanlewis merged commit 3b501b0 into github:master Aug 10, 2018
1 check passed
1 check passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@meaghanlewis meaghanlewis added this to the 2.5.5 milestone Aug 10, 2018
@meaghanlewis meaghanlewis mentioned this pull request Aug 10, 2018
14 of 14 tasks complete
@meaghanlewis meaghanlewis changed the title Localization Localization of GHfVS for Chinese - Simplified and Traditional Aug 10, 2018
grokys added a commit that referenced this pull request Aug 14, 2018
#1714 incorrectly reverted the akavache submodule to an earlier version. Undo this.
@grokys grokys mentioned this pull request Aug 14, 2018
grokys added a commit that referenced this pull request Aug 22, 2018
This reverts commit 3b501b0, reversing
changes made to d3641f4.
meaghanlewis pushed a commit that referenced this pull request Aug 22, 2018
Meaghan Lewis
Revert pull request #1714
@meaghanlewis meaghanlewis modified the milestones: 2.5.5, 2.5.6 Aug 22, 2018
@StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Aug 31, 2018

Hi @maikebing!
Thank you for your help!

We tried to merge this but had some bugs.
We are trying again here in this Pull Request #1888.

I learned a lot more about CrowdIn.
I created a new CrowdIn Project and invited you: https://crwd.in/github-visual-studio
This CrowdIn Project is integrated with our GitHub Repository.

Can I ask you to resubmit your original translations in this project?

I would like to send you a private message.
I tried to send you a message on Twitter.
Should I contact you via email instead?

@maikebing
Copy link
Contributor Author

@maikebing maikebing commented Aug 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.