Skip to content

Commit f4fc255

Browse files
[Xamarin.Android.Build.Tasks] ResolveAssemblies l10n support part 2 (#4560)
Context: 0342fe5 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1009374/ Context: 0103d4f Add codes to the remaining errors in `<ResolveAssemblies/>` that did not yet have codes, and move the message strings into the `.resx` file so that they are localizable.
1 parent b76804c commit f4fc255

File tree

17 files changed

+175
-3
lines changed

17 files changed

+175
-3
lines changed

Documentation/guides/messages/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ ms.date: 01/24/2020
9292
+ [XA2001](xa2001.md): Source file '{filename}' could not be found.
9393
+ [XA2002](xa2002.md): Can not resolve reference: \`{missing}\`, referenced by {assembly}. Perhaps it doesn't exist in the Mono for Android profile?
9494
+ XA2006: Could not resolve reference to '{member}' (defined in assembly '{assembly}') with scope '{scope}'. When the scope is different from the defining assembly, it usually means that the type is forwarded.
95+
+ XA2007: Exception while loading assemblies: {exception}
96+
+ XA2008: In referenced assembly {assembly}, Java.Interop.DoNotPackageAttribute requires non-null file name.
9597

9698
## XA3xxx: Unmanaged code compilation
9799

src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Xamarin.Android.Build.Tasks/Properties/Resources.resx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
364364
<comment>{0} - The member name, such as a class name
365365
{1} - The assembly name
366366
{2} - The scope of the member, such as the name of a different assembly</comment>
367+
</data>
368+
<data name="XA2007" xml:space="preserve">
369+
<value>Exception while loading assemblies: {0}</value>
370+
<comment>{0} - The exception message of the associated exception</comment>
371+
</data>
372+
<data name="XA2008" xml:space="preserve">
373+
<value>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</value>
374+
<comment>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
375+
{0} - The assembly name</comment>
367376
</data>
368377
<data name="XA3001" xml:space="preserve">
369378
<value>Could not AOT the assembly: {0}</value>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
302302
<note>{0} - The member name, such as a class name
303303
{1} - The assembly name
304304
{2} - The scope of the member, such as the name of a different assembly</note>
305+
</trans-unit>
306+
<trans-unit id="XA2007">
307+
<source>Exception while loading assemblies: {0}</source>
308+
<target state="new">Exception while loading assemblies: {0}</target>
309+
<note>{0} - The exception message of the associated exception</note>
310+
</trans-unit>
311+
<trans-unit id="XA2008">
312+
<source>In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</source>
313+
<target state="new">In referenced assembly {0}, Java.Interop.DoNotPackageAttribute requires non-null file name.</target>
314+
<note>The following are literal names and should not be translated: Java.Interop.DoNotPackageAttribute
315+
{0} - The assembly name</note>
305316
</trans-unit>
306317
<trans-unit id="XA3001">
307318
<source>Could not AOT the assembly: {0}</source>

0 commit comments

Comments
 (0)