Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [qt 5.9.2 android armeabi-v7a] android_armv7\src\android\java\res\values\strings.xml:7: Error: "unsupported_android_version" is not translated

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AnatolySA Offline
    AnatolySA Offline
    AnatolyS
    wrote on last edited by AnatolyS
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      AnatolySA 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        AnatolySA Offline
        AnatolySA Offline
        AnatolyS
        wrote on last edited by AnatolyS
        #3

        @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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          AnatolySA 1 Reply Last reply
          0
          • SGaistS SGaist

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

            AnatolySA Offline
            AnatolySA Offline
            AnatolyS
            wrote on last edited by
            #5

            @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> ?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              AnatolySA 1 Reply Last reply
              0
              • SGaistS SGaist

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

                AnatolySA Offline
                AnatolySA Offline
                AnatolyS
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Thanks for the link !

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved