Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 234:b4809e942e7d
* Russian update from Alexandre, and a couple of i18n fixes
author | Chris Cannam |
---|---|
date | Mon, 02 Apr 2007 12:12:36 +0000 |
parents | 9465b5375235 |
children | 28c8e8e3c537 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Fri Mar 30 17:16:48 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Mon Apr 02 12:12:36 2007 +0000 @@ -2659,7 +2659,7 @@ m_maxFrequency - 1 : m_model->getSampleRate() / 2)); - int fw = paint.fontMetrics().width(QString("43Hz")); + int fw = paint.fontMetrics().width(tr("43Hz")); if (tw < fw) tw = fw; int tickw = (m_frequencyScale == LogFrequencyScale ? 10 : 4); @@ -2804,7 +2804,7 @@ } QString text = QString("%1").arg(freq); - if (bin == 1) text = QString("%1Hz").arg(freq); // bin 0 is DC + if (bin == 1) text = tr("%1Hz").arg(freq); // bin 0 is DC paint.drawLine(cw + 7, h - vy, w - pkw - 1, h - vy); if (h - vy - textHeight >= -2) {