From 8136fc4a2b4bff8a23156640cf23e70bb726b78f Mon Sep 17 00:00:00 2001 From: jau228 Date: Thu, 6 Aug 2015 16:40:35 -0600 Subject: [PATCH 01/13] move strings from xaml to the resource file --- src/GitHub.VisualStudio/Resources.Designer.cs | 38 ++++++++++++++++++- src/GitHub.VisualStudio/Resources.resx | 12 ++++++ .../UI/Views/GitHubConnectContent.xaml | 13 ++++--- 3 files changed, 56 insertions(+), 7 deletions(-) diff --git a/src/GitHub.VisualStudio/Resources.Designer.cs b/src/GitHub.VisualStudio/Resources.Designer.cs index 4e277b0c76..54f211bc3c 100644 --- a/src/GitHub.VisualStudio/Resources.Designer.cs +++ b/src/GitHub.VisualStudio/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.0 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -59,5 +59,41 @@ internal Resources() { resourceCulture = value; } } + + /// + /// Looks up a localized string similar to Clone. + /// + internal static string cloneLinkContent { + get { + return ResourceManager.GetString("cloneLinkContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create. + /// + internal static string createLinkContent { + get { + return ResourceManager.GetString("createLinkContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Login. + /// + internal static string loginContent { + get { + return ResourceManager.GetString("loginContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sign out. + /// + internal static string signOutContent { + get { + return ResourceManager.GetString("signOutContent", resourceCulture); + } + } } } diff --git a/src/GitHub.VisualStudio/Resources.resx b/src/GitHub.VisualStudio/Resources.resx index 1af7de150c..7588984a33 100644 --- a/src/GitHub.VisualStudio/Resources.resx +++ b/src/GitHub.VisualStudio/Resources.resx @@ -117,4 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Clone + + + Create + + + Login + + + Sign out + \ No newline at end of file diff --git a/src/GitHub.VisualStudio/UI/Views/GitHubConnectContent.xaml b/src/GitHub.VisualStudio/UI/Views/GitHubConnectContent.xaml index 4f9a5e9be2..4369b935c6 100644 --- a/src/GitHub.VisualStudio/UI/Views/GitHubConnectContent.xaml +++ b/src/GitHub.VisualStudio/UI/Views/GitHubConnectContent.xaml @@ -9,6 +9,7 @@ xmlns:vsui="clr-namespace:GitHub.VisualStudio.UI.Views.Controls" xmlns:helpers="clr-namespace:GitHub.Helpers;assembly=GitHub.UI" xmlns:mtcw="clr-namespace:Microsoft.TeamFoundation.Controls.WPF;assembly=Microsoft.TeamFoundation.Controls" + xmlns:prop="clr-namespace:GitHub.VisualStudio" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" d:DesignBackground="White" KeyboardNavigation.TabNavigation="Local"> @@ -27,14 +28,14 @@ - + + - + + - + Visibility="{Binding ShowLogin, Converter={StaticResource BooleanToVisibilityConverter}}" Text="{x:Static prop:Resources.orText}"/> + + Style="{StaticResource GitHubBlueLinkButton}" Content="{x:Static prop:Resources.browsePathButtonContent}"/> @@ -216,9 +217,7 @@ Margin="0,-70,0,0"> - No repositories - + Style="{DynamicResource GitHubH2TextBlock}" Text="{x:Static prop:Resources.noRepositoriesMessageText}"/> diff --git a/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml b/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml index 2dee57c56b..7541898e64 100644 --- a/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml +++ b/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml @@ -9,6 +9,7 @@ xmlns:sampleData="clr-namespace:GitHub.SampleData;assembly=GitHub.App" xmlns:GitHub="clr-namespace:GitHub.VisualStudio.Helpers" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:prop="clr-namespace:GitHub.VisualStudio" mc:Ignorable="d" d:DesignWidth="414" d:DesignHeight="440" @@ -40,7 +41,7 @@ x:Name="createRepositoryButton" HorizontalAlignment="Center" Icon="check"> - Create + @@ -101,7 +102,7 @@ - + diff --git a/src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml b/src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml index 89e1baec2b..adf81ca5b5 100644 --- a/src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml +++ b/src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml @@ -9,6 +9,7 @@ xmlns:helpers="clr-namespace:GitHub.Helpers;assembly=GitHub.UI" xmlns:sampleData="clr-namespace:GitHub.SampleData;assembly=GitHub.App" xmlns:GitHub="clr-namespace:GitHub.VisualStudio.Helpers" + xmlns:prop="clr-namespace:GitHub.VisualStudio" mc:Ignorable="d" d:DesignWidth="414" d:DesignHeight="440" @@ -29,7 +30,7 @@ - Open the two-factor authentication app on your device to view your authentication code. - Read more + + + Message="{x:Static prop:Resources.authenticationFailedLabelMessage}" + Content="{x:Static prop:Resources.authenticationFailedLabelContent}" /> + Message="{x:Static prop:Resources.authenticationSentLabelMessage}" + Content="{x:Static prop:Resources.authenticationSentLabelContent}" /> + Content="{x:Static prop:Resources.verifyText}" /> + Content="{x:Static prop:Resources.resendCodeButtonContent}" /> From d102a1d70f5662776cbb9d867eff621b82fa545f Mon Sep 17 00:00:00 2001 From: jau228 Date: Mon, 10 Aug 2015 10:49:07 -0600 Subject: [PATCH 05/13] Align the tag and removed extra space/tab --- src/common/GitHubVS.ruleset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/GitHubVS.ruleset b/src/common/GitHubVS.ruleset index 01a247bf88..0e1443d4ba 100644 --- a/src/common/GitHubVS.ruleset +++ b/src/common/GitHubVS.ruleset @@ -37,7 +37,7 @@ - + @@ -68,6 +68,6 @@ - + From 9c03a6a1c7d3f44f16d7df6594686e4076ba5108 Mon Sep 17 00:00:00 2001 From: jau228 Date: Mon, 10 Aug 2015 14:18:50 -0600 Subject: [PATCH 06/13] move strings from TeamExplorer folder cs files to the resource file --- src/GitHub.VisualStudio/Resources.Designer.cs | 108 ++++++++++++++++++ src/GitHub.VisualStudio/Resources.resx | 36 ++++++ .../Connect/GitHubInvitationSection.cs | 6 +- .../TeamExplorer/Home/GraphsNavigationItem.cs | 2 +- .../TeamExplorer/Home/IssuesNavigationItem.cs | 2 +- .../Home/PullRequestsNavigationItem.cs | 2 +- .../TeamExplorer/Home/PulseNavigationItem.cs | 2 +- .../TeamExplorer/Home/WikiNavigationItem.cs | 2 +- .../TeamExplorer/Sync/GitHubPublishSection.cs | 4 +- .../Controls/RepositoryCloneControl.xaml | 4 +- 10 files changed, 156 insertions(+), 12 deletions(-) diff --git a/src/GitHub.VisualStudio/Resources.Designer.cs b/src/GitHub.VisualStudio/Resources.Designer.cs index f3fccce480..8d9bea2f93 100644 --- a/src/GitHub.VisualStudio/Resources.Designer.cs +++ b/src/GitHub.VisualStudio/Resources.Designer.cs @@ -105,6 +105,15 @@ internal static string browsePathButtonContent { } } + /// + /// Looks up a localized string similar to Clone. + /// + internal static string cloneButtonText { + get { + return ResourceManager.GetString("cloneButtonText", resourceCulture); + } + } + /// /// Looks up a localized string similar to Clone. /// @@ -330,6 +339,60 @@ internal static string filterTextPromptText { } } + /// + /// Looks up a localized string similar to Connect…. + /// + internal static string GitHubInvitationSectionConnectLabel { + get { + return ResourceManager.GetString("GitHubInvitationSectionConnectLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Powerful collaboration, code review, and code management for open source and private projects.. + /// + internal static string GitHubInvitationSectionDescription { + get { + return ResourceManager.GetString("GitHubInvitationSectionDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sign up. + /// + internal static string GitHubInvitationSectionSignUpLabel { + get { + return ResourceManager.GetString("GitHubInvitationSectionSignUpLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Powerful collaboration, code review, and code management for open source and private projects.. + /// + internal static string GitHubPublishSectionDescription { + get { + return ResourceManager.GetString("GitHubPublishSectionDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Publish to GitHub. + /// + internal static string GitHubPublishSectionTitle { + get { + return ResourceManager.GetString("GitHubPublishSectionTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Graphs. + /// + internal static string GraphsNavigationItemText { + get { + return ResourceManager.GetString("GraphsNavigationItemText", resourceCulture); + } + } + /// /// Looks up a localized string similar to Git ignore. /// @@ -339,6 +402,15 @@ internal static string ignoreTemplateListText { } } + /// + /// Looks up a localized string similar to Issues. + /// + internal static string IssuesNavigationItemText { + get { + return ResourceManager.GetString("IssuesNavigationItemText", resourceCulture); + } + } + /// /// Looks up a localized string similar to Learn more. /// @@ -447,6 +519,15 @@ internal static string orText { } } + /// + /// Looks up a localized string similar to Path. + /// + internal static string pathText { + get { + return ResourceManager.GetString("pathText", resourceCulture); + } + } + /// /// Looks up a localized string similar to for $7/month. /// @@ -492,6 +573,24 @@ internal static string publishText { } } + /// + /// Looks up a localized string similar to Pull Requests. + /// + internal static string PullRequestsNavigationItemText { + get { + return ResourceManager.GetString("PullRequestsNavigationItemText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Pulse. + /// + internal static string PulseNavigationItemText { + get { + return ResourceManager.GetString("PulseNavigationItemText", resourceCulture); + } + } + /// /// Looks up a localized string similar to Read more. /// @@ -609,6 +708,15 @@ internal static string verifyText { } } + /// + /// Looks up a localized string similar to Wiki. + /// + internal static string WikiNavigationItemText { + get { + return ResourceManager.GetString("WikiNavigationItemText", resourceCulture); + } + } + /// /// Looks up a localized string similar to You're using. /// diff --git a/src/GitHub.VisualStudio/Resources.resx b/src/GitHub.VisualStudio/Resources.resx index 5aeb48330f..dc4aeb1c6c 100644 --- a/src/GitHub.VisualStudio/Resources.resx +++ b/src/GitHub.VisualStudio/Resources.resx @@ -303,4 +303,40 @@ You're using + + Clone + + + Connect… + + + Powerful collaboration, code review, and code management for open source and private projects. + + + Sign up + + + Powerful collaboration, code review, and code management for open source and private projects. + + + Publish to GitHub + + + Graphs + + + Issues + + + Path + + + Pull Requests + + + Pulse + + + Wiki + \ No newline at end of file diff --git a/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs b/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs index 3d71b4ac4f..37c65aa355 100644 --- a/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs +++ b/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs @@ -27,11 +27,11 @@ public GitHubInvitationSection(IConnectionManager cm, Lazy lazyBrowser = browser; CanConnect = true; CanSignUp = true; - ConnectLabel = "Connect…"; - SignUpLabel = "Sign up"; + ConnectLabel = Resources.GitHubInvitationSectionConnectLabel; + SignUpLabel = Resources.GitHubInvitationSectionSignUpLabel; Name = "GitHub"; Provider = "GitHub, Inc."; - Description = "Powerful collaboration, code review, and code management for open source and private projects."; + Description = Resources.GitHubInvitationSectionDescription; Icon = GetDrawingForIcon(GetBrushForIcon()); IsVisible = cm.Connections.Count == 0; diff --git a/src/GitHub.VisualStudio/TeamExplorer/Home/GraphsNavigationItem.cs b/src/GitHub.VisualStudio/TeamExplorer/Home/GraphsNavigationItem.cs index 3319d8eb10..91076a56d1 100644 --- a/src/GitHub.VisualStudio/TeamExplorer/Home/GraphsNavigationItem.cs +++ b/src/GitHub.VisualStudio/TeamExplorer/Home/GraphsNavigationItem.cs @@ -23,7 +23,7 @@ public GraphsNavigationItem(ISimpleApiClientFactory apiFactory, Lazy - Clone + @@ -91,7 +91,7 @@ Grid.Column="0" Grid.Row="3" Margin="4,0" - Target="{Binding ElementName=clonePath}">Path + Target="{Binding ElementName=clonePath}" Content="{x:Static prop:Resources.pathText}"/> Date: Wed, 12 Aug 2015 08:59:37 -0600 Subject: [PATCH 07/13] line up the tag --- src/common/GitHubVS.ruleset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/GitHubVS.ruleset b/src/common/GitHubVS.ruleset index 0e1443d4ba..ebf59de5c0 100644 --- a/src/common/GitHubVS.ruleset +++ b/src/common/GitHubVS.ruleset @@ -37,7 +37,7 @@ - + From 8fe153f0e7f542a2e263bd7938c8fb7ded9b899a Mon Sep 17 00:00:00 2001 From: Andreia Gaita Date: Tue, 8 Sep 2015 18:47:10 +0200 Subject: [PATCH 08/13] Set the fontFamily so the xaml designer is happy For some reason the ContentPresenter throws in the xaml designer if the font family isn't set. --- src/GitHub.UI.Reactive/Assets/Controls/ErrorMessageDisplay.xaml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GitHub.UI.Reactive/Assets/Controls/ErrorMessageDisplay.xaml b/src/GitHub.UI.Reactive/Assets/Controls/ErrorMessageDisplay.xaml index f6dd3621c8..f7292b143b 100644 --- a/src/GitHub.UI.Reactive/Assets/Controls/ErrorMessageDisplay.xaml +++ b/src/GitHub.UI.Reactive/Assets/Controls/ErrorMessageDisplay.xaml @@ -29,6 +29,7 @@ Fill="{TemplateBinding IconFill}" /> Date: Tue, 8 Sep 2015 18:48:42 +0200 Subject: [PATCH 09/13] Resources need to be public. Consolidate strings. Resources need to be public so that xaml can get to them. Clear duplicate strings and consolidate everything. Remove unused blocks. --- .../GitHub.VisualStudio.csproj | 4 +- src/GitHub.VisualStudio/Resources.Designer.cs | 349 ++++----------- src/GitHub.VisualStudio/Resources.resx | 83 +--- .../Connect/GitHubInvitationSection.cs | 6 +- .../TeamExplorer/Sync/GitHubPublishSection.cs | 2 +- .../UI/Views/Controls/LoginControl.xaml | 28 +- .../Controls/RepositoryCloneControl.xaml | 423 +++++++++--------- .../Controls/RepositoryCloneControl.xaml.cs | 2 +- .../Controls/RepositoryCreationControl.xaml | 34 +- .../RepositoryCreationControl.xaml.cs | 7 - .../Controls/RepositoryPublishControl.xaml | 28 -- .../Controls/RepositoryPublishControl.xaml.cs | 7 - .../UI/Views/GitHubConnectContent.xaml | 8 +- .../UI/Views/GitHubInvitationContent.xaml | 6 +- 14 files changed, 361 insertions(+), 626 deletions(-) diff --git a/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj b/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj index 8e56b49879..7fc7004aa1 100644 --- a/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj +++ b/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj @@ -281,9 +281,9 @@ - ResXFileCodeGenerator - Resources.Designer.cs + PublicResXFileCodeGenerator Designer + Resources.Designer.cs true diff --git a/src/GitHub.VisualStudio/Resources.Designer.cs b/src/GitHub.VisualStudio/Resources.Designer.cs index 8d9bea2f93..15452f5c94 100644 --- a/src/GitHub.VisualStudio/Resources.Designer.cs +++ b/src/GitHub.VisualStudio/Resources.Designer.cs @@ -22,7 +22,7 @@ namespace GitHub.VisualStudio { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { + public class Resources { private static global::System.Resources.ResourceManager resourceMan; @@ -36,7 +36,7 @@ internal Resources() { /// Returns the cached ResourceManager instance used by this class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { + public static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GitHub.VisualStudio.Resources", typeof(Resources).Assembly); @@ -51,7 +51,7 @@ internal Resources() { /// resource lookups using this strongly typed resource class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { + public static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -63,7 +63,7 @@ internal Resources() { /// /// Looks up a localized string similar to Invalid authentication code. /// - internal static string authenticationFailedLabelContent { + public static string authenticationFailedLabelContent { get { return ResourceManager.GetString("authenticationFailedLabelContent", resourceCulture); } @@ -72,7 +72,7 @@ internal static string authenticationFailedLabelContent { /// /// Looks up a localized string similar to Try entering the code again or clicking the resend button to get a new authentication code.. /// - internal static string authenticationFailedLabelMessage { + public static string authenticationFailedLabelMessage { get { return ResourceManager.GetString("authenticationFailedLabelMessage", resourceCulture); } @@ -81,7 +81,7 @@ internal static string authenticationFailedLabelMessage { /// /// Looks up a localized string similar to Authentication code sent!. /// - internal static string authenticationSentLabelContent { + public static string authenticationSentLabelContent { get { return ResourceManager.GetString("authenticationSentLabelContent", resourceCulture); } @@ -90,52 +90,43 @@ internal static string authenticationSentLabelContent { /// /// Looks up a localized string similar to If you do not receive the authentication code, contact support@github.com.. /// - internal static string authenticationSentLabelMessage { + public static string authenticationSentLabelMessage { get { return ResourceManager.GetString("authenticationSentLabelMessage", resourceCulture); } } /// - /// Looks up a localized string similar to Browse. + /// Looks up a localized string similar to Powerful collaboration, code review, and code management for open source and private projects.. /// - internal static string browsePathButtonContent { + public static string BlurbText { get { - return ResourceManager.GetString("browsePathButtonContent", resourceCulture); + return ResourceManager.GetString("BlurbText", resourceCulture); } } /// - /// Looks up a localized string similar to Clone. + /// Looks up a localized string similar to Browse. /// - internal static string cloneButtonText { + public static string browsePathButtonContent { get { - return ResourceManager.GetString("cloneButtonText", resourceCulture); + return ResourceManager.GetString("browsePathButtonContent", resourceCulture); } } /// /// Looks up a localized string similar to Clone. /// - internal static string cloneLinkContent { - get { - return ResourceManager.GetString("cloneLinkContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Get Started. - /// - internal static string connect_ClickContent { + public static string CloneLink { get { - return ResourceManager.GetString("connect_ClickContent", resourceCulture); + return ResourceManager.GetString("CloneLink", resourceCulture); } } /// /// Looks up a localized string similar to Could not connect to github.com. /// - internal static string couldNotConnectToGitHubText { + public static string couldNotConnectToGitHubText { get { return ResourceManager.GetString("couldNotConnectToGitHubText", resourceCulture); } @@ -144,7 +135,7 @@ internal static string couldNotConnectToGitHubText { /// /// Looks up a localized string similar to Could not connect to the server.. /// - internal static string couldNotConnectToTheServerText { + public static string couldNotConnectToTheServerText { get { return ResourceManager.GetString("couldNotConnectToTheServerText", resourceCulture); } @@ -153,25 +144,16 @@ internal static string couldNotConnectToTheServerText { /// /// Looks up a localized string similar to Create. /// - internal static string createLinkContent { - get { - return ResourceManager.GetString("createLinkContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Create. - /// - internal static string createRepositoryButtonText { + public static string CreateLink { get { - return ResourceManager.GetString("createRepositoryButtonText", resourceCulture); + return ResourceManager.GetString("CreateLink", resourceCulture); } } /// /// Looks up a localized string similar to Description (Optional). /// - internal static string descriptionOptionalText { + public static string descriptionOptionalText { get { return ResourceManager.GetString("descriptionOptionalText", resourceCulture); } @@ -180,7 +162,7 @@ internal static string descriptionOptionalText { /// /// Looks up a localized string similar to Description. /// - internal static string descriptionText { + public static string descriptionText { get { return ResourceManager.GetString("descriptionText", resourceCulture); } @@ -189,7 +171,7 @@ internal static string descriptionText { /// /// Looks up a localized string similar to Don’t have an account? . /// - internal static string dontHaveAnAccountText { + public static string dontHaveAnAccountText { get { return ResourceManager.GetString("dontHaveAnAccountText", resourceCulture); } @@ -198,7 +180,7 @@ internal static string dontHaveAnAccountText { /// /// Looks up a localized string similar to Don’t have GitHub Enterprise? . /// - internal static string dontHaveGitHubEnterpriseText { + public static string dontHaveGitHubEnterpriseText { get { return ResourceManager.GetString("dontHaveGitHubEnterpriseText", resourceCulture); } @@ -207,178 +189,70 @@ internal static string dontHaveGitHubEnterpriseText { /// /// Looks up a localized string similar to Please check your internet connection and try again.. /// - internal static string dotComConnectionFailedMessageMessage { + public static string dotComConnectionFailedMessageMessage { get { return ResourceManager.GetString("dotComConnectionFailedMessageMessage", resourceCulture); } } - /// - /// Looks up a localized string similar to (forgot your password?). - /// - internal static string dotComForgotPasswordLinkContent { - get { - return ResourceManager.GetString("dotComForgotPasswordLinkContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Log in. - /// - internal static string dotComLogInButtonContent { - get { - return ResourceManager.GetString("dotComLogInButtonContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check your username and password, then try again. - /// - internal static string dotComLoginFailedMessageMessage { - get { - return ResourceManager.GetString("dotComLoginFailedMessageMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// - internal static string dotComPasswordPromptText { - get { - return ResourceManager.GetString("dotComPasswordPromptText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username or email. - /// - internal static string dotComUserNameOrEmailPromptText { - get { - return ResourceManager.GetString("dotComUserNameOrEmailPromptText", resourceCulture); - } - } - /// /// Looks up a localized string similar to The host isn't available or is not a GitHub Enterprise server. Check the address and try again.. /// - internal static string enterpriseConnectingFailedMessage { + public static string enterpriseConnectingFailedMessage { get { return ResourceManager.GetString("enterpriseConnectingFailedMessage", resourceCulture); } } - /// - /// Looks up a localized string similar to Log in. - /// - internal static string enterpriseLogInButtonContent { - get { - return ResourceManager.GetString("enterpriseLogInButtonContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check your username and password, then try again. - /// - internal static string enterpriseLoginFailedMessageMessage { - get { - return ResourceManager.GetString("enterpriseLoginFailedMessageMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// - internal static string enterprisePasswordPromptText { - get { - return ResourceManager.GetString("enterprisePasswordPromptText", resourceCulture); - } - } - /// /// Looks up a localized string similar to GitHub Enterprise server address. /// - internal static string enterpriseUrlPromptText { + public static string enterpriseUrlPromptText { get { return ResourceManager.GetString("enterpriseUrlPromptText", resourceCulture); } } - /// - /// Looks up a localized string similar to Username or email. - /// - internal static string enterpriseUserNameOrEmailPromptText { - get { - return ResourceManager.GetString("enterpriseUserNameOrEmailPromptText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An error occurred while loading repositories. - /// - internal static string ErrorMessageDisplayContent { - get { - return ResourceManager.GetString("ErrorMessageDisplayContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Some or all repositories may not have loaded. Close the dialog and try again.. - /// - internal static string ErrorMessageDisplayMessage { - get { - return ResourceManager.GetString("ErrorMessageDisplayMessage", resourceCulture); - } - } - /// /// Looks up a localized string similar to Search repositories. /// - internal static string filterTextPromptText { + public static string filterTextPromptText { get { return ResourceManager.GetString("filterTextPromptText", resourceCulture); } } /// - /// Looks up a localized string similar to Connect…. - /// - internal static string GitHubInvitationSectionConnectLabel { - get { - return ResourceManager.GetString("GitHubInvitationSectionConnectLabel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Powerful collaboration, code review, and code management for open source and private projects.. + /// Looks up a localized string similar to (forgot your password?). /// - internal static string GitHubInvitationSectionDescription { + public static string ForgotPasswordLink { get { - return ResourceManager.GetString("GitHubInvitationSectionDescription", resourceCulture); + return ResourceManager.GetString("ForgotPasswordLink", resourceCulture); } } /// - /// Looks up a localized string similar to Sign up. + /// Looks up a localized string similar to Get Started. /// - internal static string GitHubInvitationSectionSignUpLabel { + public static string GetStartedLink { get { - return ResourceManager.GetString("GitHubInvitationSectionSignUpLabel", resourceCulture); + return ResourceManager.GetString("GetStartedLink", resourceCulture); } } /// - /// Looks up a localized string similar to Powerful collaboration, code review, and code management for open source and private projects.. + /// Looks up a localized string similar to Connect…. /// - internal static string GitHubPublishSectionDescription { + public static string GitHubInvitationSectionConnectLabel { get { - return ResourceManager.GetString("GitHubPublishSectionDescription", resourceCulture); + return ResourceManager.GetString("GitHubInvitationSectionConnectLabel", resourceCulture); } } /// /// Looks up a localized string similar to Publish to GitHub. /// - internal static string GitHubPublishSectionTitle { + public static string GitHubPublishSectionTitle { get { return ResourceManager.GetString("GitHubPublishSectionTitle", resourceCulture); } @@ -387,7 +261,7 @@ internal static string GitHubPublishSectionTitle { /// /// Looks up a localized string similar to Graphs. /// - internal static string GraphsNavigationItemText { + public static string GraphsNavigationItemText { get { return ResourceManager.GetString("GraphsNavigationItemText", resourceCulture); } @@ -396,7 +270,7 @@ internal static string GraphsNavigationItemText { /// /// Looks up a localized string similar to Git ignore. /// - internal static string ignoreTemplateListText { + public static string ignoreTemplateListText { get { return ResourceManager.GetString("ignoreTemplateListText", resourceCulture); } @@ -405,7 +279,7 @@ internal static string ignoreTemplateListText { /// /// Looks up a localized string similar to Issues. /// - internal static string IssuesNavigationItemText { + public static string IssuesNavigationItemText { get { return ResourceManager.GetString("IssuesNavigationItemText", resourceCulture); } @@ -414,7 +288,7 @@ internal static string IssuesNavigationItemText { /// /// Looks up a localized string similar to Learn more. /// - internal static string learnMoreLinkContent { + public static string learnMoreLinkContent { get { return ResourceManager.GetString("learnMoreLinkContent", resourceCulture); } @@ -423,61 +297,70 @@ internal static string learnMoreLinkContent { /// /// Looks up a localized string similar to License. /// - internal static string licenseListText { + public static string licenseListText { get { return ResourceManager.GetString("licenseListText", resourceCulture); } } /// - /// Looks up a localized string similar to Local path. + /// Looks up a localized string similar to Some or all repositories may not have loaded. Close the dialog and try again.. /// - internal static string localPathText { + public static string loadingFailedMessageContent { get { - return ResourceManager.GetString("localPathText", resourceCulture); + return ResourceManager.GetString("loadingFailedMessageContent", resourceCulture); } } /// - /// Looks up a localized string similar to Login. + /// Looks up a localized string similar to An error occurred while loading repositories. /// - internal static string login_ClickContent { + public static string loadingFailedMessageMessage { get { - return ResourceManager.GetString("login_ClickContent", resourceCulture); + return ResourceManager.GetString("loadingFailedMessageMessage", resourceCulture); } } /// - /// Looks up a localized string similar to Login. + /// Looks up a localized string similar to Local path. + /// + public static string localPathText { + get { + return ResourceManager.GetString("localPathText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check your username and password, then try again. /// - internal static string loginContent { + public static string LoginFailedMessage { get { - return ResourceManager.GetString("loginContent", resourceCulture); + return ResourceManager.GetString("LoginFailedMessage", resourceCulture); } } /// /// Looks up a localized string similar to Login failed.. /// - internal static string loginFailedText { + public static string LoginFailedText { get { - return ResourceManager.GetString("loginFailedText", resourceCulture); + return ResourceManager.GetString("LoginFailedText", resourceCulture); } } /// - /// Looks up a localized string similar to Log in. + /// Looks up a localized string similar to Login. /// - internal static string loginLabelPrefixText { + public static string LoginLink { get { - return ResourceManager.GetString("loginLabelPrefixText", resourceCulture); + return ResourceManager.GetString("LoginLink", resourceCulture); } } /// /// Looks up a localized string similar to Private Repository. /// - internal static string makePrivateContent { + public static string makePrivateContent { get { return ResourceManager.GetString("makePrivateContent", resourceCulture); } @@ -486,7 +369,7 @@ internal static string makePrivateContent { /// /// Looks up a localized string similar to Name. /// - internal static string nameText { + public static string nameText { get { return ResourceManager.GetString("nameText", resourceCulture); } @@ -495,7 +378,7 @@ internal static string nameText { /// /// Looks up a localized string similar to No repositories. /// - internal static string noRepositoriesMessageText { + public static string noRepositoriesMessageText { get { return ResourceManager.GetString("noRepositoriesMessageText", resourceCulture); } @@ -504,7 +387,7 @@ internal static string noRepositoriesMessageText { /// /// Looks up a localized string similar to Open the two-factor authentication app on your device to view your authentication code.. /// - internal static string openTwoFactorAuthAppText { + public static string openTwoFactorAuthAppText { get { return ResourceManager.GetString("openTwoFactorAuthAppText", resourceCulture); } @@ -513,43 +396,34 @@ internal static string openTwoFactorAuthAppText { /// /// Looks up a localized string similar to or. /// - internal static string orText { + public static string orText { get { return ResourceManager.GetString("orText", resourceCulture); } } /// - /// Looks up a localized string similar to Path. - /// - internal static string pathText { - get { - return ResourceManager.GetString("pathText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to for $7/month. + /// Looks up a localized string similar to Password. /// - internal static string perMonthText { + public static string PasswordPrompt { get { - return ResourceManager.GetString("perMonthText", resourceCulture); + return ResourceManager.GetString("PasswordPrompt", resourceCulture); } } /// - /// Looks up a localized string similar to Sign up. + /// Looks up a localized string similar to Path. /// - internal static string pricingLinkContent { + public static string pathText { get { - return ResourceManager.GetString("pricingLinkContent", resourceCulture); + return ResourceManager.GetString("pathText", resourceCulture); } } /// /// Looks up a localized string similar to private repositories.. /// - internal static string privateRepositoriesText { + public static string privateRepositoriesText { get { return ResourceManager.GetString("privateRepositoriesText", resourceCulture); } @@ -558,7 +432,7 @@ internal static string privateRepositoriesText { /// /// Looks up a localized string similar to Private repositories require a. /// - internal static string privateRepoText { + public static string privateRepoText { get { return ResourceManager.GetString("privateRepoText", resourceCulture); } @@ -567,7 +441,7 @@ internal static string privateRepoText { /// /// Looks up a localized string similar to Publish. /// - internal static string publishText { + public static string publishText { get { return ResourceManager.GetString("publishText", resourceCulture); } @@ -576,7 +450,7 @@ internal static string publishText { /// /// Looks up a localized string similar to Pull Requests. /// - internal static string PullRequestsNavigationItemText { + public static string PullRequestsNavigationItemText { get { return ResourceManager.GetString("PullRequestsNavigationItemText", resourceCulture); } @@ -585,7 +459,7 @@ internal static string PullRequestsNavigationItemText { /// /// Looks up a localized string similar to Pulse. /// - internal static string PulseNavigationItemText { + public static string PulseNavigationItemText { get { return ResourceManager.GetString("PulseNavigationItemText", resourceCulture); } @@ -594,7 +468,7 @@ internal static string PulseNavigationItemText { /// /// Looks up a localized string similar to Read more. /// - internal static string readMoreText { + public static string readMoreText { get { return ResourceManager.GetString("readMoreText", resourceCulture); } @@ -603,7 +477,7 @@ internal static string readMoreText { /// /// Looks up a localized string similar to This repository does not have a remote. Fill out the form to publish it to GitHub.. /// - internal static string RepoDoesNotHaveRemoteText { + public static string RepoDoesNotHaveRemoteText { get { return ResourceManager.GetString("RepoDoesNotHaveRemoteText", resourceCulture); } @@ -612,16 +486,16 @@ internal static string RepoDoesNotHaveRemoteText { /// /// Looks up a localized string similar to Repository Name. /// - internal static string RepoNameText { + public static string RepoNameText { get { return ResourceManager.GetString("RepoNameText", resourceCulture); } } /// - /// Looks up a localized string similar to _Resend. + /// Looks up a localized string similar to Resend. /// - internal static string resendCodeButtonContent { + public static string resendCodeButtonContent { get { return ResourceManager.GetString("resendCodeButtonContent", resourceCulture); } @@ -630,7 +504,7 @@ internal static string resendCodeButtonContent { /// /// Looks up a localized string similar to Send the code to your registered SMS Device again. /// - internal static string resendCodeButtonToolTip { + public static string resendCodeButtonToolTip { get { return ResourceManager.GetString("resendCodeButtonToolTip", resourceCulture); } @@ -639,70 +513,43 @@ internal static string resendCodeButtonToolTip { /// /// Looks up a localized string similar to Sign out. /// - internal static string signOutContent { + public static string SignOutLink { get { - return ResourceManager.GetString("signOutContent", resourceCulture); + return ResourceManager.GetString("SignOutLink", resourceCulture); } } /// /// Looks up a localized string similar to Sign up. /// - internal static string signup_ClickContent { + public static string SignUpLink { get { - return ResourceManager.GetString("signup_ClickContent", resourceCulture); + return ResourceManager.GetString("SignUpLink", resourceCulture); } } /// /// Looks up a localized string similar to Two-factor authentication. /// - internal static string twoFactorAuthText { + public static string twoFactorAuthText { get { return ResourceManager.GetString("twoFactorAuthText", resourceCulture); } } /// - /// Looks up a localized string similar to Manage plans. - /// - internal static string upgradeAccountLinkContent { - get { - return ResourceManager.GetString("upgradeAccountLinkContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to manage plans. - /// - internal static string upgradeAccountLinkToolTip { - get { - return ResourceManager.GetString("upgradeAccountLinkToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to micro plan. - /// - internal static string upgradeToMicroLinkContent { - get { - return ResourceManager.GetString("upgradeToMicroLinkContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to upgrade. + /// Looks up a localized string similar to Username or email. /// - internal static string upgradeToMicroLinkToolTip { + public static string UserNameOrEmailPromptText { get { - return ResourceManager.GetString("upgradeToMicroLinkToolTip", resourceCulture); + return ResourceManager.GetString("UserNameOrEmailPromptText", resourceCulture); } } /// /// Looks up a localized string similar to Verify. /// - internal static string verifyText { + public static string verifyText { get { return ResourceManager.GetString("verifyText", resourceCulture); } @@ -711,7 +558,7 @@ internal static string verifyText { /// /// Looks up a localized string similar to Wiki. /// - internal static string WikiNavigationItemText { + public static string WikiNavigationItemText { get { return ResourceManager.GetString("WikiNavigationItemText", resourceCulture); } @@ -720,7 +567,7 @@ internal static string WikiNavigationItemText { /// /// Looks up a localized string similar to You're using. /// - internal static string youreUsingText { + public static string youreUsingText { get { return ResourceManager.GetString("youreUsingText", resourceCulture); } diff --git a/src/GitHub.VisualStudio/Resources.resx b/src/GitHub.VisualStudio/Resources.resx index dc4aeb1c6c..9d4b8e7361 100644 --- a/src/GitHub.VisualStudio/Resources.resx +++ b/src/GitHub.VisualStudio/Resources.resx @@ -132,10 +132,7 @@ Browse - - Clone - - + Get Started @@ -144,10 +141,7 @@ Could not connect to the server. - - Create - - + Create @@ -165,43 +159,31 @@ Please check your internet connection and try again. - + (forgot your password?) - - Log in + + Login - + Check your username and password, then try again - + Password - + Username or email The host isn't available or is not a GitHub Enterprise server. Check the address and try again. - - Log in - - - Check your username and password, then try again - - - Password - GitHub Enterprise server address - - Username or email - - + An error occurred while loading repositories - + Some or all repositories may not have loaded. Close the dialog and try again. @@ -219,18 +201,9 @@ Local path - - Login - - + Login failed. - - Log in - - - Login - Private Repository @@ -246,12 +219,6 @@ or - - for $7/month - - - Sign up - private repositories. @@ -271,51 +238,33 @@ Repository Name - _Resend + Resend Send the code to your registered SMS Device again - + Sign out - + Sign up Two-factor authentication - - Manage plans - - - manage plans - - - micro plan - - - upgrade - Verify You're using - + Clone Connect… - - Powerful collaboration, code review, and code management for open source and private projects. - - - Sign up - - + Powerful collaboration, code review, and code management for open source and private projects. diff --git a/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs b/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs index 37c65aa355..472e8cdbd3 100644 --- a/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs +++ b/src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubInvitationSection.cs @@ -27,11 +27,11 @@ public GitHubInvitationSection(IConnectionManager cm, Lazy lazyBrowser = browser; CanConnect = true; CanSignUp = true; - ConnectLabel = Resources.GitHubInvitationSectionConnectLabel; - SignUpLabel = Resources.GitHubInvitationSectionSignUpLabel; + ConnectLabel = Resources.GetStartedLink; + SignUpLabel = Resources.SignUpLink; Name = "GitHub"; Provider = "GitHub, Inc."; - Description = Resources.GitHubInvitationSectionDescription; + Description = Resources.BlurbText; Icon = GetDrawingForIcon(GetBrushForIcon()); IsVisible = cm.Connections.Count == 0; diff --git a/src/GitHub.VisualStudio/TeamExplorer/Sync/GitHubPublishSection.cs b/src/GitHub.VisualStudio/TeamExplorer/Sync/GitHubPublishSection.cs index 5d598394ac..5f36e56946 100644 --- a/src/GitHub.VisualStudio/TeamExplorer/Sync/GitHubPublishSection.cs +++ b/src/GitHub.VisualStudio/TeamExplorer/Sync/GitHubPublishSection.cs @@ -39,7 +39,7 @@ public GitHubPublishSection(ISimpleApiClientFactory apiFactory, ITeamExplorerSer Title = Resources.GitHubPublishSectionTitle; Name = "GitHub"; Provider = "GitHub, Inc"; - Description = Resources.GitHubPublishSectionDescription; + Description = Resources.BlurbText; ShowLogin = false; ShowSignup = false; ShowGetStarted = false; diff --git a/src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml b/src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml index b0508bdb81..7bef48a8ab 100644 --- a/src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml +++ b/src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml @@ -44,7 +44,7 @@ Margin="0,0,0,10" Style="{DynamicResource GitHubH1TextBlock}" IsHitTestVisible="False" - Text="{x:Static prop:Resources.loginLabelPrefixText}" /> + Text="{x:Static prop:Resources.LoginLink}" /> @@ -78,11 +78,11 @@ - + - + @@ -91,16 +91,16 @@ - + - - + Message="{x:Static prop:Resources.LoginFailedMessage}"> + + @@ -127,7 +127,7 @@ - + @@ -141,10 +141,10 @@ - + @@ -163,9 +163,9 @@ - - + Message="{x:Static prop:Resources.LoginFailedMessage}"> + + diff --git a/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml b/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml index ec1390bdb0..916bcffe69 100644 --- a/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml +++ b/src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml @@ -1,225 +1,234 @@  - - - - - - - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:ui="clr-namespace:GitHub.UI;assembly=GitHub.UI" + xmlns:uirx="clr-namespace:GitHub.UI;assembly=GitHub.UI.Reactive" + xmlns:local="clr-namespace:GitHub.VisualStudio.UI.Views.Controls" + xmlns:helpers="clr-namespace:GitHub.Helpers;assembly=GitHub.UI" + xmlns:sampleData="clr-namespace:GitHub.SampleData;assembly=GitHub.App" + xmlns:GitHub="clr-namespace:GitHub.VisualStudio.Helpers" + xmlns:prop="clr-namespace:GitHub.VisualStudio" + mc:Ignorable="d" + d:DesignWidth="414" + d:DesignHeight="440" + Background="Transparent"> + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + - - - + + + + + - - - - - - - -