# HG changeset patch # User Chris Cannam # Date 1175515956 0 # Node ID b4809e942e7d5c9b96207fb31b6459231999d872 # Parent 8c00a4d4fc699b58d6be64c600d6fc526cb5448f * Russian update from Alexandre, and a couple of i18n fixes diff -r 8c00a4d4fc69 -r b4809e942e7d layer/NoteLayer.cpp --- 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()); } diff -r 8c00a4d4fc69 -r b4809e942e7d layer/SpectrogramLayer.cpp --- 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) {