diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-11-30 14:57:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-30 07:47:37 -0800 |
commit | cded8eb198da2a71dcc230b30319c27b2e72c891 (patch) | |
tree | 08ecc317dcf25d88671acd7fb9796d3de547c7a9 /qt-ui/about.cpp | |
parent | 5a1a25a4760463262f52a75cbc0e57340688024b (diff) | |
download | subsurface-cded8eb198da2a71dcc230b30319c27b2e72c891.tar.gz |
Fix string in About dialog for translation
The translatable string in about dialog is truncated at the
VERSION_STRING. Thus it has to be given as argument to the tr function.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/about.cpp')
-rw-r--r-- | qt-ui/about.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/about.cpp b/qt-ui/about.cpp index 29abf6334..132f496de 100644 --- a/qt-ui/about.cpp +++ b/qt-ui/about.cpp @@ -16,9 +16,9 @@ SubsurfaceAbout::SubsurfaceAbout(QWidget* parent, Qt::WindowFlags f) { ui.setupUi(this); ui.aboutLabel->setText(tr("<span style='font-size: 18pt; font-weight: bold;'>" \ - "Subsurface " VERSION_STRING "</span><br><br>" \ + "Subsurface %1 </span><br><br>" \ "Multi-platform divelog software<br>" \ - "<span style='font-size: 8pt'>Linus Torvalds, Dirk Hohndel, and others, 2011, 2012, 2013</span>")); + "<span style='font-size: 8pt'>Linus Torvalds, Dirk Hohndel, and others, 2011, 2012, 2013</span>").arg(VERSION_STRING)); licenseButton = new QPushButton(tr("&License")); websiteButton = new QPushButton(tr("&Website")); ui.buttonBox->addButton(licenseButton, QDialogButtonBox::ActionRole); |