Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What to do when Qt Linguist give warning ?
Forum Updated to NodeBB v4.3 + New Features

What to do when Qt Linguist give warning ?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 287 Views
  • 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    When i am writing turkish translation at that time i am getting below warning :

    Translation does not refer to the same place markers as in the source text.

    What is reason behind that ? How to resolve it ?

    Screenshot from 2021-07-29 16-11-04.png

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      % followed by a number between 1 and 99 is considered a placeholder for QString::arg(). Here you are not using arg() so feel free to ignore the warning

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      Q JonBJ 2 Replies Last reply
      2
      • VRoninV VRonin

        % followed by a number between 1 and 99 is considered a placeholder for QString::arg(). Here you are not using arg() so feel free to ignore the warning

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @VRonin Thank you.

        1 Reply Last reply
        0
        • VRoninV VRonin

          % followed by a number between 1 and 99 is considered a placeholder for QString::arg(). Here you are not using arg() so feel free to ignore the warning

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @VRonin
          I don't see this documented in QString::arg() or tr(), but is this a case where a double % would mean a literal %? So if the user wants to get rid of the warning:QObject::tr("... after 100%% usage")?

          Q 1 Reply Last reply
          3
          • JonBJ JonB

            @VRonin
            I don't see this documented in QString::arg() or tr(), but is this a case where a double % would mean a literal %? So if the user wants to get rid of the warning:QObject::tr("... after 100%% usage")?

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by
            #5

            @JonB Yes by writing %%100 in translation removed warning

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved