bailuk / AAT

Another Activity Tracker for Android
https://bailu.ch/aat
GNU General Public License v3.0
150 stars 41 forks source link

Lint Error: Missing/Extra Translation #4

Closed ghost closed 7 years ago

ghost commented 7 years ago

Compiling the latest beta fails because of missing/extra translations. Either fix those or disable linterrors for those types.

:app:lintVitalRelease/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/generated.xml:3: Error: "README.about.html" is not translated in "de" (German) [MissingTranslation]
<string name="README.about.html"><!-- This resource is autogenerated by htmlAsResource.bash -->
        ~~~~~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/generated.xml:30: Error: "README.enduser.html" is not translated in "de" (German) [MissingTranslation]
<string name="README.enduser.html"><!-- This resource is autogenerated by htmlAsResource.bash -->
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:9: Error: "enter" is not translated in "de" (German) [MissingTranslation]
    <string name="enter">Enter...</string>
            ~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:28: Error: "label_summary" is not translated in "de" (German) [MissingTranslation]
    <string name="label_summary">Summary</string>
            ~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:29: Error: "label_filter" is not translated in "de" (German) [MissingTranslation]
    <string name="label_filter">Filter</string>
            ~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:30: Error: "label_list" is not translated in "de" (German) [MissingTranslation]
    <string name="label_list">List</string>
            ~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:37: Error: "gps_lock" is not translated in "de" (German) [MissingTranslation]
    <string name="gps_lock">Lock</string>
            ~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:39: Error: "tracker" is not translated in "de" (German) [MissingTranslation]
    <string name="tracker">Tracker</string>
            ~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:44: Error: "tracker_restore" is not translated in "de" (German) [MissingTranslation]
    <string name="tracker_restore">Restore track</string>
            ~~~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:64: Error: "p_tiles" is not translated in "de" (German) [MissingTranslation]
    <string name="p_tiles">Map Tiles</string>
            ~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:65: Error: "p_trim_mode" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_mode">Trim mode</string>
            ~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:66: Error: "p_trim_size" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_size">Trim size</string>
            ~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:67: Error: "p_trim_age" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_age">Trim age</string>
            ~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:68: Error: "p_trim_month" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_month">Month</string>
            ~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:69: Error: "p_trim_months" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_months">Months</string>
            ~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:70: Error: "p_trim_year" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_year">Year</string>
            ~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:71: Error: "p_trim_years" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_years">Years</string>
            ~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:72: Error: "p_trim_days" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_days">Days</string>
            ~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:73: Error: "p_trim_total" is not translated in "de" (German) [MissingTranslation]
    <string name="p_trim_total">Total</string>
            ~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:75: Error: "p_trim_modes" is not translated in "de" (German) [MissingTranslation]
    <string-array name="p_trim_modes">
                  ~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:145: Error: "p_location_gps" is not translated in "de" (German) [MissingTranslation]
    <string name="p_location_gps">System GPS</string>
            ~~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:146: Error: "p_location_mock" is not translated in "de" (German) [MissingTranslation]
    <string name="p_location_mock">Mock location</string>
            ~~~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:147: Error: "p_location_old" is not translated in "de" (German) [MissingTranslation]
    <string name="p_location_old">Old location</string>
            ~~~~~~~~~~~~~~~~~~~~~
/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values/strings.xml:160: Error: "location_title" is not translated in "de" (German) [MissingTranslation]
    <string name="location_title">Center location</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.)

/home/krt/src/fdroiddata/build/ch.bailu.aat/app/src/main/res/values-de/strings.xml:165: Error: "filter_geo_update" is translated here but not found in default locale [ExtraTranslation]
    <string name="filter_geo_update">Bereich aus Karte verwenden</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "ExtraTranslation":
   If a string appears in a specific language translation file, but there is
   no corresponding string in the default locale, then this string is probably
   unused. (It's technically possible that your application is only intended
   to run in a specific locale, but it's still a good idea to provide a
   fallback.).

   Note that these strings can lead to crashes if the string is looked up on
   any locale not providing a translation, so it's important to clean them
   up.

25 errors, 0 warnings
 FAILED
bailuk commented 7 years ago

I've updated the latest release. "./gradlew assemble" compiles now without any errors.

ghost commented 7 years ago

Indeed it does, thanks for taking care of this.