Qt assistant translation files



  • Hi all

    I have a question about qt-assistant:

    where does it search for it OWN translation files (assistant_xx.ts, assistant_xx.qm) ?

    on a machine where I have installed the sdk, it seems that qt-assistant search them into the C:\QtSDK\Desktop\Qt\4.8.0\mingw\translations folder...

    but what if I haven't installed the sdk ?

    I ask this because my app is launching the assistant as an external process to show it's on-line docs...
    I was expecting that it will search for assistant_xx.ts and assistant_xx.qm on the application dir as a first try (like for DLL) but at the moment it does not work for me...

    thanks a lot

          Giampaolo


  • It's in Qt's installation directory, e.g. C:/Qt/4.8.0/translations.

    Unfortunately, assistant always loads the translations from the Qt library installation directory (found by QLibraryInfo::location(QLibraryInfo::TranslationsPath)). That's hard coded in the assistant sources (setupTranslations() in tools/assistant/tools/assistant/main.cpp.



  • Hello Volker

    I'm still working on this... but it seems that you can override this behaviour with a qt.conf file

    thanks
    
          Giampaolo


  • Ah, yes. I always forget that those exist too :-)


Log in to reply
 

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