Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix interop source generator error message to match the approved API surface #68635

Merged
merged 2 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<value>Marshalling char with 'CharSet.{0}' is not supported. Instead, manually convert the char type to the desired byte representation and pass to the source-generated P/Invoke.</value>
</data>
<data name="MarshallingStringOrCharAsUndefinedNotSupported" xml:space="preserve">
<value>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</value>
<value>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</value>
</data>
<data name="OutByValueNotSupportedDescription" xml:space="preserve">
<value>The '[Out]' attribute is only supported on array parameters.</value>
Expand Down Expand Up @@ -201,4 +201,4 @@
<data name="ValueInCallerAllocatedBufferRequiresSpanConstructorMessage" xml:space="preserve">
<value>The type '{0}' specifies that it supports 'In' marshalling with the 'CallerAllocatedBuffer' feature for '{1}' but does not provide a one-parameter constructor that takes a '{1}' and 'Span' of an 'unmanaged' type as parameters</value>
</data>
</root>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Zařazování řetězce nebo char bez výslovných informací zařazování se nepodporuje. Určete buď LibraryImportAttribute.CharSet nebo MarshalAsAttribute.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Zařazování řetězce nebo char bez výslovných informací zařazování se nepodporuje. Určete buď LibraryImportAttribute.CharSet nebo MarshalAsAttribute.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Marshalling von Zeichenfolgen oder Zeichen ohne explizite Marshallinginformationen wird nicht unterstützt. Geben Sie entweder \"LibraryImportAttribute.CharSet\" oder \"MarshalAsAttribute\" an.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Marshalling von Zeichenfolgen oder Zeichen ohne explizite Marshallinginformationen wird nicht unterstützt. Geben Sie entweder \"LibraryImportAttribute.CharSet\" oder \"MarshalAsAttribute\" an.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">No se admite la serialización de cadenas o caracteres sin información de serialización explícita. Especifique “LibraryImportAttribute.CharSet” o “MarshalAsAttribute”.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">No se admite la serialización de cadenas o caracteres sin información de serialización explícita. Especifique “LibraryImportAttribute.CharSet” o “MarshalAsAttribute”.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Le marshaling d’une chaîne ou d’un caractère sans information de marshaling explicite n’est pas pris en charge. Spécifiez « LibraryImportAttribute.CharSet » ou « MarshalAsAttribute ».</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Le marshaling d’une chaîne ou d’un caractère sans information de marshaling explicite n’est pas pris en charge. Spécifiez « LibraryImportAttribute.CharSet » ou « MarshalAsAttribute ».</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Il marshalling del tipo di dati string o char senza informazioni di marshalling esplicite non è supportato. Specificare 'LibraryImportAttribute.CharSet' o 'MarshalAsAttribute'.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Il marshalling del tipo di dati string o char senza informazioni di marshalling esplicite non è supportato. Specificare 'LibraryImportAttribute.CharSet' o 'MarshalAsAttribute'.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">明示的なマーシャリング情報を含まない文字列または文字のマーシャリングはサポートされていません。'LibraryImportAttribute.CharSet' または 'MarshalAsAttribute' のいずれかを指定してください。</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">明示的なマーシャリング情報を含まない文字列または文字のマーシャリングはサポートされていません。'LibraryImportAttribute.CharSet' または 'MarshalAsAttribute' のいずれかを指定してください。</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">명시적 마샬링 정보가 없는 문자열 또는 문자 마샬링은 지원되지 않습니다. 'LibraryImportAttribute.CharSet' 또는 'MarshalAsAttribute'를 지정하세요.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">명시적 마샬링 정보가 없는 문자열 또는 문자 마샬링은 지원되지 않습니다. 'LibraryImportAttribute.CharSet' 또는 'MarshalAsAttribute'를 지정하세요.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Skierowanie ciągu lub znaku bez wyraźnych informacji o skierowaniu nie jest obsługiwane. Określ atrybut „LibraryImportAttribute.CharSet” lub atrybut „MarshalAsAttribute”.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Skierowanie ciągu lub znaku bez wyraźnych informacji o skierowaniu nie jest obsługiwane. Określ atrybut „LibraryImportAttribute.CharSet” lub atrybut „MarshalAsAttribute”.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Não há suporte para marshalling de cadeia de caracteres ou caractere sem informações de marshalling explícitas. Especifique 'LibraryImportAttribute.CharSet' ou 'MarshalAsAttribute'.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Não há suporte para marshalling de cadeia de caracteres ou caractere sem informações de marshalling explícitas. Especifique 'LibraryImportAttribute.CharSet' ou 'MarshalAsAttribute'.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Маршализация типов string или char без явного указания сведений маршализации не поддерживается. Укажите \"LibraryImportAttribute.CharSet\" или \"MarshalAsAttribute\".</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Маршализация типов string или char без явного указания сведений маршализации не поддерживается. Укажите \"LibraryImportAttribute.CharSet\" или \"MarshalAsAttribute\".</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">Açık sıralama bilgileri olmadan dize veya karakter sıralaması desteklenmiyor. 'LibraryImportAttribute.CharSet' veya 'MarshalAsAttribute' bilgilerini belirtin.</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">Açık sıralama bilgileri olmadan dize veya karakter sıralaması desteklenmiyor. 'LibraryImportAttribute.CharSet' veya 'MarshalAsAttribute' bilgilerini belirtin.</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">不支持封送不带显式封送信息的字符串或字符。指定 “LibraryImportAttribute.CharSet” 或 “MarshalAsAttribute”。</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">不支持封送不带显式封送信息的字符串或字符。指定 “LibraryImportAttribute.CharSet” 或 “MarshalAsAttribute”。</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<note />
</trans-unit>
<trans-unit id="MarshallingStringOrCharAsUndefinedNotSupported">
<source>Marshalling string or char without explicit marshalling information is not supported. Specify either 'LibraryImportAttribute.CharSet' or 'MarshalAsAttribute'.</source>
<target state="translated">不支援封送處理字符串或没有明確排列資訊的字符。指定 'LibraryImportAttribute.CharSet' 或 'MarshalAsAttribute'。</target>
<source>Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'.</source>
<target state="needs-review-translation">不支援封送處理字符串或没有明確排列資訊的字符。指定 'LibraryImportAttribute.CharSet' 或 'MarshalAsAttribute'。</target>
<note />
</trans-unit>
<trans-unit id="NativeGenericTypeMustBeClosedOrMatchArityMessage">
Expand Down