Skip to content

Commit

Permalink
Use resource
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Apr 20, 2020
1 parent f1de8bf commit 9d1bd7c
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Workspaces/Core/Portable/Remote/RemoteArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public static SerializableSymbolAndProjectId Dehydrate(
{
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
{
Expand Down
3 changes: 3 additions & 0 deletions src/Workspaces/Core/Portable/WorkspacesResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -553,4 +553,7 @@
<data name="Unknown" xml:space="preserve">
<value>Unknown</value>
</data>
<data name="Symbols_project_could_not_be_found_in_the_provided_solution" xml:space="preserve">
<value>Symbol's project could not be found in the provided solution</value>
</data>
</root>
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">Přidávání projektů se nepodporuje.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">Das Hinzufügen von Projekten wird nicht unterstützt.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">No se admite la adición de proyectos.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">L'ajout de projets n'est pas pris en charge.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">L'aggiunta di progetti non è supportata.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">プロジェクトの追加はサポートされていません。</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">프로젝트 추가가 지원되지 않습니다.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">Dodawanie projektów nie jest obsługiwane.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">Não há suporte para adicionar projetos.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">Добавление проектов не поддерживается.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">Projelerin eklenmesi desteklenmiyor.</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">不支持添加项目。</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
<target state="translated">不支援新增專案。</target>
<note />
</trans-unit>
<trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution">
<source>Symbol's project could not be found in the provided solution</source>
<target state="new">Symbol's project could not be found in the provided solution</target>
<note />
</trans-unit>
<trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target>
Expand Down

0 comments on commit 9d1bd7c

Please sign in to comment.