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?
Forum Update on Monday, May 27th 2025

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 7 Apr 2016, 14:22 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Apr 2016, 22:13 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

      1/2

      7 Apr 2016, 14:22

      • Login

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