Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130609

Zero width space in translations

    XMLWordPrintable

Details

    • All
    • c3949ffae (dev)

    Description

      We would like to use `​& # x 200b;` in source and translation (as a hint for line breaks) but ran into some problems:

      • & in source is replaced by qsTr with `& amp;` in the translation file. Escaping does not work. So we can not use `​& # x 200b;` there. Using the unicode character is not a good way, because it is hard to develop because it is not visible.
      • Using `​& # x 200b;` in the translation works in a first step. But (re)generating the translation will replace it with the unicode character so it is no longer visible. That is a problem in the development.
      • Even if we add a post processing to replace the unicode character with `​& # x 200b;` tools like the Qt Linguist will not show it because it is interpreted there.

      Any suggestions what we can do?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              masoud.jami Masoud Jami
              larss Lars Schmertmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes