Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
233:8c00a4d4fc69 | 234:b4809e942e7d |
---|---|
363 if (shouldConvertMIDIToHz()) { | 363 if (shouldConvertMIDIToHz()) { |
364 | 364 |
365 int mnote = lrintf(note.value); | 365 int mnote = lrintf(note.value); |
366 int cents = lrintf((note.value - mnote) * 100); | 366 int cents = lrintf((note.value - mnote) * 100); |
367 float freq = Pitch::getFrequencyForPitch(mnote, cents); | 367 float freq = Pitch::getFrequencyForPitch(mnote, cents); |
368 pitchText = QString("%1 (%2 Hz)") | 368 pitchText = tr("%1 (%2 Hz)") |
369 .arg(Pitch::getPitchLabel(mnote, cents)).arg(freq); | 369 .arg(Pitch::getPitchLabel(mnote, cents)).arg(freq); |
370 | 370 |
371 } else if (m_model->getScaleUnits() == "Hz") { | 371 } else if (m_model->getScaleUnits() == "Hz") { |
372 | 372 |
373 pitchText = QString("%1 Hz (%2)") | 373 pitchText = tr("%1 Hz (%2)") |
374 .arg(note.value) | 374 .arg(note.value) |
375 .arg(Pitch::getPitchLabelForFrequency(note.value)); | 375 .arg(Pitch::getPitchLabelForFrequency(note.value)); |
376 | 376 |
377 } else { | 377 } else { |
378 pitchText = QString("%1 %2") | 378 pitchText = tr("%1 %2") |
379 .arg(note.value).arg(m_model->getScaleUnits()); | 379 .arg(note.value).arg(m_model->getScaleUnits()); |
380 } | 380 } |
381 | 381 |
382 QString text; | 382 QString text; |
383 | 383 |