Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. How to get the translated text without loading the translator file?
Forum Updated to NodeBB v4.3 + New Features

How to get the translated text without loading the translator file?

Scheduled Pinned Locked Moved Language Bindings
1 Posts 1 Posters 700 Views 1 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.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by
    #1

    Hello all,

    I have an interesting problem to solve.

    In my application, I want to get the translated text without loading the translator. Is that possible? If yes, Please let me know.

    For better explanation:
    I will have translator files (.ts & .qm).
    But I do not want to use QApplication::tr(""); to do the translation.

    I want something like this:
    // translatedText = GetTranslatedText("Hello");
    // Use translatedText

    Appreciate your feedback..

    --Kumar

    1 Reply Last reply
    0

    • Login

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