QT += sql
TEMPLATE = subdirs
SUBDIRS = trunk
+TRANSLATIONS += dict_pl.ts
BINDIR = $$PREFIX/bin
LIBDIR = $$PREFIX/lib/$${MDICT_APPNAME}
if(_save) {
#else
if(_changed &&
- QMessageBox::question(this, "Save", "Do you want to save changes?",
+ QMessageBox::question(this, tr("Save"), tr("Do you want to save changes?"),
QMessageBox::Save, QMessageBox::Cancel) == QMessageBox::Save) {
#endif
QList<CommonDictInterface*> checkedDicts;
}
void DictManagerWidget::removeButtonClicked() {
- if(QMessageBox::question(this, "Remove dictionary",
- "Do you want to remove selected dictionary?",
+ if(QMessageBox::question(this, tr("Remove dictionary"),
+ tr("Do you want to remove selected dictionary?"),
QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok) {
QList<QListWidgetItem*> selected = dictListWidget->selectedItems();
if(selected.count() > 0) {
text,
QMaemo5InformationBox::DefaultTimeout);
#else
- QMessageBox::information(this, "Information", text);
+ QMessageBox::information(this, tr("Information"), text);
#endif
break;
case Notify::Warning:
#ifndef Q_WS_MAEMO_5
- QMessageBox::warning(this, "Warning", text);
+ QMessageBox::warning(this, tr("Warning"), text);
break;
#endif
text,
QMaemo5InformationBox::NoTimeout);
#else
- QMessageBox::critical(this, "Error", text);
+ QMessageBox::critical(this, tr("Error"), text);
#endif
break;
}
#else
par = this;
#endif
- if(QMessageBox::question(par, "Delete all bookmarks",
- "Do you want to delete all bookmarks? (This action cannot be revoked)",
+ if(QMessageBox::question(par, tr("Delete all bookmarks"),
+ tr("Do you want to delete all bookmarks? (This action cannot be revoked)"),
QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok) {
backbone->removeAllBookmarks();
if(searchString.size())
qRegisterMetaType<QList<Translation*> >("QList<Translation*>");
qRegisterMetaType<Notify>("Notify");
qRegisterMetaType<Notify::NotifyType>("Notify::NotifyType");
+
+ QTranslator translator;
+ translator.load("dict_pl");
+ a.installTranslator(&translator);
+
Backbone backbone;
MainWindow w(&backbone);
w.show();
QIcon::fromTheme("object-flip-vertical"),tr(""));
#endif
- langFromLabel = new QLabel("From:");
- langToLabel = new QLabel(" To: ");
+ langFromLabel = new QLabel(tr("From:"));
+ langToLabel = new QLabel(tr(" To: "));
connectInfoLabel = new QLabel(tr("Google plugin make use of internet "
"conection, so it may cost You."));
setLayout(verticalLayout);
infoLabel = new QLabel;
- infoLabel->setText(tr("Plugin:GoogleTranslator \n")+
+ infoLabel->setText(tr("Plugin: GoogleTranslator \n")+
tr("From: ") + _langFrom + "\n" +
tr("To: ") + _langTo);
verticalLayout->addWidget(infoLabel);