Qt_fr.qm, qt_de.qm, qt_es.qm license



  • I'm working on a proprietary application that's using Qt under the LGPL license set to release to customers in the next few months. We've internationalized the application using QtLinguist and QTranslator. I'm a bit confused about the .qm files - like qt_fr.qm, qt_de.qm, qt_es.qm - that are distributed with the QtSDK, though.

    What's in them? Do we need them? Qt will NOT be installed on the customers' machines (windows machines) so we need to distribute the Qt dlls as part of the package. If we need to distribute the .qm files, what license are they under? Can we link them into our executable via a .qrc file?



  • They have translations in them for some of the dialogs and other ui that Qt uses. You can open their corresponding ts file and see which ui elements they provide translations for. From there you can determine if you need them or not. Note, some of the translations are not complete. You can compile them in a qrc file.



  • [quote author="steno" date="1377124122"]They have translations in them for some of the dialogs and other ui that Qt uses. You can open their corresponding ts file and see which ui elements they provide translations for. From there you can determine if you need them or not. [/quote]

    It's hard to tell. Many of the strings in the files seem to be error messages and we certainly don't need our error messages localized (not the ones indications programmer error, at least). Some of the strings, though, seem to be pretty important:

    @
    <context>
    <name>QDialogButtonBox</name>
    <message>
    <source>OK</source>
    <translation>OK</translation>
    </message>
    <message>
    <source>Save</source>
    <translation>Enregistrer</translation>
    </message>
    <message>
    <source>&Save</source>
    <translation>Enregi&strer</translation>
    </message>
    <message>
    <source>Open</source>
    <translation>Ouvrir</translation>
    </message>
    <message>
    <source>Cancel</source>
    <translation>Annuler</translation>
    </message>
    @

    I'm guessing that if I don't load that into a QTranslator, all the QDialogButtonBox's will have their Ok and Cancel buttons in English even when the locale is French or German?

    [quote author="steno" date="1377124122"]
    Note, some of the translations are not complete. You can compile them in a qrc file.[/quote]

    I don't know - this seems pretty scary. Linking the .qm files directly into the executable seems to be one of the generic answers on the web, but if those .qm files are Digia copyrighted, I don't think we can actually include them in our executable without violating the terms of the LGPL?


  • Lifetime Qt Champion

    Hi,

    You could try directly contacting Digia to have a precise answer for that



  • [quote author="tedmiddleton" date="1377125723"]I'm guessing that if I don't load that into a QTranslator, all the QDialogButtonBox's will have their Ok and Cancel buttons in English even when the locale is French or German?
    [/quote]

    That is correct. You either have to provide the translations yourself, or load the QTranslator. Good point on the licensing, I'm not too sure about that. You could just package them in the installer.


Log in to reply
 

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