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. iOS localization
Qt 6.11 is out! See what's new in the release blog

iOS localization

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.6k Views 1 Watching
  • 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.
  • dead_manD Offline
    dead_manD Offline
    dead_man
    wrote on last edited by
    #1

    I need localize some text in Info.plist (e.g. NSLocationAlwaysUsageDescription). I not found solution for Qt. I trying create InfoPlist.strings and ru.lproj/InfoPlist.strings, but what needed in .pro?

    1 Reply Last reply
    0
    • dead_manD Offline
      dead_manD Offline
      dead_man
      wrote on last edited by
      #2

      I resolved my problem.

      1. Remove NSLocationAlwaysUsageDescription from Info.plist
      2. Create en.lproj/InfoPlist.strings and ru.lproj/InfoPlist.strings
      3. Add to .pro file this:
          TRANSLATE_ru.files = $$PWD/ru.lproj/InfoPlist.strings
          TRANSLATE_ru.path = ru.lproj
          QMAKE_BUNDLE_DATA += TRANSLATE_ru
      
          TRANSLATE_en.files = $$PWD/en.lproj/InfoPlist.strings
          TRANSLATE_en.path = en.lproj
          QMAKE_BUNDLE_DATA += TRANSLATE_en
      
      1 Reply Last reply
      2
      • T Offline
        T Offline
        Taher Lakdawala
        wrote on last edited by
        #3

        I have also tried above solution but it is not taking value from en.lproj/InfoPlist.strings. Can anybody explain what I am missing?

        H 1 Reply Last reply
        1
        • T Taher Lakdawala

          I have also tried above solution but it is not taking value from en.lproj/InfoPlist.strings. Can anybody explain what I am missing?

          H Offline
          H Offline
          Highlights
          wrote on last edited by
          #4

          @Taher-Lakdawala Maybe your file is in the wrong format, check the ";" symbol

          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