提交 cbd1e91f 编写于 作者: Š Šimon Koníček

Localization

上级 61001fb1
...@@ -88,6 +88,15 @@ internal class CSharpFeaturesResources { ...@@ -88,6 +88,15 @@ internal class CSharpFeaturesResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Allow unsafe code in this project.
/// </summary>
internal static string Allow_unsafe_code_in_this_project {
get {
return ResourceManager.GetString("Allow_unsafe_code_in_this_project", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to anonymous method. /// Looks up a localized string similar to anonymous method.
/// </summary> /// </summary>
...@@ -548,7 +557,16 @@ internal class CSharpFeaturesResources { ...@@ -548,7 +557,16 @@ internal class CSharpFeaturesResources {
} }
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Invert if statement.
/// </summary>
internal static string Invert_if_statement {
get {
return ResourceManager.GetString("Invert_if_statement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to is pattern. /// Looks up a localized string similar to is pattern.
/// </summary> /// </summary>
internal static string is_pattern { internal static string is_pattern {
......
...@@ -524,4 +524,7 @@ ...@@ -524,4 +524,7 @@
<data name="Convert_for_to_foreach" xml:space="preserve"> <data name="Convert_for_to_foreach" xml:space="preserve">
<value>Convert 'for' to 'foreach'</value> <value>Convert 'for' to 'foreach'</value>
</data> </data>
<data name="Allow_unsafe_code_in_this_project" xml:space="preserve">
<value>Allow unsafe code in this project</value>
</data>
</root> </root>
\ No newline at end of file
...@@ -16,12 +16,10 @@ internal class CSharpUnsafeProjectCodeFixProvider : CodeFixProvider ...@@ -16,12 +16,10 @@ internal class CSharpUnsafeProjectCodeFixProvider : CodeFixProvider
public override ImmutableArray<string> FixableDiagnosticIds { get; } = public override ImmutableArray<string> FixableDiagnosticIds { get; } =
ImmutableArray.Create(CS0227); ImmutableArray.Create(CS0227);
private string UnsafeThisProjectResource => "Allow unsafe code in this project";
public override Task RegisterCodeFixesAsync(CodeFixContext context) public override Task RegisterCodeFixesAsync(CodeFixContext context)
{ {
context.RegisterCodeFix(new ProjectOptionsChangeAction(UnsafeThisProjectResource, _ => context.RegisterCodeFix(new ProjectOptionsChangeAction(CSharpFeaturesResources.Allow_unsafe_code_in_this_project,
Task.FromResult(AllowUnsafeOnProject(context.Document.Project))), context.Diagnostics); _ => Task.FromResult(AllowUnsafeOnProject(context.Document.Project))), context.Diagnostics);
return Task.CompletedTask; return Task.CompletedTask;
} }
......
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -637,6 +637,11 @@ ...@@ -637,6 +637,11 @@
<target state="new">Convert 'for' to 'foreach'</target> <target state="new">Convert 'for' to 'foreach'</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="Allow_unsafe_code_in_this_project">
<source>Allow unsafe code in this project</source>
<target state="new">Allow unsafe code in this project</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册