From 4c9baea3136e4164fb30cea88c2c3048109df4f5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 23 Mar 2018 20:26:50 +0100 Subject: Translation supported added. --- src/volumefader.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/volumefader.cc') diff --git a/src/volumefader.cc b/src/volumefader.cc index 9d3e15a..7982896 100644 --- a/src/volumefader.cc +++ b/src/volumefader.cc @@ -70,7 +70,7 @@ void VolumeFader::updatePeakDb(double db) void VolumeFader::updatePeakPower(double newpeak) { peak = (newpeak * (1.0 - P) + peak * P); - volumepeak->setText("Peak " + QString::number(peak, 'f', 5)); + volumepeak->setText(tr("Peak ") + QString::number(peak, 'f', 5)); handleValueChanged(); } @@ -94,6 +94,6 @@ void VolumeFader::handleValueChanged() emit volumeChangedDb(db); emit volumeChangedPower(power); - volume->setText("Gain " + QString::number(volslider->value() / SCALAR) + - " dB"); + volume->setText(tr("Gain %1 dB").arg(QString::number(volslider->value() / + SCALAR))); } -- cgit v1.2.3