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)