Results 1 to 2 of 2

Thread: How to use Qt Linguist

  1. #1
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default How to use Qt Linguist

    Hello everyone, I want to let to my application to be be used in 4 languages frensh and english, spanish and deutch. So I've read the Qt documentation of Qt in this way and I've found that QtLinguist can be most helpfull but I'v not understand very much what I msut proceed. Can anyone tel ma in some words and easy procedure how to do this.
    Best Regards.

  2. #2
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: How to use Qt Linguist

    I recently used this to create translations files in different languages. First of all you will have to add name of files or location of files to the .pro file of your project that you want to generate TS files. After adding that you can run following:-

    1. qmake -myproject.pro
    2. lupdate myproject.pro This command will produces the .ts translation files listed in the project file.
    3. lrelease to create qm files.


    Qt Code:
    1. HEADERS main-dlg.h \
    2. options-dlg.h
    3. SOURCES main-dlg.cpp \
    4. options-dlg.cpp
    5.  
    6.  
    7. FORMS search-dlg.ui
    8. TRANSLATIONS search-dlg_ch.ts \ //Creates a file for chinese
    9. search-dlg_fr.ts \ //French
    10. search-dlg_ru.ts \ //Russian
    11. search-dlg_pl.ts //Polish
    To copy to clipboard, switch view to plain text mode 
    Thanks !!
    Last edited by user_mail07; 24th May 2008 at 03:25.

Similar Threads

  1. Linguist and static strings
    By Equilibrium in forum Qt Tools
    Replies: 7
    Last Post: 5th March 2008, 14:08
  2. label Text is not changing using Qt Linguist
    By thomasjoy in forum Qt Tools
    Replies: 59
    Last Post: 8th October 2007, 16:24

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.