From 7712df86932673b94b9b657115f0c81b8f00ef43 Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Fri, 5 Apr 2019 11:57:14 -0400 Subject: [PATCH] Moving content from RepositorySelectViewModel to resource files --- .../Dialog/Clone/RepositorySelectViewModel.cs | 6 ++-- src/GitHub.Resources/Resources.Designer.cs | 29 ++++++++++++++++++- src/GitHub.Resources/Resources.cs-CZ.resx | 9 ++++++ src/GitHub.Resources/Resources.de-DE.resx | 9 ++++++ src/GitHub.Resources/Resources.es-ES.resx | 9 ++++++ src/GitHub.Resources/Resources.fr-FR.resx | 9 ++++++ src/GitHub.Resources/Resources.it-IT.resx | 9 ++++++ src/GitHub.Resources/Resources.ja-JP.resx | 9 ++++++ src/GitHub.Resources/Resources.ko-KR.resx | 9 ++++++ src/GitHub.Resources/Resources.pl-PL.resx | 9 ++++++ src/GitHub.Resources/Resources.pt-BR.resx | 9 ++++++ src/GitHub.Resources/Resources.resx | 9 ++++++ src/GitHub.Resources/Resources.ru-RU.resx | 9 ++++++ src/GitHub.Resources/Resources.tr-TR.resx | 9 ++++++ src/GitHub.Resources/Resources.zh-CN.resx | 9 ++++++ src/GitHub.Resources/Resources.zh-TW.resx | 9 ++++++ 16 files changed, 157 insertions(+), 4 deletions(-) diff --git a/src/GitHub.App/ViewModels/Dialog/Clone/RepositorySelectViewModel.cs b/src/GitHub.App/ViewModels/Dialog/Clone/RepositorySelectViewModel.cs index bf45c4ec78..4956ac40f2 100644 --- a/src/GitHub.App/ViewModels/Dialog/Clone/RepositorySelectViewModel.cs +++ b/src/GitHub.App/ViewModels/Dialog/Clone/RepositorySelectViewModel.cs @@ -147,13 +147,13 @@ async Task LoadItems(bool refresh) var yourRepositories = results.Repositories .Where(r => r.Owner == results.Owner) - .Select(x => new RepositoryItemViewModel(x, "Your repositories")); + .Select(x => new RepositoryItemViewModel(x, Resources.RepositorySelectYourRepositories)); var collaboratorRepositories = results.Repositories .Where(r => r.Owner != results.Owner) .OrderBy(r => r.Owner) - .Select(x => new RepositoryItemViewModel(x, "Collaborator repositories")); + .Select(x => new RepositoryItemViewModel(x, Resources.RepositorySelectCollaboratorRepositories)); var repositoriesContributedTo = results.ContributedToRepositories - .Select(x => new RepositoryItemViewModel(x, "Contributed to repositories")); + .Select(x => new RepositoryItemViewModel(x, Resources.RepositorySelectContributedRepositories)); var orgRepositories = results.Organizations .OrderBy(x => x.Key) .SelectMany(x => x.Value.Select(y => new RepositoryItemViewModel(y, GroupName(x, 100)))); diff --git a/src/GitHub.Resources/Resources.Designer.cs b/src/GitHub.Resources/Resources.Designer.cs index b02170c714..52383bf054 100644 --- a/src/GitHub.Resources/Resources.Designer.cs +++ b/src/GitHub.Resources/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace GitHub { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] public class Resources { @@ -1809,6 +1809,33 @@ public static string RepositoryPublishedMessage { } } + /// + /// Looks up a localized string similar to Collaborator repositories. + /// + public static string RepositorySelectCollaboratorRepositories { + get { + return ResourceManager.GetString("RepositorySelectCollaboratorRepositories", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributed to repositories. + /// + public static string RepositorySelectContributedRepositories { + get { + return ResourceManager.GetString("RepositorySelectContributedRepositories", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Your repositories. + /// + public static string RepositorySelectYourRepositories { + get { + return ResourceManager.GetString("RepositorySelectYourRepositories", resourceCulture); + } + } + /// /// Looks up a localized string similar to Request changes. /// diff --git a/src/GitHub.Resources/Resources.cs-CZ.resx b/src/GitHub.Resources/Resources.cs-CZ.resx index 8549044c4e..026b59847b 100644 --- a/src/GitHub.Resources/Resources.cs-CZ.resx +++ b/src/GitHub.Resources/Resources.cs-CZ.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.de-DE.resx b/src/GitHub.Resources/Resources.de-DE.resx index f8609ec9b6..d3726e4578 100644 --- a/src/GitHub.Resources/Resources.de-DE.resx +++ b/src/GitHub.Resources/Resources.de-DE.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.es-ES.resx b/src/GitHub.Resources/Resources.es-ES.resx index ef54b2b539..52235eac3d 100644 --- a/src/GitHub.Resources/Resources.es-ES.resx +++ b/src/GitHub.Resources/Resources.es-ES.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.fr-FR.resx b/src/GitHub.Resources/Resources.fr-FR.resx index 6e036201be..183452d205 100644 --- a/src/GitHub.Resources/Resources.fr-FR.resx +++ b/src/GitHub.Resources/Resources.fr-FR.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.it-IT.resx b/src/GitHub.Resources/Resources.it-IT.resx index 69d0828ec2..a797444112 100644 --- a/src/GitHub.Resources/Resources.it-IT.resx +++ b/src/GitHub.Resources/Resources.it-IT.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.ja-JP.resx b/src/GitHub.Resources/Resources.ja-JP.resx index 00b87fded9..7acb4ffc25 100644 --- a/src/GitHub.Resources/Resources.ja-JP.resx +++ b/src/GitHub.Resources/Resources.ja-JP.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.ko-KR.resx b/src/GitHub.Resources/Resources.ko-KR.resx index f43e1cec7f..d508165189 100644 --- a/src/GitHub.Resources/Resources.ko-KR.resx +++ b/src/GitHub.Resources/Resources.ko-KR.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.pl-PL.resx b/src/GitHub.Resources/Resources.pl-PL.resx index 79d58049f6..a111d27ad0 100644 --- a/src/GitHub.Resources/Resources.pl-PL.resx +++ b/src/GitHub.Resources/Resources.pl-PL.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.pt-BR.resx b/src/GitHub.Resources/Resources.pt-BR.resx index 509f9ef871..47ada59772 100644 --- a/src/GitHub.Resources/Resources.pt-BR.resx +++ b/src/GitHub.Resources/Resources.pt-BR.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.resx b/src/GitHub.Resources/Resources.resx index 0ef7e5f1fc..c9cde7d183 100644 --- a/src/GitHub.Resources/Resources.resx +++ b/src/GitHub.Resources/Resources.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.ru-RU.resx b/src/GitHub.Resources/Resources.ru-RU.resx index 5efc7b01c6..ff9dea6043 100644 --- a/src/GitHub.Resources/Resources.ru-RU.resx +++ b/src/GitHub.Resources/Resources.ru-RU.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.tr-TR.resx b/src/GitHub.Resources/Resources.tr-TR.resx index 43dcdab5d1..e6e020e265 100644 --- a/src/GitHub.Resources/Resources.tr-TR.resx +++ b/src/GitHub.Resources/Resources.tr-TR.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.zh-CN.resx b/src/GitHub.Resources/Resources.zh-CN.resx index 133508d9ff..a0fb73be21 100644 --- a/src/GitHub.Resources/Resources.zh-CN.resx +++ b/src/GitHub.Resources/Resources.zh-CN.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file diff --git a/src/GitHub.Resources/Resources.zh-TW.resx b/src/GitHub.Resources/Resources.zh-TW.resx index 5e5695c7c7..7fcaece4cb 100644 --- a/src/GitHub.Resources/Resources.zh-TW.resx +++ b/src/GitHub.Resources/Resources.zh-TW.resx @@ -869,4 +869,13 @@ https://git-scm.com/download/win This conversation was marked as resolved + + Your repositories + + + Collaborator repositories + + + Contributed to repositories + \ No newline at end of file