Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Translating the string in Project-Info.plist

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24470

    Florian

    Hello,

     

    I want to translate the string in Project-Info.plist.

    These strings are used only on iOS for usage description, printed when the app requires bluetooth for example.

     

    I haven’t found a clear example under QT or FELGO. In addition, I use Felgo Cloud Build for iOS, I haven’t a MAC so i can’t use xcode or Apple softwares.

     

    Thanks for your help.

    Cordially.

    #24474

    Alex
    Felgo Team

    Hi Florian,

    here is a short guide on how to do add localizations for the iOS purpose strings with Qt/Felgo. I’ll also add a link to a  demo project that you can have a look at.

    1. Add a subfolder for each supported language to the “ios” folder, named “<languageidentifier>.lproj”, e.g. “en.lproj” and “de.lproj”
    2. Add a InfoPlist.strings file to each of those subfolders, containing the translated strings and associated keys. You can see the format in the example project or the official iOS docs linked below
    3. Reference those files in your *.pro file using QMAKE_BUNDLE_DATA, see example project lines 53-58.

    Example project: https://felgo.com/support/LocalizedApp.zip

    For reference, the official iOS resources on this topic can be found here: https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html#//apple_ref/doc/uid/TP40009254-102276

    This will not require you to use Xcode and will work with Cloud Builds.

    Best,
    Alex

    #24481

    Florian

    Thanks,

    You saved me lots of time !

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded