From cded8eb198da2a71dcc230b30319c27b2e72c891 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 30 Nov 2013 14:57:10 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/about.cpp | 4 ++-- 1 file 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("" \ - "Subsurface " VERSION_STRING "

" \ + "Subsurface %1

" \ "Multi-platform divelog software
" \ - "Linus Torvalds, Dirk Hohndel, and others, 2011, 2012, 2013")); + "Linus Torvalds, Dirk Hohndel, and others, 2011, 2012, 2013").arg(VERSION_STRING)); licenseButton = new QPushButton(tr("&License")); websiteButton = new QPushButton(tr("&Website")); ui.buttonBox->addButton(licenseButton, QDialogButtonBox::ActionRole); -- cgit v1.2.3-70-g09d2