Skip to content

Commit 7d12570

Browse files
[Xamarin.Android.Build.Tasks] XA1000, XA4303, XA5207, & XA5302 l10n (#4343)
Context: 0342fe5 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1009374/ Move the message strings for XA1000, XA4303, XA5207, & XA5302 into the `.resx` file so that they are localizable.
1 parent 4a602b8 commit 7d12570

21 files changed

+548
-16
lines changed

Documentation/guides/messages/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ms.date: 01/24/2020
6969

7070
## XA1xxx: Project related
7171

72-
+ [XA1000](xa1000.md): There was an problem parsing {file}. This is likely due to incomplete or invalid xml.
72+
+ [XA1000](xa1000.md): There was a problem parsing {file}. This is likely due to incomplete or invalid XML.
7373
+ [XA1001](xa1001.md): AndroidResgen: Warning while updating Resource XML '{filename}': {Message}
7474
+ [XA1002](xa1002.md): The closest match found for '{customViewName}' is '{customViewLookupName}', but the capitalization does not match. Please correct the capitalization.
7575
+ [XA1003](xa1003.md): '{zip}' does not exist. Please rebuild the project.
@@ -123,7 +123,7 @@ ms.date: 01/24/2020
123123
+ XA5105: Toolchain utility '{utility}' for target {arch} was not found. Tried in path: "{path}"
124124
+ XA5201: NDK linker exited with an error. Exit code {0}
125125
+ [XA5205](xa5205.md): Cannot find `{ToolName}` in the Android SDK.
126-
+ [XA5207](xa5207.md): Could not find android.jar for API Level `{compileSdk}`.
126+
+ [XA5207](xa5207.md): Could not find android.jar for API level `{compileSdk}`.
127127
+ XA5213: java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing '{tool} {arguments}'
128128
+ [XA5300](xa5300.md): The Android/Java SDK Directory could not be found.
129129
+ [XA5301](xa5301.md): Failed to generate Java type for class: {managedType} due to MAX_PATH: {exception}

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

Lines changed: 54 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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
221221
<value>Assembly '{0}' is using a deprecated attribute '[assembly: {1}]'. Use a newer version of this NuGet package or notify the library author.</value>
222222
<comment>The following are literal names and should not be translated: [assembly: {1}], NuGet</comment>
223223
</data>
224+
<data name="XA1000" xml:space="preserve">
225+
<value>There was a problem parsing {0}. This is likely due to incomplete or invalid XML. Exception: {1}</value>
226+
<comment>{0} - The file name
227+
{1} - The exception message of the associated exception</comment>
228+
</data>
224229
<data name="XA1001" xml:space="preserve">
225230
<value>AndroidResgen: Warning while updating resource XML '{0}': {1}</value>
226231
<comment>The following are literal names and should not be translated: AndroidResgen
@@ -373,6 +378,11 @@ In this message, the term "bundled" is a short way of saying "included into the
373378
<value>Could not determine ABI of some native libraries. Ignoring those: {0}</value>
374379
<comment>The abbreviation "ABI" should not be translated.
375380
{0} - Comma-separated list of the ignored library file names.</comment>
381+
</data>
382+
<data name="XA4303" xml:space="preserve">
383+
<value>Error extracting resources from "{0}": {1}</value>
384+
<comment>{0} - The file name
385+
{1} - The exception message of the associated exception</comment>
376386
</data>
377387
<data name="XA4304" xml:space="preserve">
378388
<value>ProGuard configuration file '{0}' was not found.</value>
@@ -454,6 +464,21 @@ In this message, the term "bundled" is a short way of saying "included into the
454464
<comment>The following are literal names and should not be translated: /p:LintToolPath
455465
{0} - The missing tool name</comment>
456466
</data>
467+
<data name="XA5207" xml:space="preserve">
468+
<value>Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. Either install it in the Android SDK Manager ({2}), or change the Xamarin.Android project to target an API version that is installed. ({1} missing.)</value>
469+
<comment>The following are literal names and should not be translated: android.jar
470+
{0} - The API level name
471+
{1} - The expected path of the android.jar file
472+
{2} - The menu location in Visual Studio that can be used to launch the Android SDK Manager</comment>
473+
</data>
474+
<data name="XA5207_SDK_Manager_macOS" xml:space="preserve">
475+
<value>Tools &gt; Open Android SDK Manager...</value>
476+
<comment>This string is the location of a menu command in Visual Studio for Mac.</comment>
477+
</data>
478+
<data name="XA5207_SDK_Manager_Windows" xml:space="preserve">
479+
<value>Tools &gt; Android &gt; Android SDK Manager...</value>
480+
<comment>This string is the location of a menu command in Visual Studio.</comment>
481+
</data>
457482
<data name="XA5213" xml:space="preserve">
458483
<value>java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing '{0} {1}'</value>
459484
<comment>The following are literal names and should not be translated: java.lang.OutOfMemoryError, $(JavaMaximumHeapSize)
@@ -482,4 +507,7 @@ In this message, the term "bundled" is a short way of saying "included into the
482507
{0} - The managed type name
483508
{1} - The exception message of the associated exception</comment>
484509
</data>
510+
<data name="XA5302" xml:space="preserve">
511+
<value>Two processes may be building this project at once. Lock file exists at path: {0}</value>
512+
</data>
485513
</root>

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
129129
<target state="new">Assembly '{0}' is using a deprecated attribute '[assembly: {1}]'. Use a newer version of this NuGet package or notify the library author.</target>
130130
<note>The following are literal names and should not be translated: [assembly: {1}], NuGet</note>
131131
</trans-unit>
132+
<trans-unit id="XA1000">
133+
<source>There was a problem parsing {0}. This is likely due to incomplete or invalid XML. Exception: {1}</source>
134+
<target state="new">There was a problem parsing {0}. This is likely due to incomplete or invalid XML. Exception: {1}</target>
135+
<note>{0} - The file name
136+
{1} - The exception message of the associated exception</note>
137+
</trans-unit>
132138
<trans-unit id="XA1001">
133139
<source>AndroidResgen: Warning while updating resource XML '{0}': {1}</source>
134140
<target state="new">AndroidResgen: Warning while updating resource XML '{0}': {1}</target>
@@ -317,6 +323,12 @@ In this message, the term "bundled" is a short way of saying "included into the
317323
<target state="new">Could not determine ABI of some native libraries. Ignoring those: {0}</target>
318324
<note>The abbreviation "ABI" should not be translated.
319325
{0} - Comma-separated list of the ignored library file names.</note>
326+
</trans-unit>
327+
<trans-unit id="XA4303">
328+
<source>Error extracting resources from "{0}": {1}</source>
329+
<target state="new">Error extracting resources from "{0}": {1}</target>
330+
<note>{0} - The file name
331+
{1} - The exception message of the associated exception</note>
320332
</trans-unit>
321333
<trans-unit id="XA4304">
322334
<source>ProGuard configuration file '{0}' was not found.</source>
@@ -416,6 +428,24 @@ In this message, the term "bundled" is a short way of saying "included into the
416428
<note>The following are literal names and should not be translated: /p:LintToolPath
417429
{0} - The missing tool name</note>
418430
</trans-unit>
431+
<trans-unit id="XA5207">
432+
<source>Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. Either install it in the Android SDK Manager ({2}), or change the Xamarin.Android project to target an API version that is installed. ({1} missing.)</source>
433+
<target state="new">Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. Either install it in the Android SDK Manager ({2}), or change the Xamarin.Android project to target an API version that is installed. ({1} missing.)</target>
434+
<note>The following are literal names and should not be translated: android.jar
435+
{0} - The API level name
436+
{1} - The expected path of the android.jar file
437+
{2} - The menu location in Visual Studio that can be used to launch the Android SDK Manager</note>
438+
</trans-unit>
439+
<trans-unit id="XA5207_SDK_Manager_Windows">
440+
<source>Tools &gt; Android &gt; Android SDK Manager...</source>
441+
<target state="new">Tools &gt; Android &gt; Android SDK Manager...</target>
442+
<note>This string is the location of a menu command in Visual Studio.</note>
443+
</trans-unit>
444+
<trans-unit id="XA5207_SDK_Manager_macOS">
445+
<source>Tools &gt; Open Android SDK Manager...</source>
446+
<target state="new">Tools &gt; Open Android SDK Manager...</target>
447+
<note>This string is the location of a menu command in Visual Studio for Mac.</note>
448+
</trans-unit>
419449
<trans-unit id="XA5213">
420450
<source>java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing '{0} {1}'</source>
421451
<target state="new">java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing '{0} {1}'</target>
@@ -449,6 +479,11 @@ In this message, the term "bundled" is a short way of saying "included into the
449479
{0} - The managed type name
450480
{1} - The exception message of the associated exception</note>
451481
</trans-unit>
482+
<trans-unit id="XA5302">
483+
<source>Two processes may be building this project at once. Lock file exists at path: {0}</source>
484+
<target state="new">Two processes may be building this project at once. Lock file exists at path: {0}</target>
485+
<note />
486+
</trans-unit>
452487
</body>
453488
</file>
454489
</xliff>

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
129129
<target state="new">Assembly '{0}' is using a deprecated attribute '[assembly: {1}]'. Use a newer version of this NuGet package or notify the library author.</target>
130130
<note>The following are literal names and should not be translated: [assembly: {1}], NuGet</note>
131131
</trans-unit>
132+
<trans-unit id="XA1000">
133+
<source>There was a problem parsing {0}. This is likely due to incomplete or invalid XML. Exception: {1}</source>
134+
<target state="new">There was a problem parsing {0}. This is likely due to incomplete or invalid XML. Exception: {1}</target>
135+
<note>{0} - The file name
136+
{1} - The exception message of the associated exception</note>
137+
</trans-unit>
132138
<trans-unit id="XA1001">
133139
<source>AndroidResgen: Warning while updating resource XML '{0}': {1}</source>
134140
<target state="new">AndroidResgen: Warning while updating resource XML '{0}': {1}</target>
@@ -317,6 +323,12 @@ In this message, the term "bundled" is a short way of saying "included into the
317323
<target state="new">Could not determine ABI of some native libraries. Ignoring those: {0}</target>
318324
<note>The abbreviation "ABI" should not be translated.
319325
{0} - Comma-separated list of the ignored library file names.</note>
326+
</trans-unit>
327+
<trans-unit id="XA4303">
328+
<source>Error extracting resources from "{0}": {1}</source>
329+
<target state="new">Error extracting resources from "{0}": {1}</target>
330+
<note>{0} - The file name
331+
{1} - The exception message of the associated exception</note>
320332
</trans-unit>
321333
<trans-unit id="XA4304">
322334
<source>ProGuard configuration file '{0}' was not found.</source>
@@ -416,6 +428,24 @@ In this message, the term "bundled" is a short way of saying "included into the
416428
<note>The following are literal names and should not be translated: /p:LintToolPath
417429
{0} - The missing tool name</note>
418430
</trans-unit>
431+
<trans-unit id="XA5207">
432+
<source>Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. Either install it in the Android SDK Manager ({2}), or change the Xamarin.Android project to target an API version that is installed. ({1} missing.)</source>
433+
<target state="new">Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. Either install it in the Android SDK Manager ({2}), or change the Xamarin.Android project to target an API version that is installed. ({1} missing.)</target>
434+
<note>The following are literal names and should not be translated: android.jar
435+
{0} - The API level name
436+
{1} - The expected path of the android.jar file
437+
{2} - The menu location in Visual Studio that can be used to launch the Android SDK Manager</note>
438+
</trans-unit>
439+
<trans-unit id="XA5207_SDK_Manager_Windows">
440+
<source>Tools &gt; Android &gt; Android SDK Manager...</source>
441+
<target state="new">Tools &gt; Android &gt; Android SDK Manager...</target>
442+
<note>This string is the location of a menu command in Visual Studio.</note>
443+
</trans-unit>
444+
<trans-unit id="XA5207_SDK_Manager_macOS">
445+
<source>Tools &gt; Open Android SDK Manager...</source>
446+
<target state="new">Tools &gt; Open Android SDK Manager...</target>
447+
<note>This string is the location of a menu command in Visual Studio for Mac.</note>
448+
</trans-unit>
419449
<trans-unit id="XA5213">
420450
<source>java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing '{0} {1}'</source>
421451
<target state="new">java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing '{0} {1}'</target>
@@ -449,6 +479,11 @@ In this message, the term "bundled" is a short way of saying "included into the
449479
{0} - The managed type name
450480
{1} - The exception message of the associated exception</note>
451481
</trans-unit>
482+
<trans-unit id="XA5302">
483+
<source>Two processes may be building this project at once. Lock file exists at path: {0}</source>
484+
<target state="new">Two processes may be building this project at once. Lock file exists at path: {0}</target>
485+
<note />
486+
</trans-unit>
452487
</body>
453488
</file>
454489
</xliff>

0 commit comments

Comments
 (0)