Mercurial > hg > svgui
changeset 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 | 8c00a4d4fc69 |
children | efadb9d2b2c6 |
files | layer/NoteLayer.cpp layer/SpectrogramLayer.cpp |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/NoteLayer.cpp Fri Mar 30 17:16:48 2007 +0000 +++ b/layer/NoteLayer.cpp Mon Apr 02 12:12:36 2007 +0000 @@ -365,17 +365,17 @@ int mnote = lrintf(note.value); int cents = lrintf((note.value - mnote) * 100); float freq = Pitch::getFrequencyForPitch(mnote, cents); - pitchText = QString("%1 (%2 Hz)") + pitchText = tr("%1 (%2 Hz)") .arg(Pitch::getPitchLabel(mnote, cents)).arg(freq); } else if (m_model->getScaleUnits() == "Hz") { - pitchText = QString("%1 Hz (%2)") + pitchText = tr("%1 Hz (%2)") .arg(note.value) .arg(Pitch::getPitchLabelForFrequency(note.value)); } else { - pitchText = QString("%1 %2") + pitchText = tr("%1 %2") .arg(note.value).arg(m_model->getScaleUnits()); }
--- 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) {