Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23575

Wizard templates: trDisplayName not translatable in data fields in Fields page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.11.0
    • All Other Issues
    • None
    • Linux/X11

    Description

      According to https://doc.qt.io/qtcreator/creator-project-wizards-json.html#localizing-wizards all fields starting with "tr" should be inline translatable using this syntax:

       

      "trDisplayName": { "C": "default", "en_US": "english", "de_DE": "deutsch" }
      

       

      However, in a page of type "Fields", using a data field of type LineEdit, this doesn't seem to work.

       

      This example:

       

      {
         "name": "Vendor",
         "trDisplayName": {
           "C": "Vendor name:",
           "en_US": "Vendor name:",
           "de_DE": "Gerätehersteller"
         },
        "Vendor name:",
         "mandatory": true,
         "type": "LineEdit",
         "trIncompleteMessage": "Invalid vendor",
         "data": {
           "trText": "%{ProjectName}",
           "validator": "[a-zA-Z][a-zA-Z0-9]*"
         }
       },
       
      

       

      Will produce a LineEdit with an empty label. Using `trDisplayName` untranslated works fine.

       

      Attachments

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

        Activity

          People

            con Eike Ziller
            mzanetti2 Michael Zanetti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes