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] Problem with tr() tag
Forum Updated to NodeBB v4.3 + New Features

[solved] Problem with tr() tag

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 2.7k 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.
  • T Offline
    T Offline
    ThaRez
    wrote on last edited by
    #1

    Hello
    I'm trying to implement language support for my software using QtLiguist but everything seems to be working fine, except for the fact that there's one tr tag that it won't translate. It's recognized, and I've translated it in qtlinguist, but when running the software it still appears in english. The tag is as follows:

    tr(" Begin by reading \n\rthe barcode from your \n\rID card.")

    Is it possible that the blank space in the beginning messes things up, or that the line breaks are to blame? If so how can I bypass this, without editing the formatting?
    Thanks
    Richard

    1 Reply Last reply
    0
    • T Offline
      T Offline
      ThaRez
      wrote on last edited by
      #2

      I just notices that if I remove the \r and only leave the \n it will translate the phrases. The issue remaining is that if my translation includes \n, these will be printed out in stead of a line break. How can I defines line breaks at certain places in the translation?
      -Richard

      1 Reply Last reply
      0
      • T Offline
        T Offline
        ThaRez
        wrote on last edited by
        #3

        ...too easy. "Hit return..." :P

        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