From 02d3a54009f8851a3ba0a85ca7c0117c14b86a89 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 25 Aug 2020 14:46:56 +0200 Subject: [PATCH 01/10] [jnimarshalmethod-gen] Localizable errors and warnings messages. Uses the same Java.Interop.Localization assembly as other JI tools for localizable messages. --- .../Resources.Designer.cs | 135 ++++++++++++++++++ src/Java.Interop.Localization/Resources.resx | 57 ++++++++ .../xlf/Resources.cs.xlf | 75 ++++++++++ .../xlf/Resources.de.xlf | 75 ++++++++++ .../xlf/Resources.es.xlf | 75 ++++++++++ .../xlf/Resources.fr.xlf | 75 ++++++++++ .../xlf/Resources.it.xlf | 75 ++++++++++ .../xlf/Resources.ja.xlf | 75 ++++++++++ .../xlf/Resources.ko.xlf | 75 ++++++++++ .../xlf/Resources.pl.xlf | 75 ++++++++++ .../xlf/Resources.pt-BR.xlf | 75 ++++++++++ .../xlf/Resources.ru.xlf | 75 ++++++++++ .../xlf/Resources.tr.xlf | 75 ++++++++++ .../xlf/Resources.zh-Hans.xlf | 75 ++++++++++ .../xlf/Resources.zh-Hant.xlf | 75 ++++++++++ tools/jnimarshalmethod-gen/App.cs | 43 +++--- tools/jnimarshalmethod-gen/Message.cs | 33 +++++ tools/jnimarshalmethod-gen/TypeMover.cs | 6 +- ...oid.Tools.JniMarshalMethodGenerator.csproj | 1 + 19 files changed, 1225 insertions(+), 25 deletions(-) create mode 100644 tools/jnimarshalmethod-gen/Message.cs diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 851259ec4..1a9e719d2 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -473,5 +473,140 @@ public static string JavaCallableWrappers_XA4217 { return ResourceManager.GetString("JavaCallableWrappers_XA4217", resourceCulture); } } + + /// + /// Looks up a localized string similar to Unable to preload reference '{0}'.. + /// + public static string JniMarshalMethodGen_JM4001 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM4001", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please specify at least one ASSEMBLY to process.. + /// + public static string JniMarshalMethodGen_JM4002 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM4002", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to create Java VM{0}{1}. + /// + public static string JniMarshalMethodGen_JM4003 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM4003", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to read profile '{0}'.{1}{2}. + /// + public static string JniMarshalMethodGen_JM4004 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM4004", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path '{0}' does not exist.. + /// + public static string JniMarshalMethodGen_JM4005 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM4005", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to process assembly '{0}'{1}{2}{1}{3}. + /// + public static string JniMarshalMethodGen_JM4006 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM4006", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couln't find interface {0}. + /// + public static string JniMarshalMethodGen_JM8001 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8001", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to read assembly '{0}' with symbols. Retrying to load it without them.. + /// + public static string JniMarshalMethodGen_JM8002 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8002", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Type Load exception{0}{1}. + /// + public static string JniMarshalMethodGen_JM8003 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8003", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to find cecil's TypeDefinition of type {0}. + /// + public static string JniMarshalMethodGen_JM8004 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8004", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired.. + /// + public static string JniMarshalMethodGen_JM8005 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8005", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to find cecil's MethodDefinition of method {0}. + /// + public static string JniMarshalMethodGen_JM8006 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8006", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to find System.Console::WriteLine method. Disabling debug injection.. + /// + public static string JniMarshalMethodGen_JM8007 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8007", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No type was moved => nothing to write, no new assembly created.. + /// + public static string JniMarshalMethodGen_JM8008 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8008", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Method {0} was not improved. There should have been at least 2 improvements in this registration method.. + /// + public static string JniMarshalMethodGen_JM8009 { + get { + return ResourceManager.GetString("JniMarshalMethodGen_JM8009", resourceCulture); + } + } } } diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index a6b1aafaf..7321ac436 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -332,4 +332,61 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + + + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + No type was moved => nothing to write, no new assembly created. + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 d770d9206..451a9581d 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 c9b4512a1..71f1d01f3 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 bcc675f11..c1fee79f5 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 68f8291a8..5708c53db 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 b0b9bdc18..dade89446 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 b51817743..1196ca2eb 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 96794f2a6..e1fadb4fc 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 5f5822377..4ae7cd35b 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 c406b1a44..d59f96fcf 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 0f5941624..803f95fc1 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 e5a827671..3682c1832 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 bdcfe3fa5..e5f7ac60c 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ 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 536bf868c..f43b28b62 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -263,6 +263,81 @@ Name, com.example.MyClass. 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. + + Unable to preload reference '{0}'. + Unable to preload reference '{0}'. + {0} - assembly path + + + Please specify at least one ASSEMBLY to process. + Please specify at least one ASSEMBLY to process. + + + + Unable to create Java VM{0}{1} + Unable to create Java VM{0}{1} + {0} - newline, {1} - exception + + + Unable to read profile '{0}'.{1}{2} + Unable to read profile '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception + + + Path '{0}' does not exist. + Path '{0}' does not exist. + {0} - path + + + Unable to process assembly '{0}'{1}{2}{1}{3} + Unable to process assembly '{0}'{1}{2}{1}{3} + {0} - assembly, {1} - newline, {2} - exception message, {3} exception + + + Couln't find interface {0} + Couln't find interface {0} + {0} - interface name + + + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + Unable to read assembly '{0}' with symbols. Retrying to load it without them. + {0} - assembly + + + Type Load exception{0}{1} + Type Load exception{0}{1} + {0} - newline, {1} - exception + + + Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0} + {0} - type + + + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. + {0} - type, {1} - assembly name + + + Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0} + {0} - method + + + Unable to find System.Console::WriteLine method. Disabling debug injection. + Unable to find System.Console::WriteLine method. Disabling debug injection. + + + + No type was moved => nothing to write, no new assembly created. + No type was moved => nothing to write, no new assembly created. + + + + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + Method {0} was not improved. There should have been at least 2 improvements in this registration method. + {0} - method + \ No newline at end of file diff --git a/tools/jnimarshalmethod-gen/App.cs b/tools/jnimarshalmethod-gen/App.cs index 49b40ca3e..b5ce8e443 100644 --- a/tools/jnimarshalmethod-gen/App.cs +++ b/tools/jnimarshalmethod-gen/App.cs @@ -128,10 +128,8 @@ List ProcessArguments (string [] args) Environment.Exit (0); } - if (assemblies.Count < 1) { - Error ("Please specify at least one ASSEMBLY to process."); - Environment.Exit (2); - } + if (assemblies.Count < 1) + ErrorAndExit (Message.ErrorAtLeastOneAssembly, 2); return assemblies; } @@ -149,8 +147,7 @@ void LoadTypes (string typesPath) typeNameRegexes.Add (new Regex (line)); } } catch (Exception e) { - Error ($"Unable to read profile '{typesPath}'.{Environment.NewLine}{e}"); - Environment.Exit (4); + ErrorAndExit (Message.ErrorUnableToReadProfile, 4, typesPath, Environment.NewLine, e); } } @@ -175,16 +172,14 @@ void ProcessAssemblies (List assemblies) try { Assembly.LoadFile (Path.GetFullPath (r)); } catch (Exception) { - Error ($"Unable to preload reference '{r}'."); - Environment.Exit (1); + ErrorAndExit (Message.ErrorUnableToPreloadReference, 1, r); } resolver.SearchDirectories.Add (Path.GetDirectoryName (r)); } foreach (var assembly in assemblies) { if (!File.Exists (assembly)) { - Error ($"Path '{assembly}' does not exist."); - Environment.Exit (1); + ErrorAndExit (Message.ErrorPathDoesNotExist, 5, assembly); } resolver.SearchDirectories.Add (Path.GetDirectoryName (assembly)); @@ -194,7 +189,8 @@ void ProcessAssemblies (List assemblies) resolver.AddToCache (ad); } catch (Exception) { if (Verbose) - Warning ($"Unable to read assembly '{assembly}' with symbols. Retrying to load it without them."); + Warning (Message.WarningUnableToReadWithSymbols, assembly); + ad = AssemblyDefinition.ReadAssembly (assembly, readerParametersNoSymbols); resolver.AddToCache (ad); } @@ -207,8 +203,7 @@ void ProcessAssemblies (List assemblies) CreateMarshalMethodAssembly (assembly); definedTypes.Clear (); } catch (Exception e) { - Error ($"Unable to process assembly '{assembly}'{Environment.NewLine}{e.Message}{Environment.NewLine}{e}"); - Environment.Exit (1); + ErrorAndExit (Message.ErrorUnableToProcessAssembly, 6, assembly, Environment.NewLine, e.Message, e); } } } @@ -222,8 +217,7 @@ void CreateJavaVM (string jvmDllPath) try { builder.CreateJreVM (); } catch (Exception e) { - Error ($"Unable to create Java VM{Environment.NewLine}{e}"); - Environment.Exit (3); + ErrorAndExit (Message.ErrorUnableToCreateJavaVM, 3, Environment.NewLine, e); } } @@ -317,7 +311,7 @@ void CreateMarshalMethodAssembly (string path) } catch (ReflectionTypeLoadException e) { types = e.Types; foreach (var le in e.LoaderExceptions) - Warning ($"Type Load exception{Environment.NewLine}{le}"); + Warning (Message.WarningTypeLoadException, Environment.NewLine, le); } foreach (var systemType in types) { @@ -343,7 +337,8 @@ void CreateMarshalMethodAssembly (string path) if (td == null) { if (Verbose) - Warning ($"Unable to find cecil's TypeDefinition of type {type}"); + Warning (Message.WarningUnableToFindTypeDefinition, type); + continue; } if (!td.ImplementsInterface ("Java.Interop.IJavaPeerable", cache)) @@ -351,7 +346,7 @@ void CreateMarshalMethodAssembly (string path) var existingMarshalMethodsType = td.GetNestedType (TypeMover.NestedName); if (existingMarshalMethodsType != null && !forceRegeneration) { - Warning ($"Marshal methods type '{existingMarshalMethodsType.GetAssemblyQualifiedName (cache)}' already exists. Skipped generation of marshal methods in assembly '{assemblyName}'. Use -f to force regeneration when desired."); + Warning (Message.WarningMarshalMethodsTypeAlreadyExists, existingMarshalMethodsType.GetAssemblyQualifiedName (cache), assemblyName); return; } @@ -389,7 +384,8 @@ void CreateMarshalMethodAssembly (string path) if (md == null) { if (Verbose) - Warning ($"Unable to find cecil's MethodDefinition of method {method}"); + Warning (Message.WarningUnableToFindMethodDefinition, method); + continue; } @@ -526,9 +522,12 @@ static void ColorMessage (string message, ConsoleColor color, TextWriter writer, public static void ColorWrite (string message, ConsoleColor color) => ColorMessage (message, color, Console.Out, false); - public static void Error (string message) => ColorMessage ($"Error: {Name}: {message}", ConsoleColor.Red, Console.Error); + public static void ErrorAndExit (Message message, int code, params object[] args) { + ColorMessage ($"Error: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Red, Console.Error); + Environment.Exit (code); + } - public static void Warning (string message) => ColorMessage ($"Warning: {Name}: {message}", ConsoleColor.Yellow, Console.Error); + public static void Warning (Message message, params object[] args) => ColorMessage ($"Warning: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Yellow, Console.Error); static void AddToTypeMap (TypeDefinition type) { @@ -684,7 +683,7 @@ public static bool NeedsMarshalMethod (this MethodDefinition md, DirectoryAssemb var id = ad.MainModule.GetType (iface.GetCecilName ()); if (id == null) { - App.Warning ($"Couln't find iterface {iface.FullName}"); + App.Warning (Message.WarningCouldntFindInterface, iface.FullName); continue; } diff --git a/tools/jnimarshalmethod-gen/Message.cs b/tools/jnimarshalmethod-gen/Message.cs new file mode 100644 index 000000000..2d95578b6 --- /dev/null +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Java.Interop.Localization; + +namespace Xamarin.Android.Tools.JniMarshalMethodGenerator +{ + class Message + { + public string Localized { get; private set; } + + private Message (string message) => Localized = message; + + public static Message ErrorUnableToPreloadReference = new Message (Resources.JniMarshalMethodGen_JM4001); + public static Message ErrorAtLeastOneAssembly = new Message (Resources.JniMarshalMethodGen_JM4002); + public static Message ErrorUnableToCreateJavaVM = new Message (Resources.JniMarshalMethodGen_JM4003); + public static Message ErrorUnableToReadProfile = new Message (Resources.JniMarshalMethodGen_JM4004); + public static Message ErrorPathDoesNotExist = new Message (Resources.JniMarshalMethodGen_JM4005); + public static Message ErrorUnableToProcessAssembly = new Message (Resources.JniMarshalMethodGen_JM4006); + + public static Message WarningCouldntFindInterface = new Message (Resources.JniMarshalMethodGen_JM8001); + public static Message WarningUnableToReadWithSymbols = new Message (Resources.JniMarshalMethodGen_JM8002); + public static Message WarningTypeLoadException = new Message (Resources.JniMarshalMethodGen_JM8003); + public static Message WarningUnableToFindTypeDefinition = new Message (Resources.JniMarshalMethodGen_JM8004); + public static Message WarningMarshalMethodsTypeAlreadyExists = new Message (Resources.JniMarshalMethodGen_JM8005); + public static Message WarningUnableToFindMethodDefinition = new Message (Resources.JniMarshalMethodGen_JM8006); + public static Message WarningUnableToFindSCWriteLine = new Message (Resources.JniMarshalMethodGen_JM8007); + public static Message WarningNoTypeWasMovedNothingToWrite = new Message (Resources.JniMarshalMethodGen_JM8008); + public static Message WarningMethodWasNotImproved = new Message (Resources.JniMarshalMethodGen_JM8008); + } +} diff --git a/tools/jnimarshalmethod-gen/TypeMover.cs b/tools/jnimarshalmethod-gen/TypeMover.cs index 0b64777b2..87117ba79 100644 --- a/tools/jnimarshalmethod-gen/TypeMover.cs +++ b/tools/jnimarshalmethod-gen/TypeMover.cs @@ -30,7 +30,7 @@ public TypeMover (AssemblyDefinition source, AssemblyDefinition destination, str if (App.Debug) { consoleWriteLine = GetSingleParameterMethod (resolver, Destination.MainModule, "mscorlib", "System.Console", "WriteLine", "System.String"); if (consoleWriteLine == null) { - App.Warning ("Unable to find System.Console::WriteLine method. Disabling debug injection"); + App.Warning (Message.WarningUnableToFindSCWriteLine); App.Debug = false; } } @@ -49,7 +49,7 @@ public void Move () } if (movedTypesCount <= 0) { - App.Warning ("No type was moved => nothing to write, no new assembly created."); + App.Warning (Message.WarningNoTypeWasMovedNothingToWrite); return; } @@ -504,7 +504,7 @@ MethodDefinition Duplicate (MethodDefinition src, ModuleDefinition module, TypeD if (isRegisterMethod && improvements < 2) - App.Warning ($"Method {md} was not improved. There should have been at least 2 improvements in this registration method."); + App.Warning (Message.WarningMethodWasNotImproved, md); if (src.Body.HasExceptionHandlers) foreach (var eh in src.Body.ExceptionHandlers) diff --git a/tools/jnimarshalmethod-gen/Xamarin.Android.Tools.JniMarshalMethodGenerator.csproj b/tools/jnimarshalmethod-gen/Xamarin.Android.Tools.JniMarshalMethodGenerator.csproj index de3625195..d3e4638f2 100644 --- a/tools/jnimarshalmethod-gen/Xamarin.Android.Tools.JniMarshalMethodGenerator.csproj +++ b/tools/jnimarshalmethod-gen/Xamarin.Android.Tools.JniMarshalMethodGenerator.csproj @@ -28,6 +28,7 @@ + From 1b1650a3a3b3928dce3942d6d7bc1fe4262029d1 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 25 Aug 2020 14:51:00 +0200 Subject: [PATCH 02/10] Use the right string --- tools/jnimarshalmethod-gen/Message.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/jnimarshalmethod-gen/Message.cs b/tools/jnimarshalmethod-gen/Message.cs index 2d95578b6..47f2a636f 100644 --- a/tools/jnimarshalmethod-gen/Message.cs +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -28,6 +28,6 @@ class Message public static Message WarningUnableToFindMethodDefinition = new Message (Resources.JniMarshalMethodGen_JM8006); public static Message WarningUnableToFindSCWriteLine = new Message (Resources.JniMarshalMethodGen_JM8007); public static Message WarningNoTypeWasMovedNothingToWrite = new Message (Resources.JniMarshalMethodGen_JM8008); - public static Message WarningMethodWasNotImproved = new Message (Resources.JniMarshalMethodGen_JM8008); + public static Message WarningMethodWasNotImproved = new Message (Resources.JniMarshalMethodGen_JM8009); } } From c5411a28e731a762305b4051030d4933d51335f1 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 25 Aug 2020 14:53:00 +0200 Subject: [PATCH 03/10] Remove clutter --- tools/jnimarshalmethod-gen/Message.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/jnimarshalmethod-gen/Message.cs b/tools/jnimarshalmethod-gen/Message.cs index 47f2a636f..e4a1dcb2e 100644 --- a/tools/jnimarshalmethod-gen/Message.cs +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Java.Interop.Localization; namespace Xamarin.Android.Tools.JniMarshalMethodGenerator From f8972105a5e7a8055ae83b2fca90a152d6c1c77a Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 26 Aug 2020 17:27:05 +0200 Subject: [PATCH 04/10] Print error and warning codes Also use lower case for error/warning words to be better compatible with our (tasks)[https://github.com/xamarin/xamarin-android/blob/f14890fa2146913afb023a37b6ff4ec62381392a/src/Xamarin.Android.Build.Tasks/Utilities/MSBuildExtensions.cs#L78-L79]. --- tools/jnimarshalmethod-gen/App.cs | 20 +++++++-------- tools/jnimarshalmethod-gen/Message.cs | 36 +++++++++++++++------------ 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/tools/jnimarshalmethod-gen/App.cs b/tools/jnimarshalmethod-gen/App.cs index b5ce8e443..97a4031f5 100644 --- a/tools/jnimarshalmethod-gen/App.cs +++ b/tools/jnimarshalmethod-gen/App.cs @@ -129,7 +129,7 @@ List ProcessArguments (string [] args) } if (assemblies.Count < 1) - ErrorAndExit (Message.ErrorAtLeastOneAssembly, 2); + ErrorAndExit (Message.ErrorAtLeastOneAssembly); return assemblies; } @@ -147,7 +147,7 @@ void LoadTypes (string typesPath) typeNameRegexes.Add (new Regex (line)); } } catch (Exception e) { - ErrorAndExit (Message.ErrorUnableToReadProfile, 4, typesPath, Environment.NewLine, e); + ErrorAndExit (Message.ErrorUnableToReadProfile, typesPath, Environment.NewLine, e); } } @@ -172,14 +172,14 @@ void ProcessAssemblies (List assemblies) try { Assembly.LoadFile (Path.GetFullPath (r)); } catch (Exception) { - ErrorAndExit (Message.ErrorUnableToPreloadReference, 1, r); + ErrorAndExit (Message.ErrorUnableToPreloadReference, r); } resolver.SearchDirectories.Add (Path.GetDirectoryName (r)); } foreach (var assembly in assemblies) { if (!File.Exists (assembly)) { - ErrorAndExit (Message.ErrorPathDoesNotExist, 5, assembly); + ErrorAndExit (Message.ErrorPathDoesNotExist, assembly); } resolver.SearchDirectories.Add (Path.GetDirectoryName (assembly)); @@ -203,7 +203,7 @@ void ProcessAssemblies (List assemblies) CreateMarshalMethodAssembly (assembly); definedTypes.Clear (); } catch (Exception e) { - ErrorAndExit (Message.ErrorUnableToProcessAssembly, 6, assembly, Environment.NewLine, e.Message, e); + ErrorAndExit (Message.ErrorUnableToProcessAssembly, assembly, Environment.NewLine, e.Message, e); } } } @@ -217,7 +217,7 @@ void CreateJavaVM (string jvmDllPath) try { builder.CreateJreVM (); } catch (Exception e) { - ErrorAndExit (Message.ErrorUnableToCreateJavaVM, 3, Environment.NewLine, e); + ErrorAndExit (Message.ErrorUnableToCreateJavaVM, Environment.NewLine, e); } } @@ -522,12 +522,12 @@ static void ColorMessage (string message, ConsoleColor color, TextWriter writer, public static void ColorWrite (string message, ConsoleColor color) => ColorMessage (message, color, Console.Out, false); - public static void ErrorAndExit (Message message, int code, params object[] args) { - ColorMessage ($"Error: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Red, Console.Error); - Environment.Exit (code); + public static void ErrorAndExit (Message message, params object[] args) { + ColorMessage ($"error JM{message.Code:X04}: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Red, Console.Error); + Environment.Exit (message.Code - 0x4000); } - public static void Warning (Message message, params object[] args) => ColorMessage ($"Warning: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Yellow, Console.Error); + public static void Warning (Message message, params object[] args) => ColorMessage ($"warning JM{message.Code:X04}: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Yellow, Console.Error); static void AddToTypeMap (TypeDefinition type) { diff --git a/tools/jnimarshalmethod-gen/Message.cs b/tools/jnimarshalmethod-gen/Message.cs index e4a1dcb2e..07258b772 100644 --- a/tools/jnimarshalmethod-gen/Message.cs +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -5,24 +5,28 @@ namespace Xamarin.Android.Tools.JniMarshalMethodGenerator class Message { public string Localized { get; private set; } + public int Code { get; private set; } - private Message (string message) => Localized = message; + private Message (int code, string message) { + Localized = message; + Code = code; + } - public static Message ErrorUnableToPreloadReference = new Message (Resources.JniMarshalMethodGen_JM4001); - public static Message ErrorAtLeastOneAssembly = new Message (Resources.JniMarshalMethodGen_JM4002); - public static Message ErrorUnableToCreateJavaVM = new Message (Resources.JniMarshalMethodGen_JM4003); - public static Message ErrorUnableToReadProfile = new Message (Resources.JniMarshalMethodGen_JM4004); - public static Message ErrorPathDoesNotExist = new Message (Resources.JniMarshalMethodGen_JM4005); - public static Message ErrorUnableToProcessAssembly = new Message (Resources.JniMarshalMethodGen_JM4006); + public static Message ErrorUnableToPreloadReference = new Message (0x4001, Resources.JniMarshalMethodGen_JM4001); + public static Message ErrorAtLeastOneAssembly = new Message (0x4002, Resources.JniMarshalMethodGen_JM4002); + public static Message ErrorUnableToCreateJavaVM = new Message (0x4003, Resources.JniMarshalMethodGen_JM4003); + public static Message ErrorUnableToReadProfile = new Message (0x4004, Resources.JniMarshalMethodGen_JM4004); + public static Message ErrorPathDoesNotExist = new Message (0x4005, Resources.JniMarshalMethodGen_JM4005); + public static Message ErrorUnableToProcessAssembly = new Message (0x4006, Resources.JniMarshalMethodGen_JM4006); - public static Message WarningCouldntFindInterface = new Message (Resources.JniMarshalMethodGen_JM8001); - public static Message WarningUnableToReadWithSymbols = new Message (Resources.JniMarshalMethodGen_JM8002); - public static Message WarningTypeLoadException = new Message (Resources.JniMarshalMethodGen_JM8003); - public static Message WarningUnableToFindTypeDefinition = new Message (Resources.JniMarshalMethodGen_JM8004); - public static Message WarningMarshalMethodsTypeAlreadyExists = new Message (Resources.JniMarshalMethodGen_JM8005); - public static Message WarningUnableToFindMethodDefinition = new Message (Resources.JniMarshalMethodGen_JM8006); - public static Message WarningUnableToFindSCWriteLine = new Message (Resources.JniMarshalMethodGen_JM8007); - public static Message WarningNoTypeWasMovedNothingToWrite = new Message (Resources.JniMarshalMethodGen_JM8008); - public static Message WarningMethodWasNotImproved = new Message (Resources.JniMarshalMethodGen_JM8009); + public static Message WarningCouldntFindInterface = new Message (0x8001, Resources.JniMarshalMethodGen_JM8001); + public static Message WarningUnableToReadWithSymbols = new Message (0x8002, Resources.JniMarshalMethodGen_JM8002); + public static Message WarningTypeLoadException = new Message (0x8003, Resources.JniMarshalMethodGen_JM8003); + public static Message WarningUnableToFindTypeDefinition = new Message (0x8004, Resources.JniMarshalMethodGen_JM8004); + public static Message WarningMarshalMethodsTypeAlreadyExists = new Message (0x8005, Resources.JniMarshalMethodGen_JM8005); + public static Message WarningUnableToFindMethodDefinition = new Message (0x8006, Resources.JniMarshalMethodGen_JM8006); + public static Message WarningUnableToFindSCWriteLine = new Message (0x8007, Resources.JniMarshalMethodGen_JM8007); + public static Message WarningNoTypeWasMovedNothingToWrite = new Message (0x8008, Resources.JniMarshalMethodGen_JM8008); + public static Message WarningMethodWasNotImproved = new Message (0x8009, Resources.JniMarshalMethodGen_JM8009); } } From 892dbc91b00f467cbc5bb5d4a76041921cc25b7c Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 26 Aug 2020 18:05:49 +0200 Subject: [PATCH 05/10] Add few comments Also turn warning about missing symbols to informational output. --- src/Java.Interop.Localization/Resources.Designer.cs | 11 +---------- src/Java.Interop.Localization/Resources.resx | 9 +++------ src/Java.Interop.Localization/xlf/Resources.cs.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.de.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.es.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.fr.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.it.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.ja.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.ko.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.pl.xlf | 13 ++++--------- .../xlf/Resources.pt-BR.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.ru.xlf | 13 ++++--------- src/Java.Interop.Localization/xlf/Resources.tr.xlf | 13 ++++--------- .../xlf/Resources.zh-Hans.xlf | 13 ++++--------- .../xlf/Resources.zh-Hant.xlf | 13 ++++--------- tools/jnimarshalmethod-gen/App.cs | 4 +++- tools/jnimarshalmethod-gen/Message.cs | 1 - 17 files changed, 59 insertions(+), 135 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 1a9e719d2..c51187de4 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -502,7 +502,7 @@ public static string JniMarshalMethodGen_JM4003 { } /// - /// Looks up a localized string similar to Unable to read profile '{0}'.{1}{2}. + /// Looks up a localized string similar to Unable to read profile file '{0}'.{1}{2}. /// public static string JniMarshalMethodGen_JM4004 { get { @@ -537,15 +537,6 @@ public static string JniMarshalMethodGen_JM8001 { } } - /// - /// Looks up a localized string similar to Unable to read assembly '{0}' with symbols. Retrying to load it without them.. - /// - public static string JniMarshalMethodGen_JM8002 { - get { - return ResourceManager.GetString("JniMarshalMethodGen_JM8002", resourceCulture); - } - } - /// /// Looks up a localized string similar to Type Load exception{0}{1}. /// diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index 7321ac436..1c2c63f28 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -338,14 +338,15 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -359,10 +360,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} {0} - newline, {1} - exception diff --git a/src/Java.Interop.Localization/xlf/Resources.cs.xlf b/src/Java.Interop.Localization/xlf/Resources.cs.xlf index 451a9581d..8a5f117d1 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index 71f1d01f3..b90db331b 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index c1fee79f5..e3fe72d8d 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index 5708c53db..27128d94e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index dade89446..657d84a31 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index 1196ca2eb..31f9a8690 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index e1fadb4fc..7948bb2c2 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index 4ae7cd35b..b13f6d064 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index d59f96fcf..03b168d97 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index 803f95fc1..bcd87e803 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 3682c1832..8795a492f 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index e5f7ac60c..0146c9824 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index f43b28b62..d21899505 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -271,7 +271,7 @@ Name, com.example.MyClass. Please specify at least one ASSEMBLY to process. Please specify at least one ASSEMBLY to process. - + The following terms should not be translated or have any capitalization changes: ASSEMBLY. This is a special case for this particular message. In most messages, "assembly" would be translated. Unable to create Java VM{0}{1} @@ -279,9 +279,9 @@ Name, com.example.MyClass. {0} - newline, {1} - exception - Unable to read profile '{0}'.{1}{2} - Unable to read profile '{0}'.{1}{2} - {0} - path, {1} - newline, {2} - exception + Unable to read profile file '{0}'.{1}{2} + Unable to read profile file '{0}'.{1}{2} + {0} - path, {1} - newline, {2} - exception. In this message, the term "profile" refers to a customized list of types to process. Path '{0}' does not exist. @@ -298,11 +298,6 @@ Name, com.example.MyClass. Couln't find interface {0} {0} - interface name - - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - Unable to read assembly '{0}' with symbols. Retrying to load it without them. - {0} - assembly - Type Load exception{0}{1} Type Load exception{0}{1} diff --git a/tools/jnimarshalmethod-gen/App.cs b/tools/jnimarshalmethod-gen/App.cs index 97a4031f5..e3ad1710f 100644 --- a/tools/jnimarshalmethod-gen/App.cs +++ b/tools/jnimarshalmethod-gen/App.cs @@ -189,7 +189,7 @@ void ProcessAssemblies (List assemblies) resolver.AddToCache (ad); } catch (Exception) { if (Verbose) - Warning (Message.WarningUnableToReadWithSymbols, assembly); + Information ($"Unable to read assembly '{assembly}' with symbols. Retrying to load it without them."); ad = AssemblyDefinition.ReadAssembly (assembly, readerParametersNoSymbols); resolver.AddToCache (ad); @@ -529,6 +529,8 @@ public static void ErrorAndExit (Message message, params object[] args) { public static void Warning (Message message, params object[] args) => ColorMessage ($"warning JM{message.Code:X04}: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Yellow, Console.Error); + public static void Information (string message) => ColorMessage (message, ConsoleColor.Yellow, Console.Out); + static void AddToTypeMap (TypeDefinition type) { typeMap [type.FullName] = type; diff --git a/tools/jnimarshalmethod-gen/Message.cs b/tools/jnimarshalmethod-gen/Message.cs index 07258b772..b0836915a 100644 --- a/tools/jnimarshalmethod-gen/Message.cs +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -20,7 +20,6 @@ private Message (int code, string message) { public static Message ErrorUnableToProcessAssembly = new Message (0x4006, Resources.JniMarshalMethodGen_JM4006); public static Message WarningCouldntFindInterface = new Message (0x8001, Resources.JniMarshalMethodGen_JM8001); - public static Message WarningUnableToReadWithSymbols = new Message (0x8002, Resources.JniMarshalMethodGen_JM8002); public static Message WarningTypeLoadException = new Message (0x8003, Resources.JniMarshalMethodGen_JM8003); public static Message WarningUnableToFindTypeDefinition = new Message (0x8004, Resources.JniMarshalMethodGen_JM8004); public static Message WarningMarshalMethodsTypeAlreadyExists = new Message (0x8005, Resources.JniMarshalMethodGen_JM8005); From 4edf9cad898889e77bf83b26b42f9a5d41379c91 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 27 Aug 2020 18:13:30 +0200 Subject: [PATCH 06/10] Additional information to some of the warnings Also change 2 warning to informational output --- .../Resources.Designer.cs | 26 +++---------------- src/Java.Interop.Localization/Resources.resx | 15 +++-------- .../xlf/Resources.cs.xlf | 21 ++++++--------- .../xlf/Resources.de.xlf | 21 ++++++--------- .../xlf/Resources.es.xlf | 21 ++++++--------- .../xlf/Resources.fr.xlf | 21 ++++++--------- .../xlf/Resources.it.xlf | 21 ++++++--------- .../xlf/Resources.ja.xlf | 21 ++++++--------- .../xlf/Resources.ko.xlf | 21 ++++++--------- .../xlf/Resources.pl.xlf | 21 ++++++--------- .../xlf/Resources.pt-BR.xlf | 21 ++++++--------- .../xlf/Resources.ru.xlf | 21 ++++++--------- .../xlf/Resources.tr.xlf | 21 ++++++--------- .../xlf/Resources.zh-Hans.xlf | 21 ++++++--------- .../xlf/Resources.zh-Hant.xlf | 21 ++++++--------- tools/jnimarshalmethod-gen/Message.cs | 2 -- tools/jnimarshalmethod-gen/TypeMover.cs | 5 ++-- 17 files changed, 115 insertions(+), 206 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index c51187de4..384dfe1ee 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -538,7 +538,7 @@ public static string JniMarshalMethodGen_JM8001 { } /// - /// Looks up a localized string similar to Type Load exception{0}{1}. + /// Looks up a localized string similar to Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1}. /// public static string JniMarshalMethodGen_JM8003 { get { @@ -547,7 +547,7 @@ public static string JniMarshalMethodGen_JM8003 { } /// - /// Looks up a localized string similar to Unable to find cecil's TypeDefinition of type {0}. + /// Looks up a localized string similar to Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option.. /// public static string JniMarshalMethodGen_JM8004 { get { @@ -565,7 +565,7 @@ public static string JniMarshalMethodGen_JM8005 { } /// - /// Looks up a localized string similar to Unable to find cecil's MethodDefinition of method {0}. + /// Looks up a localized string similar to Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option.. /// public static string JniMarshalMethodGen_JM8006 { get { @@ -574,30 +574,12 @@ public static string JniMarshalMethodGen_JM8006 { } /// - /// Looks up a localized string similar to Unable to find System.Console::WriteLine method. Disabling debug injection.. + /// Looks up a localized string similar to Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option.. /// public static string JniMarshalMethodGen_JM8007 { get { return ResourceManager.GetString("JniMarshalMethodGen_JM8007", resourceCulture); } } - - /// - /// Looks up a localized string similar to No type was moved => nothing to write, no new assembly created.. - /// - public static string JniMarshalMethodGen_JM8008 { - get { - return ResourceManager.GetString("JniMarshalMethodGen_JM8008", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Method {0} was not improved. There should have been at least 2 improvements in this registration method.. - /// - public static string JniMarshalMethodGen_JM8009 { - get { - return ResourceManager.GetString("JniMarshalMethodGen_JM8009", resourceCulture); - } - } } } diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index 1c2c63f28..5833ae925 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -361,11 +361,11 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -373,17 +373,10 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - No type was moved => nothing to write, no new assembly created. - - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. \ 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 8a5f117d1..1721d4560 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index b90db331b..4606b5db6 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index e3fe72d8d..22d084de9 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index 27128d94e..36912844e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index 657d84a31..51f29c93d 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index 31f9a8690..25d12a248 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index 7948bb2c2..88bade5bf 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index b13f6d064..63bf65cbf 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index 03b168d97..4f752d1fb 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index bcd87e803..2a8a688f9 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 8795a492f..9694f6237 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index 0146c9824..b957f7f92 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index d21899505..e93a26ad1 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Type Load exception{0}{1} - Type Load exception{0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0} - Unable to find cecil's TypeDefinition of type {0} + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - type @@ -314,18 +314,13 @@ Name, com.example.MyClass. {0} - type, {1} - assembly name - Unable to find cecil's MethodDefinition of method {0} - Unable to find cecil's MethodDefinition of method {0} + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. + Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. {0} - method - Unable to find System.Console::WriteLine method. Disabling debug injection. - Unable to find System.Console::WriteLine method. Disabling debug injection. - - - - No type was moved => nothing to write, no new assembly created. - No type was moved => nothing to write, no new assembly created. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. diff --git a/tools/jnimarshalmethod-gen/Message.cs b/tools/jnimarshalmethod-gen/Message.cs index b0836915a..442c175ab 100644 --- a/tools/jnimarshalmethod-gen/Message.cs +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -25,7 +25,5 @@ private Message (int code, string message) { public static Message WarningMarshalMethodsTypeAlreadyExists = new Message (0x8005, Resources.JniMarshalMethodGen_JM8005); public static Message WarningUnableToFindMethodDefinition = new Message (0x8006, Resources.JniMarshalMethodGen_JM8006); public static Message WarningUnableToFindSCWriteLine = new Message (0x8007, Resources.JniMarshalMethodGen_JM8007); - public static Message WarningNoTypeWasMovedNothingToWrite = new Message (0x8008, Resources.JniMarshalMethodGen_JM8008); - public static Message WarningMethodWasNotImproved = new Message (0x8009, Resources.JniMarshalMethodGen_JM8009); } } diff --git a/tools/jnimarshalmethod-gen/TypeMover.cs b/tools/jnimarshalmethod-gen/TypeMover.cs index 87117ba79..2576d5b90 100644 --- a/tools/jnimarshalmethod-gen/TypeMover.cs +++ b/tools/jnimarshalmethod-gen/TypeMover.cs @@ -49,7 +49,8 @@ public void Move () } if (movedTypesCount <= 0) { - App.Warning (Message.WarningNoTypeWasMovedNothingToWrite); + if (App.Verbose) + App.Information ("No type was moved => nothing to write, no new assembly created."); return; } @@ -504,7 +505,7 @@ MethodDefinition Duplicate (MethodDefinition src, ModuleDefinition module, TypeD if (isRegisterMethod && improvements < 2) - App.Warning (Message.WarningMethodWasNotImproved, md); + App.Information ($"Method {md} was not improved. There should have been at least 2 performance improvements in this registration method."); if (src.Body.HasExceptionHandlers) foreach (var eh in src.Body.ExceptionHandlers) From 715c6d79bc029b82d97545f8149211cc7ccee859 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 27 Aug 2020 18:19:50 +0200 Subject: [PATCH 07/10] Update xlf files --- src/Java.Interop.Localization/xlf/Resources.cs.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.de.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.es.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.fr.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.it.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.ja.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.ko.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.pl.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.ru.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.tr.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf | 5 ----- src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf | 5 ----- 13 files changed, 65 deletions(-) diff --git a/src/Java.Interop.Localization/xlf/Resources.cs.xlf b/src/Java.Interop.Localization/xlf/Resources.cs.xlf index 1721d4560..01c62309a 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 4606b5db6..c4d483695 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 22d084de9..8656f2f74 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 36912844e..17958f1de 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 51f29c93d..a0ea0c8d5 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 25d12a248..8300ffe09 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 88bade5bf..dd6b9ec9f 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 63bf65cbf..c45d7a3dc 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 4f752d1fb..35b8ec657 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 2a8a688f9..f4688a89b 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 9694f6237..9d650e59c 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 b957f7f92..270487c00 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ 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 e93a26ad1..fd0e23bb6 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -323,11 +323,6 @@ Name, com.example.MyClass. Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - Method {0} was not improved. There should have been at least 2 improvements in this registration method. - {0} - method - \ No newline at end of file From 79b9edbc964c5c69dc2a6be7eb3d238063127589 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 27 Aug 2020 18:27:27 +0200 Subject: [PATCH 08/10] Extended one of the comments --- src/Java.Interop.Localization/Resources.resx | 2 +- src/Java.Interop.Localization/xlf/Resources.cs.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.de.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.es.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.fr.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.it.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.ja.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.ko.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.pl.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.ru.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.tr.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf | 2 +- src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index 5833ae925..17190108a 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -370,7 +370,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.cs.xlf b/src/Java.Interop.Localization/xlf/Resources.cs.xlf index 01c62309a..d986e4808 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index c4d483695..20349e9c7 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index 8656f2f74..2df6c85c7 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index 17958f1de..5dc4e72a5 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index a0ea0c8d5..dd9fdd62e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index 8300ffe09..f07a88bd8 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index dd6b9ec9f..3a522ccf5 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index c45d7a3dc..c169948e7 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index 35b8ec657..c7fe82ab9 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index f4688a89b..424375e55 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 9d650e59c..82b205efd 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index 270487c00..e2151bb1c 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index fd0e23bb6..aa21fe8c2 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -311,7 +311,7 @@ Name, com.example.MyClass. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name + {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. From 2778acc31bb1c54cc5d1e7580be5f696d619aa84 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 2 Sep 2020 11:47:37 +0200 Subject: [PATCH 09/10] Few more changes to improve the warning messages --- .../Resources.Designer.cs | 8 +++--- src/Java.Interop.Localization/Resources.resx | 17 +++++++----- .../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(+), 167 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 384dfe1ee..126939ab9 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -538,7 +538,7 @@ public static string JniMarshalMethodGen_JM8001 { } /// - /// Looks up a localized string similar to Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1}. + /// Looks up a localized string similar to Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1}. /// public static string JniMarshalMethodGen_JM8003 { get { @@ -547,7 +547,7 @@ public static string JniMarshalMethodGen_JM8003 { } /// - /// Looks up a localized string similar to Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option.. + /// Looks up a localized string similar to Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option.. /// public static string JniMarshalMethodGen_JM8004 { get { @@ -565,7 +565,7 @@ public static string JniMarshalMethodGen_JM8005 { } /// - /// Looks up a localized string similar to Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option.. + /// Looks up a localized string similar to Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option.. /// public static string JniMarshalMethodGen_JM8006 { get { @@ -574,7 +574,7 @@ public static string JniMarshalMethodGen_JM8006 { } /// - /// Looks up a localized string similar to Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option.. + /// Looks up a localized string similar to Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option.. /// public static string JniMarshalMethodGen_JM8007 { get { diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index 17190108a..2180ee3aa 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -361,22 +361,25 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L \ 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 d986e4808..d05681a1e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index 20349e9c7..44686ff2a 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index 2df6c85c7..d90238d60 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index 5dc4e72a5..daf696033 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index dd9fdd62e..1a11d3abf 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index f07a88bd8..c1bdf149f 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index 3a522ccf5..1fb596246 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index c169948e7..f5bd9973e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index c7fe82ab9..2937e1634 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index 424375e55..5a5ea163a 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 82b205efd..35913799e 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index e2151bb1c..59c52331c 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index aa21fe8c2..96da23317 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -299,29 +299,31 @@ Name, com.example.MyClass. {0} - interface name - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} - Catched type Load exception. Make sure all the references are available. For details check the exception: {0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} + Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} {0} - newline, {1} - exception - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's TypeDefinition of type {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - type + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - type +The following terms should not be translated: -L Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. Marshal methods type '{0}' already exists. Skipped generation of marshal methods in assembly '{1}'. Use -f to force regeneration when desired. - {0} - type, {1} - assembly name. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. + {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - Unable to find cecil's MethodDefinition of method {0}. Make sure the paths to all reference assemblies are passed to the tool with the -L option. - {0} - method + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + {0} - method +The following terms should not be translated: -L - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - Unable to find System.Console::WriteLine method. Disabling debug injection. Make sure the paths to corlib assembly is passed to the tool with the -L option. - + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + The following terms should not be translated: -L From c6d3edbc38cc85ce50c72691e4033397dce383d5 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 3 Sep 2020 22:04:36 +0200 Subject: [PATCH 10/10] Next round of corrections to warning messages --- .../Resources.Designer.cs | 8 ++++---- src/Java.Interop.Localization/Resources.resx | 10 +++++----- .../xlf/Resources.cs.xlf | 18 +++++++++--------- .../xlf/Resources.de.xlf | 18 +++++++++--------- .../xlf/Resources.es.xlf | 18 +++++++++--------- .../xlf/Resources.fr.xlf | 18 +++++++++--------- .../xlf/Resources.it.xlf | 18 +++++++++--------- .../xlf/Resources.ja.xlf | 18 +++++++++--------- .../xlf/Resources.ko.xlf | 18 +++++++++--------- .../xlf/Resources.pl.xlf | 18 +++++++++--------- .../xlf/Resources.pt-BR.xlf | 18 +++++++++--------- .../xlf/Resources.ru.xlf | 18 +++++++++--------- .../xlf/Resources.tr.xlf | 18 +++++++++--------- .../xlf/Resources.zh-Hans.xlf | 18 +++++++++--------- .../xlf/Resources.zh-Hant.xlf | 18 +++++++++--------- 15 files changed, 126 insertions(+), 126 deletions(-) diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 126939ab9..2af9ac335 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -538,7 +538,7 @@ public static string JniMarshalMethodGen_JM8001 { } /// - /// Looks up a localized string similar to Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1}. + /// Looks up a localized string similar to Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1}. /// public static string JniMarshalMethodGen_JM8003 { get { @@ -547,7 +547,7 @@ public static string JniMarshalMethodGen_JM8003 { } /// - /// Looks up a localized string similar to Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option.. + /// Looks up a localized string similar to Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option.. /// public static string JniMarshalMethodGen_JM8004 { get { @@ -565,7 +565,7 @@ public static string JniMarshalMethodGen_JM8005 { } /// - /// Looks up a localized string similar to Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option.. + /// Looks up a localized string similar to Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option.. /// public static string JniMarshalMethodGen_JM8006 { get { @@ -574,7 +574,7 @@ public static string JniMarshalMethodGen_JM8006 { } /// - /// Looks up a localized string similar to Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option.. + /// Looks up a localized string similar to Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option.. /// public static string JniMarshalMethodGen_JM8007 { get { diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index 2180ee3aa..c4a3843a0 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -361,11 +361,11 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -374,12 +374,12 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L \ 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 d05681a1e..091f627f7 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.de.xlf b/src/Java.Interop.Localization/xlf/Resources.de.xlf index 44686ff2a..934049337 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.es.xlf b/src/Java.Interop.Localization/xlf/Resources.es.xlf index d90238d60..69c6dfd06 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.fr.xlf b/src/Java.Interop.Localization/xlf/Resources.fr.xlf index daf696033..3a5c5fdd3 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.it.xlf b/src/Java.Interop.Localization/xlf/Resources.it.xlf index 1a11d3abf..e748b3f81 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.ja.xlf b/src/Java.Interop.Localization/xlf/Resources.ja.xlf index c1bdf149f..d5034e473 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.ko.xlf b/src/Java.Interop.Localization/xlf/Resources.ko.xlf index 1fb596246..6235b04aa 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.pl.xlf b/src/Java.Interop.Localization/xlf/Resources.pl.xlf index f5bd9973e..a16fe8a98 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf index 2937e1634..4ea307f83 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.ru.xlf b/src/Java.Interop.Localization/xlf/Resources.ru.xlf index 5a5ea163a..41ecdd275 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.tr.xlf b/src/Java.Interop.Localization/xlf/Resources.tr.xlf index 35913799e..ce5cc0407 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf index 59c52331c..8e1ad4e36 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L diff --git a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf index 96da23317..1534fa729 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -299,13 +299,13 @@ Name, com.example.MyClass. {0} - interface name - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - Caught an exception while loading types. The types which cannot be loaded will not be processed. Make sure all referenced assemblies are available, use -r option. For details, check the exception:{0}{1} - {0} - newline, {1} - exception + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + Caught an exception while loading types. The types that cannot be loaded will not be processed. Make sure that any additional assembly references required for those types are provided using the -r option. Exception:{0}{1} + {0} - newline, {1} - exception. The following terms should not be translated: -r - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find type '{0}'. The type will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find type '{0}'. The type will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - type The following terms should not be translated: -L @@ -315,14 +315,14 @@ The following terms should not be translated: -L {0} - type, {1} - assembly name. The following terms should not be translated: -f. In this message, the term "marshal methods" refers to methods that allow interaction between the managed methods and Java methods, similar to the methods of the .NET System.Runtime.InteropServices.Marshal class. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. - Unable to find MethodDefinition of method {0}. It will not be processed. Make sure the paths to all reference assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. + Unable to find definition of method '{0}' in assembly metadata. It will not be processed. Make sure the directories for all referenced assemblies are provided with the -L option. {0} - method The following terms should not be translated: -L - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. - Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the path to mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. + Unable to find the System.Console.WriteLine() method. Disabling debug injection. To enable debug injection, ensure the directory containing mscorlib is provided with the -L option. The following terms should not be translated: -L