[SOLVED]QML internalization per file ??



  • Hello,

    I read some documentation about qml internalization. It seems I have to provide 1 translation file per qml file...
    So my C++ application contain many qml file ( qmlCount) . And I have to internalizate it for many language... ( lngCount)

    Does it mean I have to create : qmlCount * lnCount files ??
    If I have 20 qml file, and I need to translate my application to 10 language... The translation files will be 200 !!

    So my question is : How can I translate my qml application to have 1 translation file per application! Like the translation C++ system!

    It's seems it will be more easy to use an sqlite file! no ?



  • Ok I found!

    lupdate file1.qml file2.qml -ts translation.ts!



  • Since you found the solution, please edit your initial post of this thread so that it reads:

    [SOLVED] QML internalization per file ??

    to indicate that the issue is closed/solved. :-)



  • Ok ! I had not found the button! Now it's ok



  • [quote author="dridk" date="1311868710"]Ok ! I had not found the button! Now it's ok[/quote]

    Nice! It is an "unofficial" method we use to indicate that the thread addresses a (now) resolved issue! :-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.