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. Translations from SQL DB string?

Translations from SQL DB string?

Scheduled Pinned Locked Moved Unsolved General and Desktop
sqli18nqmltranslation
2 Posts 2 Posters 1.2k 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.
  • E Offline
    E Offline
    EStudley
    wrote on last edited by
    #1

    Hey everyone,

    I'm working on an application with a variety of warning messages and errors that will appear on the front-end. I now have so many of these errors that I want to add the information strings about them (Title, message, actions to fix the error) to an SQL database table.

    How can I ensure that these strings will still be translatable by the application? Possibly by translating the literal strings on the C++ side at run time and then put them in the DB? Or is there a better way?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should rather store the original error message in the database and to the translation when showing the database content.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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