Results 1 to 7 of 7

Thread: how to convert the whole project into Unicode

  1. #1
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question how to convert the whole project into Unicode

    Hi I'm working in QT4.2 on Mac OS X (Tiger)
    I had created a project using QT4
    now i want to give it international languages support
    so what steps or what have to do..

    i 'll be very thankful to you if ypu people suggest something to complete it...

  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: how to convert the whole project into Unicode


  3. #3
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question Re: how to convert the whole project into Unicode

    can u plz tell what is the problem in this code why it's not converting it

    QTranslator translator;
    translator.load("hello_la");
    app.installTranslator(&translator);

    QPushButton hello(QPushButton::tr("Hello world!"));
    hello.resize(100, 30);

    hello.show();

    in .pro i had add the

    TRANSLATIONS = hello_la.ts

    there is even no error but its not converting pushbutton written Hello world! to Pushbutton written in Latin.
    i had tried this example from qt linguist example

    thanks in advance

  4. #4
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question Re: how to convert the whole project into Unicode

    guys i got the problem
    Translator is not loading another file
    can anyone now tell me the reason

    as now i m trying hello world program lke this
    QTranslator translator;
    bool flag=translator.load("hello_de");
    if(flag)
    QMessageBox::information(0,"!!","hello");
    else
    QMessageBox::information(0,"!!","bye");

    QPushButton hello(QPushButton::tr("Hello world!"));
    hello.resize(100, 30);


    output gives firstly
    "bye" message then same hello world not in deutsch language or any other language


    can anyone resolve or tell the solution

    thanks in advance

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to convert the whole project into Unicode

    What is the exact name of your .qm file and where it is located?

  6. #6
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question Re: how to convert the whole project into Unicode

    thanks for reply
    actully i had download it from opensource and as per instructions i had installed it

    so can you help me in this situation

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to convert the whole project into Unicode

    Do you have a .qm file at all?

Similar Threads

  1. Qt4 open src mingw from a PC to another
    By nvictor in forum Installation and Deployment
    Replies: 11
    Last Post: 1st May 2007, 17:41
  2. Replies: 3
    Last Post: 18th April 2007, 15:31
  3. how do i use a same project in multiple systems ?
    By nhatkhang in forum KDE Forum
    Replies: 6
    Last Post: 21st December 2006, 16:32
  4. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43
  5. Replies: 2
    Last Post: 11th July 2006, 14:19

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.