Results 1 to 8 of 8

Thread: Qt Linguist freezes opening a *.ts file

  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Linguist freezes opening a *.ts file

    Good morning,
    we are doing a project using Qt5 and CMake named NEWSEGScanner and we are developing using Qt Creator.
    At the moment I am doing the translation part, so I added the following macros in CMakeLists.txt:

    Qt Code:
    1. [...]
    2. SET(
    3. NEWSEGSCANNER_TRANSLATIONS
    4. ${CMAKE_CURRENT_SOURCE_DIR}/Lang/es_PE.ts
    5. )
    6. [...]
    7. QT5_WRAP_UI(NEWSEGSCANNER_UI_SRCS ${NEWSEGSCANNER_UIS})
    8. QT5_ADD_RESOURCES(NEWSEGSCANNER_RC_SRCS ${NEWSEGSCANNER_RCS})
    9. QT5_CREATE_TRANSLATION(QM_FILES ${NEWSEGSCANNER_SRCS} ${NEWSEGSCANNER_UIS} ${NEWSEGSCANNER_TRANSLATIONS})
    10. QT5_ADD_TRANSLATION(QM_FILES ${NEWSEGSCANNER_TRANSLATIONS})
    11. [...]
    12. ADD_EXECUTABLE(
    13. ${NEWSEGSCANNER_TARGET} WIN32
    14. ${NEWSEGSCANNER_SRCS}
    15. ${NEWSEGSCANNER_UI_SRCS}
    16. ${NEWSEGSCANNER_RC_SRCS}
    17. ${QM_FILES}
    18. )
    19. [...]
    To copy to clipboard, switch view to plain text mode 

    This generates and update the es_PE.ts file that I would edit using the tool Qt Linguistic to add the translations.

    When I try to open it, the tool always freezes and I don't understand why. I am using Qt Linguistic v. 5.7.0

    The ts file can be downloaded from here https://dl.dropboxusercontent.com/u/26692214/es_PE.ts

    Thanx in advance for the help
    Franco Amato

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    Opens fine for me with Linguist from 5.5.1. 5..6.1, 5.7.0 and a manually built Qt from 5.8 branch.

    All on Linux (Debian)

    Cheers,
    _

  3. #3
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    So seems the problem is the Windows' version (v 5.7.0 in my case)
    I also opened it with virtual Linux version (v. 5.5.1)
    Is there any solution ?

    Regards
    Franco Amato

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    If you manually run lupdate on one of the cpp or .ui files that have translations, can you open that ts file?

    Cheers,
    _

  5. #5
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    I just tried it and yes I can open it

    So seems that the CMake macro does not generate a correct ts file?
    Franco Amato

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    It is probably also just calling lupdate and the file can be opened on Linux as we both checked.

    Have you tried a different version of linguist?

    Cheers,
    _

  7. #7
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    Yes I tried right now with the 5.5.1 version and it opens...so seems a bug of the 5.7.0 version?
    Franco Amato

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Linguist freezes opening a *.ts file

    Quote Originally Posted by franco.amato View Post
    Yes I tried right now with the 5.5.1 version and it opens...so seems a bug of the 5.7.0 version?
    It would seem so.

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 20th April 2015, 22:51
  2. Run application by opening file
    By rivci in forum Qt Programming
    Replies: 3
    Last Post: 2nd March 2011, 07:54
  3. Problem in opening a file
    By Abc in forum Qt Programming
    Replies: 2
    Last Post: 12th August 2008, 12:40
  4. Opening file
    By Salazaar in forum Newbie
    Replies: 5
    Last Post: 5th June 2007, 18:15
  5. How to rename a file after opening ?
    By npc in forum Newbie
    Replies: 2
    Last Post: 1st June 2006, 13:36

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.