From 9d1bd7c7f7373859dfe36815ce23eee75de99352 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Mon, 20 Apr 2020 12:10:47 -0700 Subject: [PATCH] Use resource --- src/Workspaces/Core/Portable/Remote/RemoteArguments.cs | 3 +-- src/Workspaces/Core/Portable/WorkspacesResources.resx | 3 +++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf | 5 +++++ .../Core/Portable/xlf/WorkspacesResources.pt-BR.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf | 5 +++++ src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf | 5 +++++ .../Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf | 5 +++++ .../Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf | 5 +++++ 15 files changed, 69 insertions(+), 2 deletions(-) diff --git a/src/Workspaces/Core/Portable/Remote/RemoteArguments.cs b/src/Workspaces/Core/Portable/Remote/RemoteArguments.cs index f4e15821223..9a1b616882d 100644 --- a/src/Workspaces/Core/Portable/Remote/RemoteArguments.cs +++ b/src/Workspaces/Core/Portable/Remote/RemoteArguments.cs @@ -55,8 +55,7 @@ internal class SerializableSymbolAndProjectId { var symbolKey = symbol.GetSymbolKey(cancellationToken); var projectId = solution.GetExactProjectId(symbol); - if (projectId == null) - throw new ArgumentException("Symbol's project could not be found in the Solution provided"); + Contract.ThrowIfNull(projectId, WorkspacesResources.Symbols_project_could_not_be_found_in_the_provided_solution); return new SerializableSymbolAndProjectId { diff --git a/src/Workspaces/Core/Portable/WorkspacesResources.resx b/src/Workspaces/Core/Portable/WorkspacesResources.resx index 1dde52b6f9d..39e05a55ac4 100644 --- a/src/Workspaces/Core/Portable/WorkspacesResources.resx +++ b/src/Workspaces/Core/Portable/WorkspacesResources.resx @@ -553,4 +553,7 @@ Unknown + + Symbol's project could not be found in the provided solution + \ No newline at end of file diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf index 927aed0ecac..cd1c8908e92 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf @@ -172,6 +172,11 @@ Přidávání projektů se nepodporuje. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf index 8edd7c4742e..64377f1c439 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf @@ -172,6 +172,11 @@ Das Hinzufügen von Projekten wird nicht unterstützt. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf index 10a857869d5..90b817c0b25 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf @@ -172,6 +172,11 @@ No se admite la adición de proyectos. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf index 1e9a4469098..9a7247c1d20 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf @@ -172,6 +172,11 @@ L'ajout de projets n'est pas pris en charge. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf index e390333bf5a..96ec6d11bc0 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf @@ -172,6 +172,11 @@ L'aggiunta di progetti non è supportata. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf index 3b3ff9d7ec6..20b168f0c7d 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf @@ -172,6 +172,11 @@ プロジェクトの追加はサポートされていません。 + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf index f82e78f4a70..791183aadef 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf @@ -172,6 +172,11 @@ 프로젝트 추가가 지원되지 않습니다. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf index ce51a1359c4..c0817d3f8b2 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf @@ -172,6 +172,11 @@ Dodawanie projektów nie jest obsługiwane. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf index e97d1c1ff82..593d1ff0828 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf @@ -172,6 +172,11 @@ Não há suporte para adicionar projetos. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf index e1a5d508225..757fa537a55 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf @@ -172,6 +172,11 @@ Добавление проектов не поддерживается. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf index 65b15ef3476..980ccc20171 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf @@ -172,6 +172,11 @@ Projelerin eklenmesi desteklenmiyor. + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf index 974afac279f..700d7440735 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf @@ -172,6 +172,11 @@ 不支持添加项目。 + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. diff --git a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf index 97722d4bec8..b097edeb494 100644 --- a/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf +++ b/src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf @@ -172,6 +172,11 @@ 不支援新增專案。 + + Symbol's project could not be found in the provided solution + Symbol's project could not be found in the provided solution + + The project already contains the specified reference. The project already contains the specified reference. -- GitLab