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

lupdate -tr-function-alias works for tr+= but not translate+=

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.4.2
    • Tools: Linguist
    • None
    • Windows

    Description

      I've made a #define Q_TR(text) that calls QCoreApplication::translate(FIXED_CONTEXT, text)

      I called `lupdate file.cpp -ts trans.fr.ts -tr-function-alias tr+=Q_TR`

      and it works, although complaining that my class lacks Q_OBJECT.

      But when I call `lupdate file.cpp -ts trans.fr.ts -tr-function-alias translate+=Q_TR` it does not see the source texts at all.

       

      eg:

      #define Q_TR_CONTEXT "something"

      #define Q_TR_C(context,mesg) QCoreApplication::translate(context,mesg)

      #define Q_TR(mesg) Q_TR_C(Q_TR_CONTEXT,mesg)

      ...

      display_text( Q_TR("press me") );

       

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            elegant_dice Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes