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. [SOLVED] If i intent not to have translations at my app should i remove tr()?

[SOLVED] If i intent not to have translations at my app should i remove tr()?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 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.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    I am making a simple application and the texts are few so i have no intention on have translations for my app. Should i remove tr() from my texts or for reasons like you never know if your application become popular and you want to make the app translated to other languages leave it as it is?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Robbin
      wrote on last edited by
      #2

      It is always good to have the tr() exactly for the reasons you mentioned, however it's not really mandatory. Nothing will break if you do not use it. I don't use it in my application, as the target audience is generally english speaking and I have no troubles with the app so far.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vsorokin
        wrote on last edited by
        #3

        My opinion (based on my experience)
        If you making app on non-Latin lang - good way are use tr() with english string constants and add translation for your language to resources and set is as default.

        Again, it's only my opinion.
        Just I'm not like (and afraid :)) sources with no-latin characters.

        --
        Vasiliy

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Franzk
          wrote on last edited by
          #4

          I always use tr() regardless of whether I translate the program or not (usually not). The very simple reason is that if I (or a product owner) should decide the program needs to be translated, it better be done sooner than later. tr() doesn't hurt and will only potentially save work later on.

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

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

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Leon
            wrote on last edited by
            #5

            Ok thanks.. I will stay with tr() :)

            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