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
Forum Updated to NodeBB v4.3 + New Features

iOS localization

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.5k 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.
  • D Offline
    D Offline
    dead_man
    wrote on 18 Aug 2016, 12:16 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
    • D Offline
      D Offline
      dead_man
      wrote on 31 Aug 2016, 11:38 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 21 Feb 2019, 09:19 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 31 May 2022, 12:05
        1
        • T Taher Lakdawala
          21 Feb 2019, 09:19

          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 31 May 2022, 12:05 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