Skip to content

Commit 698306b

Browse files
brendanzagaeskijonpryor
authored andcommitted
[Xamarin.Android.Build.Tasks] Wear application tasks l10n support (#4559)
Context: 0342fe5 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1009374/ Add codes to the existing warnings and errors in the Wear application tasks, and move the message strings into the `.resx` file so that they are localizable. Other changes: Remove "you" from one of the messages.
1 parent 7ff3249 commit 698306b

18 files changed

+376
-4
lines changed

Documentation/guides/messages/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ ms.date: 01/24/2020
8282
+ [XA1011](xa1011.md): Using ProGuard with the D8 DEX compiler is no longer supported. Please update \`$(AndroidLinkTool)\` to \`r8\`.
8383
+ XA1012: Included layout root element override ID '{id}' is not valid.
8484
+ XA1013: Failed to parse ID of node '{name}' in the layout file '{file}'.
85+
+ XA1015: More than one Android Wear project is specified as the paired project. It can be at most one.
86+
+ XA1016: Target Wear application's project '{project}' does not specify required 'AndroidManifest' project property.
87+
+ XA1017: Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.
8588

8689
## XA2xxx: Linker
8790

@@ -130,6 +133,7 @@ ms.date: 01/24/2020
130133
+ [XA4308](xa4308.md): Failed to generate type maps
131134
+ [XA4309](xa4309.md): 'MultiDexMainDexList' file '{file}' does not exist.
132135
+ [XA4310](xa4310.md): \`$(AndroidSigningKeyStore)\` file \`{keystore}\` could not be found.
136+
+ XA4311: The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.
133137

134138
## XA5xxx: GCC and toolchain
135139

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

Lines changed: 36 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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,21 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
324324
<value>Failed to parse ID of node '{0}' in the layout file '{1}'.</value>
325325
<comment>{0} - The Android resource XML element name
326326
{1} - The path of the layout file</comment>
327+
</data>
328+
<data name="XA1015" xml:space="preserve">
329+
<value>More than one Android Wear project is specified as the paired project. It can be at most one.</value>
330+
<comment>The following are literal names and should not be translated: Android Wear</comment>
331+
</data>
332+
<data name="XA1016" xml:space="preserve">
333+
<value>Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</value>
334+
<comment>The following are literal names and should not be translated: Wear, AndroidManifest
335+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.
336+
{0} - The project file name</comment>
337+
</data>
338+
<data name="XA1017" xml:space="preserve">
339+
<value>Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</value>
340+
<comment>The following are literal names and should not be translated: Wear, AndroidManifest.xml, 'package'
341+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</comment>
327342
</data>
328343
<data name="XA2000" xml:space="preserve">
329344
<value>Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 5 will only support a single AppDomain, so this API will no longer be available in Xamarin.Android once .NET 5 is released.</value>
@@ -543,6 +558,11 @@ In this message, the term "bundled" is a short way of saying "included into the
543558
<value>`$(AndroidSigningKeyStore)` file `{0}` could not be found.</value>
544559
<comment>The following are literal names and should not be translated: `$(AndroidSigningKeyStore)`</comment>
545560
</data>
561+
<data name="XA4311" xml:space="preserve">
562+
<value>The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</value>
563+
<comment>The following are literal names and should not be translated: Wear, APK, SignAndroidPackage
564+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</comment>
565+
</data>
546566
<data name="XA5101" xml:space="preserve">
547567
<value>Missing Android NDK toolchains directory '{0}'. Please install the Android NDK.</value>
548568
<comment>{0} - The path of the missing directory</comment>

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
253253
<target state="new">Failed to parse ID of node '{0}' in the layout file '{1}'.</target>
254254
<note>{0} - The Android resource XML element name
255255
{1} - The path of the layout file</note>
256+
</trans-unit>
257+
<trans-unit id="XA1015">
258+
<source>More than one Android Wear project is specified as the paired project. It can be at most one.</source>
259+
<target state="new">More than one Android Wear project is specified as the paired project. It can be at most one.</target>
260+
<note>The following are literal names and should not be translated: Android Wear</note>
261+
</trans-unit>
262+
<trans-unit id="XA1016">
263+
<source>Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</source>
264+
<target state="new">Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</target>
265+
<note>The following are literal names and should not be translated: Wear, AndroidManifest
266+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.
267+
{0} - The project file name</note>
268+
</trans-unit>
269+
<trans-unit id="XA1017">
270+
<source>Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</source>
271+
<target state="new">Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</target>
272+
<note>The following are literal names and should not be translated: Wear, AndroidManifest.xml, 'package'
273+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
256274
</trans-unit>
257275
<trans-unit id="XA2000">
258276
<source>Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 5 will only support a single AppDomain, so this API will no longer be available in Xamarin.Android once .NET 5 is released.</source>
@@ -521,6 +539,12 @@ In this message, the term "bundled" is a short way of saying "included into the
521539
<target state="translated">Soubor $(AndroidSigningKeyStore) {0} se nepovedlo najít.</target>
522540
<note>The following are literal names and should not be translated: `$(AndroidSigningKeyStore)`</note>
523541
</trans-unit>
542+
<trans-unit id="XA4311">
543+
<source>The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</source>
544+
<target state="new">The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</target>
545+
<note>The following are literal names and should not be translated: Wear, APK, SignAndroidPackage
546+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
547+
</trans-unit>
524548
<trans-unit id="XA5101">
525549
<source>Missing Android NDK toolchains directory '{0}'. Please install the Android NDK.</source>
526550
<target state="translated">Chybí adresář sady nástrojů Android NDK {0}. Nainstalujte prosím sadu Android NDK.</target>

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
253253
<target state="new">Failed to parse ID of node '{0}' in the layout file '{1}'.</target>
254254
<note>{0} - The Android resource XML element name
255255
{1} - The path of the layout file</note>
256+
</trans-unit>
257+
<trans-unit id="XA1015">
258+
<source>More than one Android Wear project is specified as the paired project. It can be at most one.</source>
259+
<target state="new">More than one Android Wear project is specified as the paired project. It can be at most one.</target>
260+
<note>The following are literal names and should not be translated: Android Wear</note>
261+
</trans-unit>
262+
<trans-unit id="XA1016">
263+
<source>Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</source>
264+
<target state="new">Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</target>
265+
<note>The following are literal names and should not be translated: Wear, AndroidManifest
266+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.
267+
{0} - The project file name</note>
268+
</trans-unit>
269+
<trans-unit id="XA1017">
270+
<source>Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</source>
271+
<target state="new">Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</target>
272+
<note>The following are literal names and should not be translated: Wear, AndroidManifest.xml, 'package'
273+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
256274
</trans-unit>
257275
<trans-unit id="XA2000">
258276
<source>Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 5 will only support a single AppDomain, so this API will no longer be available in Xamarin.Android once .NET 5 is released.</source>
@@ -521,6 +539,12 @@ In this message, the term "bundled" is a short way of saying "included into the
521539
<target state="translated">Die $(AndroidSigningKeyStore)-Datei "{0}" wurde nicht gefunden.</target>
522540
<note>The following are literal names and should not be translated: `$(AndroidSigningKeyStore)`</note>
523541
</trans-unit>
542+
<trans-unit id="XA4311">
543+
<source>The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</source>
544+
<target state="new">The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</target>
545+
<note>The following are literal names and should not be translated: Wear, APK, SignAndroidPackage
546+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
547+
</trans-unit>
524548
<trans-unit id="XA5101">
525549
<source>Missing Android NDK toolchains directory '{0}'. Please install the Android NDK.</source>
526550
<target state="translated">Das Android NDK-Toolkettenverzeichnis "{0}" fehlt. Installieren Sie das Android NDK.</target>

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
253253
<target state="new">Failed to parse ID of node '{0}' in the layout file '{1}'.</target>
254254
<note>{0} - The Android resource XML element name
255255
{1} - The path of the layout file</note>
256+
</trans-unit>
257+
<trans-unit id="XA1015">
258+
<source>More than one Android Wear project is specified as the paired project. It can be at most one.</source>
259+
<target state="new">More than one Android Wear project is specified as the paired project. It can be at most one.</target>
260+
<note>The following are literal names and should not be translated: Android Wear</note>
261+
</trans-unit>
262+
<trans-unit id="XA1016">
263+
<source>Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</source>
264+
<target state="new">Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</target>
265+
<note>The following are literal names and should not be translated: Wear, AndroidManifest
266+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.
267+
{0} - The project file name</note>
268+
</trans-unit>
269+
<trans-unit id="XA1017">
270+
<source>Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</source>
271+
<target state="new">Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</target>
272+
<note>The following are literal names and should not be translated: Wear, AndroidManifest.xml, 'package'
273+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
256274
</trans-unit>
257275
<trans-unit id="XA2000">
258276
<source>Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 5 will only support a single AppDomain, so this API will no longer be available in Xamarin.Android once .NET 5 is released.</source>
@@ -521,6 +539,12 @@ In this message, the term "bundled" is a short way of saying "included into the
521539
<target state="translated">No se ha encontrado el archivo "{0}" de "$(AndroidSigningKeyStore)".</target>
522540
<note>The following are literal names and should not be translated: `$(AndroidSigningKeyStore)`</note>
523541
</trans-unit>
542+
<trans-unit id="XA4311">
543+
<source>The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</source>
544+
<target state="new">The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</target>
545+
<note>The following are literal names and should not be translated: Wear, APK, SignAndroidPackage
546+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
547+
</trans-unit>
524548
<trans-unit id="XA5101">
525549
<source>Missing Android NDK toolchains directory '{0}'. Please install the Android NDK.</source>
526550
<target state="translated">Falta el directorio de cadenas de herramientas de Android NDK "{0}". Instale Android NDK.</target>

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ The term "lock file" comes from NuGet. For example, search for "UnauthorizedLock
253253
<target state="new">Failed to parse ID of node '{0}' in the layout file '{1}'.</target>
254254
<note>{0} - The Android resource XML element name
255255
{1} - The path of the layout file</note>
256+
</trans-unit>
257+
<trans-unit id="XA1015">
258+
<source>More than one Android Wear project is specified as the paired project. It can be at most one.</source>
259+
<target state="new">More than one Android Wear project is specified as the paired project. It can be at most one.</target>
260+
<note>The following are literal names and should not be translated: Android Wear</note>
261+
</trans-unit>
262+
<trans-unit id="XA1016">
263+
<source>Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</source>
264+
<target state="new">Target Wear application's project '{0}' does not specify required 'AndroidManifest' project property.</target>
265+
<note>The following are literal names and should not be translated: Wear, AndroidManifest
266+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.
267+
{0} - The project file name</note>
268+
</trans-unit>
269+
<trans-unit id="XA1017">
270+
<source>Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</source>
271+
<target state="new">Target Wear application's AndroidManifest.xml does not specify required 'package' attribute.</target>
272+
<note>The following are literal names and should not be translated: Wear, AndroidManifest.xml, 'package'
273+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
256274
</trans-unit>
257275
<trans-unit id="XA2000">
258276
<source>Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 5 will only support a single AppDomain, so this API will no longer be available in Xamarin.Android once .NET 5 is released.</source>
@@ -521,6 +539,12 @@ In this message, the term "bundled" is a short way of saying "included into the
521539
<target state="translated">Le fichier '$(AndroidSigningKeyStore)' '{0}' est introuvable.</target>
522540
<note>The following are literal names and should not be translated: `$(AndroidSigningKeyStore)`</note>
523541
</trans-unit>
542+
<trans-unit id="XA4311">
543+
<source>The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</source>
544+
<target state="new">The application won't contain the paired Wear package because the Wear application package APK is not created yet. If building on the command line, be sure to build the "SignAndroidPackage" target.</target>
545+
<note>The following are literal names and should not be translated: Wear, APK, SignAndroidPackage
546+
"Wear" is a short version of the full product name "Wear OS" and so should not be translated.</note>
547+
</trans-unit>
524548
<trans-unit id="XA5101">
525549
<source>Missing Android NDK toolchains directory '{0}'. Please install the Android NDK.</source>
526550
<target state="translated">Répertoire de chaînes d'outils du kit Android NDK manquant '{0}'. Installez le kit Android NDK.</target>

0 commit comments

Comments
 (0)