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. Translation of QDialogButtonBox::Cancel into Spanish

Translation of QDialogButtonBox::Cancel into Spanish

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 804 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.
  • C Offline
    C Offline
    cccc
    wrote on last edited by
    #1

    Dear all,

    I am using a QDialogButtonBox with a Cancel button and experienced that the translation into spanish is not working. Instead of "Cancelar" I obtain the fallback "Cancel". The translation into languages that are natively supported in the split file format such as German and French is working correctly.

    It does not seem to be a problem with loading the translation files, I made sure that the Spanish translation files qt_es.qm and/or qtbase_es.qm are loaded using QTranslator.

    It also does not seem to be a problem with the translation files being out of date. I looked into downloading updated translation files as described here: https://wiki.qt.io/Qt_Localization . I also looked into running lupdate and lrelease using the make files in the qt installation and loading the newly created files.

    It also does not seem to be a problem that the translation does not exist. It is not fully clear to me which instance from Cancel is the relevant one that is used in the context of the QDialogButtonBox but there does not seem to be a translation missing.

    I experience similar issues with translations into Spanish with other default qt Widgets, QFileDialog,

    So far the only workaround I have is to set the text of the buttons explicitly and introduce my own translation. This of cause is somewhat unsatisfactory.

    Any ideas?

    Thanks

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

      Hi and welcome to devnet,

      Did you also check that Spanish translation files for the QDialogButtonBox were similar to other languages ?

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

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Did you also check that Spanish translation files for the QDialogButtonBox were similar to other languages ?

        C Offline
        C Offline
        cccc
        wrote on last edited by
        #3

        @SGaist Hi SGaist, thanks for your fast response. Yes I did check that the Spanish translation files are similar to German and French.

        The language files shipped with the release version are not "split", that is they do not split into qtbase, etc. To me it seems that in those files the translations are missing and that the files are outdated (we use version 5.6.1).

        I tried with the files that can be downloaded from the webpage of Qt. Those files are split into qbase, etc and appear to be consistent with what one would obtain when carrying out a lupdate, lrelease. In case an lupdate is carried out the number of new translations found is rather small.

        Cheers
        Clemens

        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