Results 1 to 3 of 3

Thread: Problem with dynamic translation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    849
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6
    Thanked 163 Times in 151 Posts

    Default Re: Problem with dynamic translation

    QT_TR_NOOP is only a marker for the linguist tools. If your string shows up in linguist, that part was ok.
    If english translations work, and others do not, you should check if the translator for the other language was really loaded successfully.

  2. #2
    Join Date
    Jul 2009
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with dynamic translation

    Thanks for your reply but the load is successful because the other strings are translated, only the one passing through QT_TR_NOOP and later tr() remain in English.
    It is not English translation works and other don't, but the soft is made in English, and there is no problem with english messages, but when i want to translate it to another langage there is a problem.

    But the problem has just been solved thanks to a friend.
    I have to make my class inherit from QOBJECT, use the Q_OBJECT macro, and do not use QObject::tr() but tr() to be in the right context.

Similar Threads

  1. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 09:47
  2. problem with paint and erase in frame
    By M.A.M in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 21:17
  3. Dynamic number of QLabel
    By jd in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2008, 18:09
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36
  5. Runtime dynamic linking + Qt4 problem
    By _Ramirez_ in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2006, 15:28

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
  •  
Qt is a trademark of The Qt Company.