dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.04k stars 4.03k forks source link

[loc][query] Assistance with translation #47564

Open cristianosuzuki77 opened 4 years ago

cristianosuzuki77 commented 4 years ago
String Resource ID 0; "ERR_CannotSpecifyManagedWithUnmanagedSpecifiers"
Source String 'managed' calling convention cannot be combined with unmanaged calling convention specifiers.
Filename Compilers\CSharp\Portable\xlf\CSharpResources.xlf
Question Is "managed" localizable?
cristianosuzuki77 commented 3 years ago

@crsuzukimsft

jcouv commented 2 years ago

No managed refers to a keyword in syntax. So it should not be translated.

Illustration:

        UsingStatement("delegate* managed[Cdecl]<void> ptr;", options: TestOptions.RegularPreview,
                // (1,18): error CS8888: 'managed' calling convention cannot be combined with unmanaged calling convention specifiers.
                // delegate* managed[Cdecl]<void> ptr;
                Diagnostic(ErrorCode.ERR_CannotSpecifyManagedWithUnmanagedSpecifiers, "[Cdecl]").WithLocation(1, 18)
            );