iOS localization
-
wrote on 18 Aug 2016, 12:16 last edited by
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?
-
wrote on 31 Aug 2016, 11:38 last edited by
I resolved my problem.
- Remove NSLocationAlwaysUsageDescription from Info.plist
- Create en.lproj/InfoPlist.strings and ru.lproj/InfoPlist.strings
- 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
-
wrote on 21 Feb 2019, 09:19 last edited by
I have also tried above solution but it is not taking value from en.lproj/InfoPlist.strings. Can anybody explain what I am missing?
-
I have also tried above solution but it is not taking value from en.lproj/InfoPlist.strings. Can anybody explain what I am missing?
wrote on 31 May 2022, 12:05 last edited by@Taher-Lakdawala Maybe your file is in the wrong format, check the ";" symbol