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. QT_TRANSLATE_NOOP
Forum Updated to NodeBB v4.3 + New Features

QT_TRANSLATE_NOOP

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 468 Views 2 Watching
  • 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.
  • D Offline
    D Offline
    dsba
    wrote on last edited by
    #1

    Hi,
    I have moved QT_TRANSLATE_NOOP in a separate file called strings.h where all the strings are marked for translation here.
    This works fine as far as it's normal hard coded string ex: QT_TRANSLATE_NOOP("Main","Hello World!")
    Issue occurs when argument is passed ex: QT_TRANSLATE_NOOP("Main","Hello World %s ...")

    Can anyone please help me?
    Thanks in Advance!

    1 Reply Last reply
    0
    • Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @dsba please be aware that Qt translation schema uses the original string as key for looking up translations, so in your case adding the placeholder (%1) creates a new, different original string...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      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