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

lupdate breaks wth uniform initialization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.3.1
    • Fix Version/s: None
    • Component/s: Translations (I10n)
    • Labels:
      None

      Description

      If a class calls its base constructor or initializes any member using braced uniform initialization syntax (eg. Base{}), lupdate places all strings in the parent namespace instead of the class. Example:

      namespace N {
      class A
      : public B
      {
      ...
      };
      }

      ...

      A::A()
      : B{}
      {
      const auto s = tr("text");
      }

      "text" will be put in "N" context instead of "N::A".

        Attachments

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

          Activity

            People

            Assignee:
            buddenha Oswald Buddenhagen
            Reporter:
            krojew Kamil Rojewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes