Qt World Summit: Register Today!

Translation with mobile application

  • Hi,

    I have developped an application to Desktop and Mobil platform (Android). In my application I need to use translation with QTranslator. So far in my desktop applications, I released my executable with my translation file (i.e traduc_fr.qm) beacause
    I can not operate the translation file with qrc.

    How can I do to android version of my application ?

    Thank you in advance.


  • Lifetime Qt Champion


    Why can't you operate on qrc files ?

  • Hi,

    I am very sorry. In my cpp I declared my translation file with :

    translator.load("qrc:/traduc_fr.qm", ".")

    but I noticed that the right solution is :

    translator.load(":/traduc_fr.qm", ".")


    Sorry for the inconvenience and thank you for your answer

  • Lifetime Qt Champion

    Don't worry, that kind of things happens frequently ;)

    You're welcome !

    Since you have it working now, please mark the thread as solved using the "Topic Tool" button so other forum users may know a solution has been found :)