This is a bug report. Couldn't find a better place to file this too, if you 
have a reference to the right forum/bug tracking I'll happily use it.

I wanted to try out Google AppInvites beta.

Not sure if this is a tool (gradle) bug or a Google Play Service bug.

I followed the steps here:
https://developers.google.com/app-invites/android/guides/app

When I launch my release build lint fail with a MissingTranslation on a 
generated values string file

The two strings causing the issue are:

<resources>
    <string name="gcm_defaultSenderId">[censured]</string>
    <string name="google_app_id">[censured]</string>
</resources>


:app:lintVitalRelease
    <string name="gcm_defaultSenderId">[censured]</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~
[censured]/app/build/generated/res/google-services/release/values/values.xml
Error:(3) Error: "gcm_defaultSenderId" is not translated in "it" (Italian) 
[MissingTranslation]
Error:(4) Error: "google_app_id" is not translated in "it" (Italian) 
[MissingTranslation]
    <string name="google_app_id">[censured]</string>
            ~~~~~~~~~~~~~~~~~~~~
   Explanation for issues of type "MissingTranslation":
   If an application has more than one locale, then all the strings declared
   in one language should also be translated in all other languages.
   If the string should not be translated, you can add the attribute
   translatable="false" on the <string> element, or you can define all your
   non-translatable strings in a resource file called donottranslate.xml. 
Or,
   you can ignore the issue with a tools:ignore="MissingTranslation"
   attribute.
   By default this detector allows regions of a language to just provide a
   subset of the strings and fall back to the standard language strings. You
   can require all regions to provide a full translation by setting the
   environment variable ANDROID_LINT_COMPLETE_REGIONS.
   You can tell lint (and other tools) which language is the default 
language
   in your res/values/ folder by specifying tools:locale="languageCode" for
   the root <resources> element in your resource file. (The tools prefix
   refers to the namespace declaration http://schemas.android.com/tools.)
2 errors, 0 warnings


In my build.gradle file I've set: 

resConfigs "it"

The only way I found to build for release has been to set

    lintOptions {
        // google services plugin is causing missing translation issue
        abortOnError false
    }

still pretty annoying.

Please makes this bug report reach the right persons in Google or tell me 
how I can reach them properly.

regards,
Daniele

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to