From b96f463cf44930a506487a9631504f686207bf4b Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Mon, 24 Aug 2020 11:33:08 -0500 Subject: [PATCH 1/2] [jcw-gen] Make MSBuild warning/error strings localizable. --- .../Resources.Designer.cs | 90 +++++++++++++++++++ src/Java.Interop.Localization/Resources.resx | 39 ++++++++ .../xlf/Resources.cs.xlf | 53 +++++++++++ .../xlf/Resources.de.xlf | 53 +++++++++++ .../xlf/Resources.es.xlf | 53 +++++++++++ .../xlf/Resources.fr.xlf | 53 +++++++++++ .../xlf/Resources.it.xlf | 53 +++++++++++ .../xlf/Resources.ja.xlf | 53 +++++++++++ .../xlf/Resources.ko.xlf | 53 +++++++++++ .../xlf/Resources.pl.xlf | 53 +++++++++++ .../xlf/Resources.pt-BR.xlf | 53 +++++++++++ .../xlf/Resources.ru.xlf | 53 +++++++++++ .../xlf/Resources.tr.xlf | 53 +++++++++++ .../xlf/Resources.zh-Hans.xlf | 53 +++++++++++ .../xlf/Resources.zh-Hant.xlf | 53 +++++++++++ .../Java.Interop.Tools.Cecil.csproj | 1 + .../DirectoryAssemblyResolver.cs | 2 +- ....Interop.Tools.JavaCallableWrappers.csproj | 1 + .../JavaCallableWrapperGenerator.cs | 20 ++--- 19 files changed, 831 insertions(+), 11 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 2dbe12d3f..2e125a1c9 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -60,6 +60,15 @@ internal Resources() { } } + /// + /// Looks up a localized string similar to Error while loading assembly: '{0}'.. + /// + public static string CecilResolver_XA0009 { + get { + return ResourceManager.GetString("CecilResolver_XA0009", resourceCulture); + } + } + /// /// Looks up a localized string similar to Failed to remove old constants: {0}.. /// @@ -383,5 +392,86 @@ public static string Generator_BG8C01 { return ResourceManager.GetString("Generator_BG8C01", resourceCulture); } } + + /// + /// Looks up a localized string similar to Cannot generate Java wrapper for type '{0}', only 'class' types are supported.. + /// + public static string JavaCallableWrappers_XA4200 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4200", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot determine JNI name for type '{0}'.. + /// + public static string JavaCallableWrappers_XA4201 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4201", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'.. + /// + public static string JavaCallableWrappers_XA4203 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4203", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to resolve interface type '{0}'. Are you missing an assembly reference?. + /// + public static string JavaCallableWrappers_XA4204 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4204", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [ExportField] can only be used on methods with 0 parameters.. + /// + public static string JavaCallableWrappers_XA4205 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4205", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [Export] cannot be used on a generic type.. + /// + public static string JavaCallableWrappers_XA4206 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4206", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [ExportField] cannot be used on a generic type.. + /// + public static string JavaCallableWrappers_XA4207 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4207", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [ExportField] cannot be used on a method returning void.. + /// + public static string JavaCallableWrappers_XA4208 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4208", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin.. + /// + public static string JavaCallableWrappers_XA4217 { + get { + return ResourceManager.GetString("JavaCallableWrappers_XA4217", resourceCulture); + } + } } } diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index 0d32774f0..dc717f1fc 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -117,6 +117,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. {0} - The list of constants that could not be removed. @@ -287,4 +291,39 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + + + [Export] cannot be used on a generic type. + + + [ExportField] cannot be used on a generic type. + + + [ExportField] cannot be used on a method returning void. + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.cs.xlf b/src/Java.Interop.Localization/xlf/Resources.cs.xlf index 984185654..8202548a2 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index 21038fd9c..27571890e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index 6ad566232..ce3e83662 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index fbb9dbc20..f981827dc 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index a01a280e3..f33a34ab1 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index a0ca3cdeb..6cf7a3b39 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index e014c022b..e71feaa80 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index 8c9d626a7..d68d83769 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index e97b8b69d..11cea89c5 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index a2bc5b989..5b60dcad4 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 57c77c0c8..0e7380fc2 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index 023195655..2070e22f0 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index 83a94133b..62a9d5c8e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -2,6 +2,11 @@ + + Error while loading assembly: '{0}'. + Error while loading assembly: '{0}'. + {0} - File name + Failed to remove old constants: {0}. Failed to remove old constants: {0}. @@ -208,6 +213,54 @@ The following terms should not be translated: Metadata.xml. For type '{0}', base interface '{1}' is invalid. {0}, {1} - .NET types. + + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + {0} - Java type. +The following terms should not be translated: class. + + + Cannot determine JNI name for type '{0}'. + Cannot determine JNI name for type '{0}'. + {0} - Java type. +The following terms should not be translated: JNI. + + + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + {0} - Java type. +The following terms should not be translated: Name. + + + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + Unable to resolve interface type '{0}'. Are you missing an assembly reference? + {0} - Java interface. + + + [ExportField] can only be used on methods with 0 parameters. + [ExportField] can only be used on methods with 0 parameters. + + + + [Export] cannot be used on a generic type. + [Export] cannot be used on a generic type. + + + + [ExportField] cannot be used on a generic type. + [ExportField] cannot be used on a generic type. + + + + [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning void. + + + + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. + {0} - Kotlin method name. + \ No newline at end of file diff --git a/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil.csproj b/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil.csproj index 92f109648..bedf3d64e 100644 --- a/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil.csproj +++ b/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil.csproj @@ -11,6 +11,7 @@ + diff --git a/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs b/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs index 8389ddde9..cc8f8436d 100644 --- a/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs +++ b/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs @@ -135,7 +135,7 @@ public virtual AssemblyDefinition Load (string fileName, bool forceLoad = false) try { assembly = ReadAssembly (fileName); } catch (Exception e) { - Diagnostic.Error (9, e, "Error while loading assembly: {0}", fileName); + Diagnostic.Error (9, e, Localization.Resources.CecilResolver_XA0009, fileName); } cache [name] = assembly; return assembly; diff --git a/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj b/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj index 7496c3761..5e0c6e77d 100644 --- a/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj +++ b/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj @@ -31,6 +31,7 @@ + diff --git a/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGenerator.cs b/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGenerator.cs index 4d0a294a0..4641c574c 100644 --- a/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGenerator.cs +++ b/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGenerator.cs @@ -110,11 +110,11 @@ void AddNestedTypes (TypeDefinition type) this.cache = cache ?? new TypeDefinitionCache (); if (type.IsEnum || type.IsInterface || type.IsValueType) - Diagnostic.Error (4200, LookupSource (type), "Can only generate Java wrappers for 'class' types, not type '{0}'.", type.FullName); + Diagnostic.Error (4200, LookupSource (type), Localization.Resources.JavaCallableWrappers_XA4200, type.FullName); string jniName = JavaNativeTypeManager.ToJniName (type); if (jniName == null) - Diagnostic.Error (4201, LookupSource (type), "Unable to determine Java name for type {0}", type.FullName); + Diagnostic.Error (4201, LookupSource (type), Localization.Resources.JavaCallableWrappers_XA4201, type.FullName); if (!string.IsNullOrEmpty (outerType)) { string p; jniName = jniName.Substring (outerType.Length + 1); @@ -127,7 +127,7 @@ void AddNestedTypes (TypeDefinition type) type.IsSubclassOf ("Android.App.Service", cache) || type.IsSubclassOf ("Android.Content.BroadcastReceiver", cache) || type.IsSubclassOf ("Android.Content.ContentProvider", cache))) - Diagnostic.Error (4203, LookupSource (type), "The Name property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'.", jniName); + Diagnostic.Error (4203, LookupSource (type), Localization.Resources.JavaCallableWrappers_XA4203, jniName); foreach (MethodDefinition minfo in type.Methods.Where (m => !m.IsConstructor)) { var baseRegisteredMethod = GetBaseRegisteredMethod (minfo); @@ -148,7 +148,7 @@ void AddNestedTypes (TypeDefinition type) if (d == null) Diagnostic.Error (4204, LookupSource (type), - "Unable to resolve interface type '{0}'. Are you missing an assembly reference?", + Localization.Resources.JavaCallableWrappers_XA4204, r.FullName); return d; }) @@ -372,7 +372,7 @@ void AddMethod (MethodDefinition registeredMethod, MethodDefinition implementedM foreach (RegisterAttribute attr in GetRegisterAttributes (registeredMethod)) { // Check for Kotlin-mangled methods that cannot be overridden if (attr.Name.Contains ("-impl") || (attr.Name.Length > 7 && attr.Name[attr.Name.Length - 8] == '-')) - Diagnostic.Error (4217, LookupSource (implementedMethod), $"Cannot override Kotlin-generated method '{attr.Name}' because it is not a valid Java method name. This method can only be overridden from Kotlin."); + Diagnostic.Error (4217, LookupSource (implementedMethod), Localization.Resources.JavaCallableWrappers_XA4217, attr.Name); var msig = new Signature (implementedMethod, attr); if (!registeredMethod.IsConstructor && !methods.Any (m => m.Name == msig.Name && m.Params == msig.Params)) @@ -380,7 +380,7 @@ void AddMethod (MethodDefinition registeredMethod, MethodDefinition implementedM } foreach (ExportAttribute attr in GetExportAttributes (implementedMethod)) { if (type.HasGenericParameters) - Diagnostic.Error (4206, LookupSource (implementedMethod), "[Export] cannot be used on a generic type."); + Diagnostic.Error (4206, LookupSource (implementedMethod), Localization.Resources.JavaCallableWrappers_XA4206); var msig = new Signature (implementedMethod, attr, cache); if (!string.IsNullOrEmpty (attr.SuperArgumentsString)) { @@ -391,7 +391,7 @@ void AddMethod (MethodDefinition registeredMethod, MethodDefinition implementedM } foreach (ExportFieldAttribute attr in GetExportFieldAttributes (implementedMethod)) { if (type.HasGenericParameters) - Diagnostic.Error (4207, LookupSource (implementedMethod), "[ExportField] cannot be used on a generic type."); + Diagnostic.Error (4207, LookupSource (implementedMethod), Localization.Resources.JavaCallableWrappers_XA4207); var msig = new Signature (implementedMethod, attr, cache); if (!implementedMethod.IsConstructor && !methods.Any (m => m.Name == msig.Name && m.Params == msig.Params)) { @@ -635,7 +635,7 @@ static string GetJavaTypeName (TypeReference r) TypeDefinition d = r.Resolve (); string jniName = JavaNativeTypeManager.ToJniName (d); if (jniName == null) - Diagnostic.Error (4201, "Unable to determine JNI name for type {0}.", r.FullName); + Diagnostic.Error (4201, Localization.Resources.JavaCallableWrappers_XA4201, r.FullName); return jniName.Replace ('/', '.').Replace ('$', '.'); } @@ -669,9 +669,9 @@ public Signature (MethodDefinition method, ExportFieldAttribute exportField, Typ : this (method.Name, GetJniSignature (method, cache), "__export__", null, null, null) { if (method.HasParameters) - Diagnostic.Error (4205, JavaCallableWrapperGenerator.LookupSource (method), "[ExportField] can only be used on methods with 0 parameters."); + Diagnostic.Error (4205, JavaCallableWrapperGenerator.LookupSource (method), Localization.Resources.JavaCallableWrappers_XA4205); if (method.ReturnType.MetadataType == MetadataType.Void) - Diagnostic.Error (4208, JavaCallableWrapperGenerator.LookupSource (method), "[ExportField] cannot be used on a method returning void."); + Diagnostic.Error (4208, JavaCallableWrapperGenerator.LookupSource (method), Localization.Resources.JavaCallableWrappers_XA4208); IsExport = true; IsStatic = method.IsStatic; JavaAccess = JavaCallableWrapperGenerator.GetJavaAccess (method.Attributes & MethodAttributes.MemberAccessMask); From 6ade7ed9b76d163937c9685cfa4943222aa829c1 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Wed, 26 Aug 2020 09:55:01 -0500 Subject: [PATCH 2/2] Address feedback. --- .../Resources.Designer.cs | 6 ++--- src/Java.Interop.Localization/Resources.resx | 16 ++++++++---- .../xlf/Resources.cs.xlf | 26 ++++++++++--------- .../xlf/Resources.de.xlf | 26 ++++++++++--------- .../xlf/Resources.es.xlf | 26 ++++++++++--------- .../xlf/Resources.fr.xlf | 26 ++++++++++--------- .../xlf/Resources.it.xlf | 26 ++++++++++--------- .../xlf/Resources.ja.xlf | 26 ++++++++++--------- .../xlf/Resources.ko.xlf | 26 ++++++++++--------- .../xlf/Resources.pl.xlf | 26 ++++++++++--------- .../xlf/Resources.pt-BR.xlf | 26 ++++++++++--------- .../xlf/Resources.ru.xlf | 26 ++++++++++--------- .../xlf/Resources.tr.xlf | 26 ++++++++++--------- .../xlf/Resources.zh-Hans.xlf | 26 ++++++++++--------- .../xlf/Resources.zh-Hant.xlf | 26 ++++++++++--------- 15 files changed, 196 insertions(+), 164 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 2e125a1c9..851259ec4 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -394,7 +394,7 @@ public static string Generator_BG8C01 { } /// - /// Looks up a localized string similar to Cannot generate Java wrapper for type '{0}', only 'class' types are supported.. + /// Looks up a localized string similar to Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported.. /// public static string JavaCallableWrappers_XA4200 { get { @@ -412,7 +412,7 @@ public static string JavaCallableWrappers_XA4201 { } /// - /// Looks up a localized string similar to The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'.. + /// Looks up a localized string similar to The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'.. /// public static string JavaCallableWrappers_XA4203 { get { @@ -457,7 +457,7 @@ public static string JavaCallableWrappers_XA4207 { } /// - /// Looks up a localized string similar to [ExportField] cannot be used on a method returning void.. + /// Looks up a localized string similar to [ExportField] cannot be used on a method returning 'void'.. /// public static string JavaCallableWrappers_XA4208 { get { diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index dc717f1fc..a6b1aafaf 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -292,9 +292,10 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -302,9 +303,10 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -312,15 +314,19 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.cs.xlf b/src/Java.Interop.Localization/xlf/Resources.cs.xlf index 8202548a2..d770d9206 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index 27571890e..c9b4512a1 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index ce3e83662..bcc675f11 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index f981827dc..68f8291a8 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index f33a34ab1..b0b9bdc18 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index 6cf7a3b39..b51817743 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index e71feaa80..96794f2a6 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index d68d83769..5f5822377 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index 11cea89c5..c406b1a44 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index 5b60dcad4..0f5941624 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 0e7380fc2..e5a827671 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index 2070e22f0..bdcfe3fa5 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin. diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index 62a9d5c8e..536bf868c 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -214,10 +214,11 @@ The following terms should not be translated: Metadata.xml. {0}, {1} - .NET types. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. - Cannot generate Java wrapper for type '{0}', only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. + Cannot generate Java wrapper for type '{0}'. Only 'class' types are supported. {0} - Java type. -The following terms should not be translated: class. +The following terms should not be translated: +class. Cannot determine JNI name for type '{0}'. @@ -226,10 +227,11 @@ The following terms should not be translated: class. The following terms should not be translated: JNI. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. - The 'Name' property must be a fully qualified 'package.TypeName' value, and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. + The 'Name' property must be a fully qualified type like 'com.example.MyClass' and no package was found for '{0}'. {0} - Java type. -The following terms should not be translated: Name. +The following terms should not be translated: +Name, com.example.MyClass. Unable to resolve interface type '{0}'. Are you missing an assembly reference? @@ -239,22 +241,22 @@ The following terms should not be translated: Name. [ExportField] can only be used on methods with 0 parameters. [ExportField] can only be used on methods with 0 parameters. - + The following terms should not be translated: [ExportField]. [Export] cannot be used on a generic type. [Export] cannot be used on a generic type. - + The following terms should not be translated: [Export]. [ExportField] cannot be used on a generic type. [ExportField] cannot be used on a generic type. - + The following terms should not be translated: [ExportField]. - [ExportField] cannot be used on a method returning void. - [ExportField] cannot be used on a method returning void. - + [ExportField] cannot be used on a method returning 'void'. + [ExportField] cannot be used on a method returning 'void'. + The following terms should not be translated: [ExportField], void. Cannot override Kotlin-generated method '{0}' because it is not a valid Java method name. This method can only be overridden from Kotlin.