diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-05-08 14:32:36 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-05-09 12:46:14 +0000 |
commit | 9065902d2cccdddd42f21fc3b6213839af7025b9 (patch) | |
tree | a974b813eca1bcf76f371e6033517e74867542c4 /src/plugins/projectexplorer/appoutputpane.cpp | |
parent | 9eb58a90c4fe5f880de3e2c27bed5536b386178e (diff) | |
download | qt-creator-9065902d2cccdddd42f21fc3b6213839af7025b9.tar.gz |
Output pane settings: Make more more i18n-friendly
Change-Id: Iaccd369a8eea8df933cd036ed9f41f8730c9e973
Written-by: hjk <hjk@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r-- | src/plugins/projectexplorer/appoutputpane.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index e96faba9d1..e8e6502a70 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -886,9 +886,11 @@ public: layout->addWidget(&m_popUpForRunOutputCheckBox); layout->addWidget(&m_popUpForDebugOutputCheckBox); const auto maxCharsLayout = new QHBoxLayout; - maxCharsLayout->addWidget(new QLabel(tr("Limit output to"))); // TODO: This looks problematic i18n-wise + const QString msg = tr("Limit output to %1 characters"); + const QStringList parts = msg.split("%1") << QString() << QString(); + maxCharsLayout->addWidget(new QLabel(parts.at(0).trimmed())); maxCharsLayout->addWidget(&m_maxCharsBox); - maxCharsLayout->addWidget(new QLabel(tr("characters"))); + maxCharsLayout->addWidget(new QLabel(parts.at(1).trimmed())); maxCharsLayout->addStretch(1); layout->addLayout(maxCharsLayout); layout->addStretch(1); |