Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How can I left empty a translation in Qt Linguist?
Forum Updated to NodeBB v4.3 + New Features

How can I left empty a translation in Qt Linguist?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 1.0k 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.
  • C Offline
    C Offline
    Chantal
    wrote on last edited by
    #1

    Re: How can I input unicode characters in Qt Linguist?

    Hi! I am creating a custom keyboard in QML and I was wondering how can I left empty the translation of a letter.

    For example, in the spanish keyboard I have a button with the following text:
    qsTr("ñ")
    and I want it to be empty in the english translation. This means that the button text should be "".

    I have tried to use the NULL unicode character (\u0000) but I don't know how to put it in the Qt Linguist.

    How can I do it?

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Does it not work when you simply leave the field empty and click to accept the translation? If not, you could perhaps mark that translation as done directly in .ts file (it's a simple XML syntax).

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chantal
        wrote on last edited by
        #3

        If I leave the field empty and click to accept, the translation remains as untranslated and it prints the default text.
        In my previous example, if I leave its field empty I get "ñ".

        Regarding the option of changing manually the .ts file, I would prefer not doing so if there's an easier and faster way. If not, I'll do it.

        Thanks sierdzio!

        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