Results 1 to 2 of 2

Thread: Qt5.3 tr() needs to translate QString

  1. #1
    Join Date
    Jun 2007
    Location
    Louisiana
    Posts
    77
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Qt5.3 tr() needs to translate QString

    I have need to translate the contents of a QString variable for display. Currently QApplication::tr() and qApp::tr() require char literal strings.

    Is there a way to use tr() to translate the contents of a QString by converting it to Local8bit or Latin1 or something? So far all efforts do not translate.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt5.3 tr() needs to translate QString

    Have you tested to see if you are actually invoking the translation system by using tr() on a string literal for which you have created a translation?

Similar Threads

  1. Need people to translate my app
    By xtal256 in forum General Discussion
    Replies: 2
    Last Post: 29th April 2013, 23:28
  2. Replies: 2
    Last Post: 11th August 2011, 15:42
  3. Translate my app (dynamic)
    By liran ritkop in forum Qt Programming
    Replies: 6
    Last Post: 31st March 2011, 10:25
  4. translate on fly
    By Noxxik in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2009, 14:21
  5. Replies: 4
    Last Post: 31st January 2008, 20:44

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.