Results 1 to 2 of 2

Thread: Qt translations for chinese appear as junk values

  1. #1
    Join Date
    Aug 2013
    Posts
    25
    Thanks
    7
    Qt products
    Qt5

    Default Qt translations for chinese appear as junk values

    I had generated 3 translation files using lupdate: French,Chinese and Hindi. I used linguist to do the required translations and then Released these translations.

    In my main.cpp I wrote

    Qt Code:
    1. QApplication a(argc,argv);
    2. QTranslator translator;
    3. translator.load("PaintTest_fr.qm");
    4. a.installTranslator(&translator);
    To copy to clipboard, switch view to plain text mode 

    The french translations work fine. But Hindi (PaintText_hi.qm) and Chinese (PaintText_zh.qm) translations appear as junk values.

    System Information: Ubuntu 12.04

    Qt version: 4.8.5

    Am I doing something wrong? Is there any additional details to be specified for Asian languages? Any help is appreciated. Thank you

  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: Qt translations for chinese appear as junk values

    Do you have a proper font that can show these characters? Are you using a proper encoding in your code?
    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. Replies: 7
    Last Post: 11th November 2014, 08:40
  2. Replies: 3
    Last Post: 14th February 2013, 03:30
  3. Translations in Qt
    By QbelcorT in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2009, 01:44
  4. QGraphicsItem leaves junk on screen
    By Gopala Krishna in forum Qt Programming
    Replies: 18
    Last Post: 12th December 2007, 06:23
  5. QSqlQuery always return junk value while for varchar oracle.
    By ranjit2709 in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2007, 05:19

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.