maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QDialog Done Button cannot be translated (https://talk.maemo.org/showthread.php?t=82937)

hschmitt 2012-03-09 16:44

QDialog Done Button cannot be translated
 
1 Attachment(s)
Hi,

I created a QT homescreen widget for maemo 5.

The settings dialog (QDialog) has a "Done" button which replaces the okay button. This information is here:
http://doc.qt.nokia.com/qt-maemo/pla...i-style-guides

In QT Code the Done text is marked as translatable:
http://qt.gitorious.org/+qt-develope...ox.cpp#line684
I did the following to have my app translatable:
Code:

    QTranslator qtTranslator;
    qtTranslator.load(QLatin1String("qt_") + QLocale::system().name(),
            QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(&qtTranslator);

    QTranslator pcwTranslator;
    pcwTranslator.load("profilechangerwidget_" + QLocale::system().name(), "/opt/profilechangerwidget");
    app.installTranslator(&pcwTranslator);

But when run my app and open the settings dialog. everything is translated to german, except for the done button.
See the attached screenshot

hschmitt 2012-03-23 11:04

Re: QDialog Done Button cannot be translated
 
I found that it is actually a missing translation in QT.
I filed a bug:
https://bugreports.qt-project.org/browse/QTBUG-24942
Please Vote!


All times are GMT. The time now is 15:12.

vBulletin® Version 3.8.8