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

Localization

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