Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtraTranslation lint check fails (and possibility of app crash) when creating a production build for Android #84

Open
ryaa opened this issue Sep 4, 2019 · 1 comment

Comments

@ryaa
Copy link
Contributor

ryaa commented Sep 4, 2019

The error is below

/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:3: Error: "library_name" is translated here but not found in default locale [ExtraTranslation]
    <string name="library_name">MediaPicker</string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:4: Error: "all_dir_name" is translated here but not found in default locale [ExtraTranslation]
    <string name="all_dir_name">Alle Bilder und Videos</string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:5: Error: "all_video" is translated here but not found in default locale [ExtraTranslation]
    <string name="all_video">Alle Videos</string>
            ~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:6: Error: "all_image" is translated here but not found in default locale [ExtraTranslation]
    <string name="all_image">Alle Bilder</string>
            ~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:7: Error: "select_title" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_title">Wähle Bild und Video</string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:8: Error: "select_video_title" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_video_title">Wähle Video</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:9: Error: "select_image_title" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_image_title">Wähle Bild</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:10: Error: "video_dir_name" is translated here but not found in default locale [ExtraTranslation]
    <string name="video_dir_name">Alle Videos</string>
            ~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:11: Error: "msg_amount_limit" is translated here but not found in default locale [ExtraTranslation]
    <string name="msg_amount_limit">Maximale Anzahl erreicht</string>
            ~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:12: Error: "msg_size_limit" is translated here but not found in default locale [ExtraTranslation]
    <string name="msg_size_limit">Die maximale Dateigröße ist</string>
            ~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:13: Error: "select_null" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_null">Bitte wähle eine Datei</string>
            ~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:14: Error: "done" is translated here but not found in default locale [ExtraTranslation]
    <string name="done">Fertig</string>
            ~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:15: Error: "count_string" is translated here but not found in default locale [ExtraTranslation]
    <string name="count_string"></string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:16: Error: "preview" is translated here but not found in default locale [ExtraTranslation]
    <string name="preview">Vorschau</string>
            ~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:17: Error: "select" is translated here but not found in default locale [ExtraTranslation]
    <string name="select">Auswahl</string>
            ~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:18: Error: "video" is translated here but not found in default locale [ExtraTranslation]
    <string name="video">Video</string>
            ~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:19: Error: "cant_play_video" is translated here but not found in default locale [ExtraTranslation]
    <string name="cant_play_video">Kein Abspiel-Programm!</string>
            ~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-de/multiimagechooser_strings_de.xml:20: Error: "READ_EXTERNAL_STORAGE" is translated here but not found in default locale [ExtraTranslation]
    <string name="READ_EXTERNAL_STORAGE">Lese-Berechtigung wird benötigt</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:3: Error: "library_name" is translated here but not found in default locale [ExtraTranslation]
    <string name="library_name">MediaPicker</string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:4: Error: "all_dir_name" is translated here but not found in default locale [ExtraTranslation]
    <string name="all_dir_name">Tümü</string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:5: Error: "all_video" is translated here but not found in default locale [ExtraTranslation]
    <string name="all_video">Tüm Videolar</string>
            ~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:6: Error: "all_image" is translated here but not found in default locale [ExtraTranslation]
    <string name="all_image">Tüm Fotoğraflar</string>
            ~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:7: Error: "select_title" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_title">Fotoğraf ve Video Seç</string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:8: Error: "select_video_title" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_video_title">Video Seç</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:9: Error: "select_image_title" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_image_title">Fotoğraf Seç</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:10: Error: "video_dir_name" is translated here but not found in default locale [ExtraTranslation]
    <string name="video_dir_name">Tüm Videolar</string>
            ~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:11: Error: "msg_amount_limit" is translated here but not found in default locale [ExtraTranslation]
    <string name="msg_amount_limit">Maksimum seçime ulaşıldı!</string>
            ~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:12: Error: "msg_size_limit" is translated here but not found in default locale [ExtraTranslation]
    <string name="msg_size_limit">Maksimum dosya boyutu aşıldı!</string>
            ~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:13: Error: "select_null" is translated here but not found in default locale [ExtraTranslation]
    <string name="select_null">Lütfen seçim yapın</string>
            ~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:14: Error: "done" is translated here but not found in default locale [ExtraTranslation]
    <string name="done">Bitti</string>
            ~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:15: Error: "count_string" is translated here but not found in default locale [ExtraTranslation]
    <string name="count_string"></string>
            ~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:16: Error: "preview" is translated here but not found in default locale [ExtraTranslation]
    <string name="preview">Ön izleme</string>
            ~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:17: Error: "select" is translated here but not found in default locale [ExtraTranslation]
    <string name="select">Seç</string>
            ~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:18: Error: "video" is translated here but not found in default locale [ExtraTranslation]
    <string name="video">Video</string>
            ~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:19: Error: "cant_play_video" is translated here but not found in default locale [ExtraTranslation]
    <string name="cant_play_video">Oynatılamıyor!</string>
            ~~~~~~~~~~~~~~~~~~~~~~
/Users/alexryltsov/Git/BOSS811/master/platforms/android/app/src/main/res/values-tr/multiimagechooser_strings_tr.xml:20: Error: "READ_EXTERNAL_STORAGE" is translated here but not found in default locale [ExtraTranslation]
    <string name="READ_EXTERNAL_STORAGE">Lütfen uygulamaya erişim izni verin.</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.

The problem is that the app might crash as discussed above. For more details please see ExtraTranslation lint rule here http://tools.android.com/tips/lint-checks
Need to add the default/fallback translation resources for all the translated strings.

@ryaa
Copy link
Contributor Author

ryaa commented Sep 4, 2019

This PR seems to be one of the reason for this problem #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant