Results 1 to 5 of 5

Thread: some doubts about translation

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

    Default some doubts about translation

    Hi to all,
    I'm following the documentation and trying to implement translation in my qt application.
    I understood that I need to generate *qm files that will be used by the application to translate the strings that are wrapped by the tr() macro.
    In my case in the source code all strings are written in english and I would give to the user the possibility to change the language from english->spanish and vice versa. So I added the following entries to my pro file:

    TRANSLATION = ecpstudio_es.ts
    Then I called
    lupdate ECP_Studio.pro
    and it created the ts file.
    Then I loaded the ecpstudio_es.ts from linguist and I translated every english entry in spanish. Then I called release and it generated the corresponding qm file. So now I should be able to change the language from english to spanish.
    My doubt is how can I do the opposite? Once I changed the language to spanish how can I came back to english?

    Regards
    Franco Amato

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

    Default Re: some doubts about translation

    Not so many replies please
    Franco Amato

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

    Default Re: some doubts about translation

    Remove the spanish translator and optionally install a translator with english "translations" (an empty qm file)
    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.


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

    Default Re: some doubts about translation

    Quote Originally Posted by wysota View Post
    Remove the spanish translator and optionally install a translator with english "translations" (an empty qm file)
    I didn't understand you sorry.
    Can you be more clear?

    Regards
    Franco Amato

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

    Default Re: some doubts about translation

    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. Doubts about STL libraries
    By tonnot in forum General Discussion
    Replies: 2
    Last Post: 22nd September 2010, 11:34
  2. Doubts about QT Architechture
    By sudheer168 in forum Qt Programming
    Replies: 5
    Last Post: 28th July 2010, 08:53
  3. Yet another bunch of doubts!
    By Nishant in forum Newbie
    Replies: 2
    Last Post: 23rd December 2009, 15:49
  4. doubts regarding QT
    By sudheer168 in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2009, 09:02
  5. some doubts qtablewidget
    By mmm286 in forum Qt Programming
    Replies: 1
    Last Post: 2nd August 2009, 20: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
  •  
Qt is a trademark of The Qt Company.