Results 1 to 3 of 3

Thread: How to put different languages in a software

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default How to put different languages in a software

    Hello!

    I'm having a doubt about how to create a software with the possibility of being installed and showed in different languages. So here is the details:

    normally when we get a more professional software (e.g. linux), in the sense that is not something just private, we may want the software to be installed by different people in their own national languages. So for example, if my software is being used by a german, it would be nice if it presents the possibility of showing its contents in German, while if my software is being seen by a Brazilian, he would like to see it in portuguese.

    Now normally this language functionality is solved during the process of installation, when the user decides in which language the software should appear.

    In order to do that, I imagined the following algoritm: there should be as much as txt files for the pretended languages (let us say, german and english, so two txt files), each of them with the names of buttons and so forth in the same order. So when the software is going to be installed, it asks in which language it should be shown, and when the user chooses and press "OK", a code in a different txt says the name of the language chosen. So the next time the software is shown, it first reads the name of the language and than it opens the correspondent txt and pass all the names to software, so the software is run in the chosen language.


    The problem is that in this way, the software would probably take some considerable extra time to be initialized. While the idea works, its not very efficient.

    So I would like to know: does somebody knows a better way to do this language stuff? If yes, please, tell me! =]


    Thanks!

    Momergil

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,688
    Thanks
    13
    Thanked 1,598 Times in 1,526 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to put different languages in a software

    Internationalization with Qt

    You should have a general scan of all the features in Qt... they are in the manual. You will save yourself quite a bit of typing.

  3. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to put different languages in a software

    Quote Originally Posted by ChrisW67 View Post
    Internationalization with Qt

    You should have a general scan of all the features in Qt... they are in the manual. You will save yourself quite a bit of typing.
    Hello ChristW67,

    First, thanks for the answer.

    Second, sorry for not reading the manual, but I'm not sure if I have enough time always to read manuals


    Thanks, anyway!


    Momergil

Similar Threads

  1. Replies: 2
    Last Post: 25th February 2011, 20:10
  2. installed languages
    By bhavyasg in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2009, 21:17
  3. how do different programming languages work together
    By babu198649 in forum General Programming
    Replies: 1
    Last Post: 22nd March 2008, 08:55
  4. Programming client-server with socket in multi-languages
    By philiptine in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2007, 08:35
  5. FONTS According to languages (Internationalization)
    By Gaurav K SIngh in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th July 2007, 08:10

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.