Mercurial > hg > svgui
diff layer/NoteLayer.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 | 34bbbcb3c01f |
children | 28c8e8e3c537 |
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()); }