Results 1 to 6 of 6

Thread: [solved]Translate ui forms created with Qt Designer ?

  1. #1
    Join Date
    May 2009
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question [solved]Translate ui forms created with Qt Designer ?

    Hello;
    Please, how to translate forms (.ui) created with Qt Designer ??

    Last edited by QAmazigh; 7th May 2009 at 14:30.

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

    Default Re: Translate ui forms created with Qt Designer ?

    Internationalization - See the section "Produce translations".
    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.


  3. #3
    Join Date
    May 2009
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Translate ui forms created with Qt Designer ?

    thanks for your response ;
    but i don't see how can we translate forms !
    we can't edit the source code to intrduce tr() function


    ?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Translate ui forms created with Qt Designer ?

    Quote Originally Posted by QAmazigh View Post
    but i don't see how can we translate forms !
    we can't edit the source code to intrduce tr() function
    Have you ever look at the *.h files which are generated out of your ui files? Take a look and see that your strings inside the tr() function.

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

    Default Re: Translate ui forms created with Qt Designer ?

    Quote Originally Posted by QAmazigh View Post
    thanks for your response ;
    but i don't see how can we translate forms !
    we can't edit the source code to intrduce tr() function
    You don't translate forms, that's not Windows.... translating is done at runtime not during compilation.
    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.


  6. #6
    Join Date
    May 2009
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Translate ui forms created with Qt Designer ?

    thanks everybody
    it's not complicated as i though !

    Good Luck .

Similar Threads

  1. Replies: 2
    Last Post: 4th May 2009, 11:57

Tags for this Thread

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.