Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with multiple languages
Forum Updated to NodeBB v4.3 + New Features

Problem with multiple languages

Scheduled Pinned Locked Moved General and Desktop
6 Posts 5 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hgg0795
    wrote on last edited by
    #1

    my pc is window 7,and, install Qt 4.7. i create a project, the name is "mulitLanguage.pro",Has Been Successfully Compiled. add "TRANSLATIONS += myapp_en.ts myapp_jp.ts myapp_zh.ts" in mulitLanguage.pro . I hope have the three files. But not have, So , use "lupdate.exe" to do it, also not. what have i got to do?

    Splitted from an old thread, gerolf

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If you have some new topic, please don't necropost it to an old topic. Especially, if it is not related to it.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxmotor
        wrote on last edited by
        #3

        Shouldn't the language files be divided by "" ?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          [quote author="maxmotor" date="1320145780"]Shouldn't the language files be divided by "" ?[/quote]

          No.

          The backslash is to mark at the end of the line that it continues on the next line.

          These two are equivalent:

          @
          TRANSLATIONS = myapp_de.ts myapp_en.ts myapp_fr.ts

          TRANSLATIONS = myapp_de.ts
          myapp_en.ts
          myapp_fr.ts
          @

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxmotor
            wrote on last edited by
            #5

            Oh :)

            I guess I should keep to asking questions instead of trying to answer them :)

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mkoskim
              wrote on last edited by
              #6

              lupdate/linguist has worked without problems for me. I have two translations (en, fi):

              [code]
              TRANSLATIONS =
              ../resources/tr/moe_en.ts
              ../resources/tr/moe_fi.ts
              [/code]

              I have added the result files (.qm) to resources, and use them happily. Just a dummy question, but have you tr() calls in your software? I really have no good ideas, as translation has worked without problems for me.

              http://mkoskim.wordpress.com
              http://mkoskim.drivehq.com
              http://mkoskim.deviantart.com

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved