diff --git a/src/Features/CSharp/Portable/CSharpFeaturesResources.Designer.cs b/src/Features/CSharp/Portable/CSharpFeaturesResources.Designer.cs index 9b76552edcf1ffd21b6703031f5d66fbed54c334..4a16682c7d23c3c64c3a5945959bf1a161e68888 100644 --- a/src/Features/CSharp/Portable/CSharpFeaturesResources.Designer.cs +++ b/src/Features/CSharp/Portable/CSharpFeaturesResources.Designer.cs @@ -88,6 +88,15 @@ internal class CSharpFeaturesResources { } } + /// + /// Looks up a localized string similar to Allow unsafe code in this project. + /// + internal static string Allow_unsafe_code_in_this_project { + get { + return ResourceManager.GetString("Allow_unsafe_code_in_this_project", resourceCulture); + } + } + /// /// Looks up a localized string similar to anonymous method. /// @@ -548,7 +557,16 @@ internal class CSharpFeaturesResources { } } - /// + /// + /// Looks up a localized string similar to Invert if statement. + /// + internal static string Invert_if_statement { + get { + return ResourceManager.GetString("Invert_if_statement", resourceCulture); + } + } + + /// /// Looks up a localized string similar to is pattern. /// internal static string is_pattern { diff --git a/src/Features/CSharp/Portable/CSharpFeaturesResources.resx b/src/Features/CSharp/Portable/CSharpFeaturesResources.resx index 33729d573f118a0700bf7009adadcdfa2eaf416c..74971f5f76f6caf3f65c79d73b5c6a7ccf4813e1 100644 --- a/src/Features/CSharp/Portable/CSharpFeaturesResources.resx +++ b/src/Features/CSharp/Portable/CSharpFeaturesResources.resx @@ -524,4 +524,7 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/UnsafeProject/CSharpUnsafeProjectCodeFixProvider.cs b/src/Features/CSharp/Portable/UnsafeProject/CSharpUnsafeProjectCodeFixProvider.cs index f5945e2501b2ebaccf6c14106571543ebe43b158..af4573c76ce3846bbac625a3df70992e9440e3dc 100644 --- a/src/Features/CSharp/Portable/UnsafeProject/CSharpUnsafeProjectCodeFixProvider.cs +++ b/src/Features/CSharp/Portable/UnsafeProject/CSharpUnsafeProjectCodeFixProvider.cs @@ -16,12 +16,10 @@ internal class CSharpUnsafeProjectCodeFixProvider : CodeFixProvider public override ImmutableArray 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; } diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf index 1bd06a1edf3aea1c67321497d4bf431baa12c8c3..ffca106719fcc2f516d5acd0136c16c9b5de0c87 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf index 40097ece0728d14f8b5f8ce138025a0117985db6..4e1358d27104cec4726229b3ad25461a7192bddb 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf index 7e32776cfaac4c00d1497cea7253f077395fd670..78897a8555569d043439456f196ba846da4d9a52 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf index cc200a5d5491fcdf2eb85fa217702c2b9c66cdf3..f3193fdca770cb40750b2c1f3303c38a2c5ba23f 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf index 4972959fe5c765cec92d7d3512e1ef46eda0be08..a250ceb9f1006e92621a8ad58ba56fa5c48af8fe 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf index 8fafb335468d543d9261ac695b7eaa5a1f6b1016..fb641a58f2f2b3f0c0d9d6332dc82e1d32a44c4d 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf index 4ee71f75c339eaff14706f8bcb707617d5ae1783..b272bd8bc41a9404526244b10778f282ce911b54 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf index e2b5d1b93fa923732104d9fc25be2b312dc31440..f061f5becc2c185a1467cb593a1981821d7233fe 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf index 4aaadb65a887db9f3bb9e784500223667cb54217..afe6f3145ab7daada016aee270b677305ae30454 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf index cd96923d9f55caa410485238bb8f56531d7e9783..718c694f102bed6b79b1151e35296b24a00f28da 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf index 91847b34d5139186e7c4712e44b977de1b39fa57..5d322a25b3f71ea7895760a7cd68587f5a22c69a 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf index 12bfb8b9c438ecbeba3c29f18f0074fa663b639c..a1ac6303462396769e46f231a08149c4ef2abbd2 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file diff --git a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf index f2ec2b3b74bc8882e943e21eb258932098675b6f..aff10def3603cfefbd6e878ef8e60fcf6879c1f0 100644 --- a/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf +++ b/src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf @@ -637,6 +637,11 @@ Convert 'for' to 'foreach' + + Allow unsafe code in this project + Allow unsafe code in this project + + \ No newline at end of file