diff --git a/src/Java.Interop.Localization/Resources.Designer.cs b/src/Java.Interop.Localization/Resources.Designer.cs index 851259ec4..2af9ac335 100644 --- a/src/Java.Interop.Localization/Resources.Designer.cs +++ b/src/Java.Interop.Localization/Resources.Designer.cs @@ -473,5 +473,113 @@ 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 file '{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 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 { + return ResourceManager.GetString("JniMarshalMethodGen_JM8003", resourceCulture); + } + } + + /// + /// 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 { + 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 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 { + return ResourceManager.GetString("JniMarshalMethodGen_JM8006", resourceCulture); + } + } + + /// + /// 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 { + return ResourceManager.GetString("JniMarshalMethodGen_JM8007", resourceCulture); + } + } } } diff --git a/src/Java.Interop.Localization/Resources.resx b/src/Java.Interop.Localization/Resources.resx index a6b1aafaf..c4a3843a0 100644 --- a/src/Java.Interop.Localization/Resources.resx +++ b/src/Java.Interop.Localization/Resources.resx @@ -332,4 +332,54 @@ 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. + 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 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. + {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 + + + 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 directories for all referenced 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. 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 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 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 d770d9206..091f627f7 100644 --- a/src/Java.Interop.Localization/xlf/Resources.cs.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.cs.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..934049337 100644 --- a/src/Java.Interop.Localization/xlf/Resources.de.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.de.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..69c6dfd06 100644 --- a/src/Java.Interop.Localization/xlf/Resources.es.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.es.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..3a5c5fdd3 100644 --- a/src/Java.Interop.Localization/xlf/Resources.fr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.fr.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..e748b3f81 100644 --- a/src/Java.Interop.Localization/xlf/Resources.it.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.it.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..d5034e473 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ja.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ja.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..6235b04aa 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ko.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ko.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..a16fe8a98 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pl.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pl.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..4ea307f83 100644 --- a/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.pt-BR.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..41ecdd275 100644 --- a/src/Java.Interop.Localization/xlf/Resources.ru.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.ru.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..ce5cc0407 100644 --- a/src/Java.Interop.Localization/xlf/Resources.tr.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.tr.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..8e1ad4e36 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hans.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ 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..1534fa729 100644 --- a/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf +++ b/src/Java.Interop.Localization/xlf/Resources.zh-Hant.xlf @@ -263,6 +263,68 @@ 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. + 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} + Unable to create Java VM{0}{1} + {0} - newline, {1} - 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. + 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 + + + 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 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 + + + 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. 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 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 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 + \ No newline at end of file diff --git a/tools/jnimarshalmethod-gen/App.cs b/tools/jnimarshalmethod-gen/App.cs index 49b40ca3e..e3ad1710f 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); 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, 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, 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, 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."); + Information ($"Unable to read assembly '{assembly}' with symbols. Retrying to load it without them."); + 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, 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, 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,14 @@ 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, 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 JM{message.Code:X04}: {Name}: {string.Format (message.Localized, args)}", ConsoleColor.Yellow, Console.Error); - public static void Warning (string message) => ColorMessage ($"Warning: {Name}: {message}", ConsoleColor.Yellow, Console.Error); + public static void Information (string message) => ColorMessage (message, ConsoleColor.Yellow, Console.Out); static void AddToTypeMap (TypeDefinition type) { @@ -684,7 +685,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..442c175ab --- /dev/null +++ b/tools/jnimarshalmethod-gen/Message.cs @@ -0,0 +1,29 @@ +using Java.Interop.Localization; + +namespace Xamarin.Android.Tools.JniMarshalMethodGenerator +{ + class Message + { + public string Localized { get; private set; } + public int Code { get; private set; } + + private Message (int code, string message) { + Localized = message; + Code = code; + } + + 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 (0x8001, Resources.JniMarshalMethodGen_JM8001); + 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); + } +} diff --git a/tools/jnimarshalmethod-gen/TypeMover.cs b/tools/jnimarshalmethod-gen/TypeMover.cs index 0b64777b2..2576d5b90 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,8 @@ public void Move () } if (movedTypesCount <= 0) { - App.Warning ("No type was moved => nothing to write, no new assembly created."); + 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 ($"Method {md} was not improved. There should have been at least 2 improvements in this registration method."); + 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) 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 @@ +