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. About dialog in french.
Forum Update on Monday, May 27th 2025

About dialog in french.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 438 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I have an about dialog that contains the following license text in English:

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
    IN THE SOFTWARE.
    

    Using Google translation I got this txt for French:

    LE LOGICIEL EST FOURNI « EN L’ÉTAT », SANS GARANTIE D’AUCUNE SORTE, EXPRESSE OU
    IMPLICITE, Y COMPRIS, MAIS SANS S’Y LIMITER, LES GARANTIES DE QUALITÉ MARCHANDE,
    APTITUDE À UN USAGE PARTICULIER ET NON-CONTRE-PRODUIT. EN AUCUN CAS, LE
    LES AUTEURS OU LES DÉTENTEURS DE DROITS D’AUTEUR DOIVENT ÊTRE TENUS RESPONSABLES DE TOUTE RÉCLAMATION, DOMMAGE OU AUTRE
    RESPONSABILITÉ, QUE CE SOIT DANS LE CADRE D’UNE ACTION CONTRACTUELLE, DÉLICTUELLE OU AUTRE, DÉCOULANT
    DE, HORS OU EN RELATION AVEC LE LOGICIEL OU L’UTILISATION OU D’AUTRES TRANSACTIONS
    DANS LE LOGICIEL.
    

    The problem is when rendered in the dialog I get:
    e1dc1264-0b4a-497a-8fd5-26b666288792-image.png

    The font used for the QPlainTextEdit is Courier New, 10. Can anyone help me to fix this so it renders with the correct characters?

    Kind Regards,
    Sy

    jsulmJ 1 Reply Last reply
    0
    • SPlattenS SPlatten

      @jsulm , like this:

          QString strLanguage(Trainer::sstrLanguage()), strLicense(":/licenses");
          if ( strLanguage.compare(Trainer::mscstrDefaultLanguage) != 0 ) {
              strLicense = QString("%1_%2").arg(strLicense).arg(strLanguage);
          }
          QFile licences(strLicense);
          licences.open(QFile::ReadOnly);
          ui->licences->setPlainText(QString::fromLocal8Bit(licences.readAll()));
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @SPlatten said in About dialog in french.:

      fromLocal8Bit

      Why?!

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      SPlattenS 1 Reply Last reply
      1
      • SPlattenS SPlatten

        I have an about dialog that contains the following license text in English:

        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
        IN THE SOFTWARE.
        

        Using Google translation I got this txt for French:

        LE LOGICIEL EST FOURNI « EN L’ÉTAT », SANS GARANTIE D’AUCUNE SORTE, EXPRESSE OU
        IMPLICITE, Y COMPRIS, MAIS SANS S’Y LIMITER, LES GARANTIES DE QUALITÉ MARCHANDE,
        APTITUDE À UN USAGE PARTICULIER ET NON-CONTRE-PRODUIT. EN AUCUN CAS, LE
        LES AUTEURS OU LES DÉTENTEURS DE DROITS D’AUTEUR DOIVENT ÊTRE TENUS RESPONSABLES DE TOUTE RÉCLAMATION, DOMMAGE OU AUTRE
        RESPONSABILITÉ, QUE CE SOIT DANS LE CADRE D’UNE ACTION CONTRACTUELLE, DÉLICTUELLE OU AUTRE, DÉCOULANT
        DE, HORS OU EN RELATION AVEC LE LOGICIEL OU L’UTILISATION OU D’AUTRES TRANSACTIONS
        DANS LE LOGICIEL.
        

        The problem is when rendered in the dialog I get:
        e1dc1264-0b4a-497a-8fd5-26b666288792-image.png

        The font used for the QPlainTextEdit is Courier New, 10. Can anyone help me to fix this so it renders with the correct characters?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @SPlatten How do you add this text to the dialog?
        If this text is a string in your code: does your source code file use UTF-8 encoding?
        If you read the text from a file, then how exactly?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        SPlattenS 1 Reply Last reply
        0
        • jsulmJ jsulm

          @SPlatten How do you add this text to the dialog?
          If this text is a string in your code: does your source code file use UTF-8 encoding?
          If you read the text from a file, then how exactly?

          SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by
          #3

          @jsulm , like this:

              QString strLanguage(Trainer::sstrLanguage()), strLicense(":/licenses");
              if ( strLanguage.compare(Trainer::mscstrDefaultLanguage) != 0 ) {
                  strLicense = QString("%1_%2").arg(strLicense).arg(strLanguage);
              }
              QFile licences(strLicense);
              licences.open(QFile::ReadOnly);
              ui->licences->setPlainText(QString::fromLocal8Bit(licences.readAll()));
          

          Kind Regards,
          Sy

          jsulmJ 1 Reply Last reply
          0
          • SPlattenS SPlatten

            @jsulm , like this:

                QString strLanguage(Trainer::sstrLanguage()), strLicense(":/licenses");
                if ( strLanguage.compare(Trainer::mscstrDefaultLanguage) != 0 ) {
                    strLicense = QString("%1_%2").arg(strLicense).arg(strLanguage);
                }
                QFile licences(strLicense);
                licences.open(QFile::ReadOnly);
                ui->licences->setPlainText(QString::fromLocal8Bit(licences.readAll()));
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @SPlatten said in About dialog in french.:

            fromLocal8Bit

            Why?!

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            SPlattenS 1 Reply Last reply
            1
            • jsulmJ jsulm

              @SPlatten said in About dialog in french.:

              fromLocal8Bit

              Why?!

              SPlattenS Offline
              SPlattenS Offline
              SPlatten
              wrote on last edited by SPlatten
              #5

              @jsulm , sorry, no idea, however, having removed that, now its fine, thank you.

              Kind Regards,
              Sy

              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