[qt 5.9.2 android armeabi-v7a] android_armv7\src\android\java\res\values\strings.xml:7: Error: "unsupported_android_version" is not translated



  • Hello! I try to build my application APK but when I run androiddeployqt print error:

    C:\Qt\5.9.2\android_armv7\src\android\java\res\values\strings.xml:7: Error: "unsupported_android_version" is not translated in "de" (German), "el" (Greek), "es" (Spanish), "et" (Estonian), "fa" (Persian), "fr" (French), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ms" (Malay), "nb" (Norwegian Bokmål), "nl" (Dutch), "pl" (Polish), "pt-BR" (Portuguese: Brazil), "rs", "ru" (Russian), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan) [MissingTranslation]
        <string name="unsupported_android_version">Unsupported Android version.</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.)
    

    On a build machine (Windows Server 2012 R2 Standard 64 bit) there are:
    the latest Android SDK for API level from 16 to 26
    the latest stable Android NDK (android-ndk-r15c-windows-x86_64)
    the latest Android Build Tool (26.0.2)
    the latest JDK 1.8.0-151
    the latest Qt 5.9.2 armeabi-v7a

    What is wrong?

    Here is full build log: https://pastebin.com/Dgm42Edm

    Thanks in advance!

    BR,
    Anatoly


  • Lifetime Qt Champion

    Hi,

    You can try adding <string name="unsupported_android_version">Diese Android version is nicht unterstützt to that file.



  • @SGaist thank you for your advice, but as you see "C:\Qt\5.9.2\android_armv7\src\android\java\res\values\strings.xml:" is Qt file, not mine. Do you propose to change the Qt file locally?


  • Lifetime Qt Champion

    I know, I was proposing to modify the de version of that file in your Qt installation.



  • @SGaist So is it bug in translation C:\Qt\5.9.2\android_armv7\src\android\java\res\values\strings.xml:7: Error: "unsupported_android_version" is not translated in "de" (German), "el" (Greek), "es" (Spanish), "et" (Estonian), "fa" (Persian), "fr" (French), "id" (Indonesian), "it" (Italian), "ja" (Japanese), "ms" (Malay), "nb" (Norwegian Bokmål), "nl" (Dutch), "pl" (Polish), "pt-BR" (Portuguese: Brazil), "rs", "ru" (Russian), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan) [MissingTranslation]
    <string name="unsupported_android_version">Unsupported Android version.</string> ?


  • Lifetime Qt Champion

    It's rather the Android tools that became way more picky regarding the missing translation text. But that is these files yes.



  • @SGaist thank you for your time. finally I have opened https://bugreports.qt.io/browse/QTBUG-63952


  • Lifetime Qt Champion

    Thanks for the link !


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.