Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8798

second call to QTranslator::load overshadow the previous call i.e. remove previous loaded translation for same language

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.6.2
    • None
    • linux, qt 4.6.2

    Description

      when i attempt to provide translation for QDialogButtonBox, i follow the only documentation i have found, i.e. http://qt.nokia.com/developer/faqs/705 and http://qt.nokia.com/developer/faqs/faq.2008-05-06.6265952148

      so i attempt to call twice QTranslator::load. but the second call seems to remove any already loaded translation.

      If you attempt to run the modifed arrowpad example i provide, you will get translation either for the arrows or the QDialogButtonBox but not for the 2 at the same time.
      I have included the qt_fr.qm one find in QTDIR/translations. As there is no such qt_nl.qm do not attempt to run arrowpad example in other locale than french to see the bug.

      • Try LANG=fr ./arrowpad
      • Try to switch the 2 calls of QTranslator::load in main.cpp to see the effect this will have.

      Also documentation on how to translate widget providing standardbutton would be very welcome in Qt doc. (unless i haven't look hard enough for it)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            zebul666 zebulon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes