Make 'Welcome to KeePassXC $VERSION' string properly translatable, resolves #1236

This commit is contained in:
Janek Bevendorff 2018-01-28 16:42:46 +01:00
parent 2849e19d49
commit 07a2077c1e
No known key found for this signature in database
GPG Key ID: 2FDEB0D40BCA5E11
2 changed files with 1 additions and 4 deletions

View File

@ -29,7 +29,7 @@ WelcomeWidget::WelcomeWidget(QWidget* parent)
{
m_ui->setupUi(this);
m_ui->welcomeLabel->setText(m_ui->welcomeLabel->text() + " " + KEEPASSX_VERSION);
m_ui->welcomeLabel->setText(tr("Welcome to KeePassXC %1").arg(KEEPASSX_VERSION));
QFont welcomeLabelFont = m_ui->welcomeLabel->font();
welcomeLabelFont.setBold(true);
welcomeLabelFont.setPointSize(welcomeLabelFont.pointSize() + 4);

View File

@ -72,9 +72,6 @@
</item>
<item>
<widget class="QLabel" name="welcomeLabel">
<property name="text">
<string>Welcome to KeePassXC</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>