diff options
author | Robert Loehning <robert.loehning@qt.io> | 2019-01-30 13:47:44 +0100 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2019-03-28 12:41:10 +0000 |
commit | dea5f5524414e743e098151382e4d00a5b924bd1 (patch) | |
tree | 0335a3f262463201c67bbae27d76d151cc2613c3 | |
parent | 133bd37a7ee08ebf997811981b3e533f1840ead2 (diff) | |
download | qttools-dea5f5524414e743e098151382e4d00a5b924bd1.tar.gz |
linguist: Don't translate HTML-tags
Change-Id: Ifaaa316c5ed0273790e9957d04f0c36c08803eb8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r-- | src/linguist/linguist/mainwindow.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp index e93bf5610..f443d25ea 100644 --- a/src/linguist/linguist/mainwindow.cpp +++ b/src/linguist/linguist/mainwindow.cpp @@ -1357,11 +1357,13 @@ void MainWindow::about() QString version = tr("Version %1"); version = version.arg(QLatin1String(QT_VERSION_STR)); - box.setText(tr("<center><img src=\":/images/icons/linguist-128-32.png\"/></img><p>%1</p></center>" - "<p>Qt Linguist is a tool for adding translations to Qt " - "applications.</p>" - "<p>Copyright (C) %2 The Qt Company Ltd." - ).arg(version, QStringLiteral("2019"))); + const QString description + = tr("Qt Linguist is a tool for adding translations to Qt applications."); + const QString copyright + = tr("Copyright (C) %1 The Qt Company Ltd.").arg(QStringLiteral("2019")); + box.setText(QStringLiteral("<center><img src=\":/images/icons/linguist-128-32.png\"/></img><p>%1</p></center>" + "<p>%2</p>" + "<p>%3</p>").arg(version, description, copyright)); box.setWindowTitle(QApplication::translate("AboutDialog", "Qt Linguist")); box.setIcon(QMessageBox::NoIcon); |