Important: Please read the Qt Code of Conduct -

iOS localization

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

  • 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
        TRANSLATE_en.files = $$PWD/en.lproj/InfoPlist.strings
        TRANSLATE_en.path = en.lproj

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

Log in to reply