提交 9d1bd7c7 编写于 作者: C Cyrus Najmabadi

Use resource

上级 f1de8bff
...@@ -55,8 +55,7 @@ internal class SerializableSymbolAndProjectId ...@@ -55,8 +55,7 @@ internal class SerializableSymbolAndProjectId
{ {
var symbolKey = symbol.GetSymbolKey(cancellationToken); var symbolKey = symbol.GetSymbolKey(cancellationToken);
var projectId = solution.GetExactProjectId(symbol); var projectId = solution.GetExactProjectId(symbol);
if (projectId == null) Contract.ThrowIfNull(projectId, WorkspacesResources.Symbols_project_could_not_be_found_in_the_provided_solution);
throw new ArgumentException("Symbol's project could not be found in the Solution provided");
return new SerializableSymbolAndProjectId return new SerializableSymbolAndProjectId
{ {
......
...@@ -553,4 +553,7 @@ ...@@ -553,4 +553,7 @@
<data name="Unknown" xml:space="preserve"> <data name="Unknown" xml:space="preserve">
<value>Unknown</value> <value>Unknown</value>
</data> </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> </root>
\ No newline at end of file
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">Přidávání projektů se nepodporuje.</target> <target state="translated">Přidávání projektů se nepodporuje.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">Das Hinzufügen von Projekten wird nicht unterstützt.</target> <target state="translated">Das Hinzufügen von Projekten wird nicht unterstützt.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">No se admite la adición de proyectos.</target> <target state="translated">No se admite la adición de proyectos.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">L'ajout de projets n'est pas pris en charge.</target> <target state="translated">L'ajout de projets n'est pas pris en charge.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">L'aggiunta di progetti non è supportata.</target> <target state="translated">L'aggiunta di progetti non è supportata.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">プロジェクトの追加はサポートされていません。</target> <target state="translated">プロジェクトの追加はサポートされていません。</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">프로젝트 추가가 지원되지 않습니다.</target> <target state="translated">프로젝트 추가가 지원되지 않습니다.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">Dodawanie projektów nie jest obsługiwane.</target> <target state="translated">Dodawanie projektów nie jest obsługiwane.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">Não há suporte para adicionar projetos.</target> <target state="translated">Não há suporte para adicionar projetos.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">Добавление проектов не поддерживается.</target> <target state="translated">Добавление проектов не поддерживается.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">Projelerin eklenmesi desteklenmiyor.</target> <target state="translated">Projelerin eklenmesi desteklenmiyor.</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">不支持添加项目。</target> <target state="translated">不支持添加项目。</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
...@@ -172,6 +172,11 @@ ...@@ -172,6 +172,11 @@
<target state="translated">不支援新增專案。</target> <target state="translated">不支援新增專案。</target>
<note /> <note />
</trans-unit> </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"> <trans-unit id="The_project_already_contains_the_specified_reference">
<source>The project already contains the specified reference.</source> <source>The project already contains the specified reference.</source>
<target state="new">The project already contains the specified reference.</target> <target state="new">The project already contains the specified reference.</target>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册