Reply
Thread Tools
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#1
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
Attached Images
 
__________________
Your packages are waiting too long to get tested? HowTo encourage at TMO.
 
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#2
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!
__________________
Your packages are waiting too long to get tested? HowTo encourage at TMO.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:51.