Results 1 to 7 of 7

Thread: Translate my app (dynamic)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Location
    Tel Aviv, Israel
    Posts
    26
    Thanks
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Translate my app (dynamic)

    I just display the text the the boxes object contain.
    It did worked when i used QT_TR_NOOP in the GeneralStruct object, and later on, in the other object, i use the function tr(), and after "lupdate" i change manually the TS file by changing the context "GeneralStruct" to the object name (where i invoke tr()).
    I don't want to do it manually, and i know there is a way with the QT_TRANSLATE_NOOP and translate() with contexts given as arguments.
    So how do I implement it and make it work? (work = translate the strings)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Translate my app (dynamic)

    The code looks correct. Your manual tweaking but be breaking something.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Dynamic Translate
    By liran ritkop in forum Qt Programming
    Replies: 14
    Last Post: 30th March 2011, 12:22
  2. Translate help framework's gui
    By yagabey in forum Qt Programming
    Replies: 0
    Last Post: 14th October 2010, 07:38
  3. translate on fly
    By Noxxik in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2009, 14:21
  4. QGraphicsView::translate
    By chaoticbob in forum Qt Programming
    Replies: 4
    Last Post: 30th November 2008, 10:30
  5. QGraphicsView::translate
    By peace_comp in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2008, 10:59

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.