Results 1 to 4 of 4

Thread: Extracting QT translations from sources

  1. #1
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Extracting QT translations from sources

    Hi all,

    up to a few versions ago of the Qt sources there was a file called qt_untranslated.ts that I used to translate the latest Qt version in Italian.

    In the 4.5.x and above, this file doesn't exists.

    How can I generate this file (or qt_it.ts) from sources?

    Thanks.
    A camel can go 14 days without drink,
    I can't!!!

  2. #2
    Join Date
    Nov 2007
    Posts
    89
    Thanked 21 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Extracting QT translations from sources

    I, too, had the very same problem (even same language). Try adding "it" to QT_TS variabile in %QTSOURCEDIR%/translations/translations.pri, then run make ts-qt from %QTSOURCEDIR% (maybe you will have to run qmake before). If you put your older qt_it.ts in that directory it will be updated.
    You can also look at others targets inside the file for building translations for other components (make ts-designer, make ts-assistant, ...). Anyway, I never managed to translate designer.

  3. The following 2 users say thank you to bender86 for this useful post:

    billatthemovies (26th April 2010), mcosta (12th February 2010)

  4. #3
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extracting QT translations from sources

    hello,

    I had some problems in the compilation of tools with MinGW but now is OK.

    thank you
    A camel can go 14 days without drink,
    I can't!!!

  5. #4
    Join Date
    Mar 2008
    Location
    Massachusetts, USA
    Posts
    1
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Extracting QT translations from sources

    This is one of the few times where searching for an answer to one of Qt's quirks actually paid off. I did not use this solution as written because I would have had to run qmake but I did see the command string used to create/update the existing .ts files. I copied it to the clipboard, modified it with the names of my existing qt_*.xlf files and executed it. My older XLIFF files were updated.

    We do not use .ts files but .xlf files. Qt supports XLIFF and a variant of this solution worked with them.

Similar Threads

  1. Translations in Qt
    By QbelcorT in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2009, 01:44
  2. Translations Using Linguist
    By QbelcorT in forum Qt Tools
    Replies: 0
    Last Post: 26th March 2009, 15:23
  3. translations
    By anafor2004 in forum Newbie
    Replies: 5
    Last Post: 1st February 2008, 09:26
  4. Contributing translations
    By JaSP in forum General Discussion
    Replies: 2
    Last Post: 30th December 2007, 11:25
  5. namespaces and translations
    By gri in forum Qt Programming
    Replies: 3
    Last Post: 30th March 2007, 09:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.