diff --git a/languages/pineapple-music.ts b/languages/pineapple-music.ts index ece592b..e1754fa 100644 --- a/languages/pineapple-music.ts +++ b/languages/pineapple-music.ts @@ -43,6 +43,18 @@ 0:00 + + Sample Rate: %1 Hz + + + + Bitrate: %1 Kbps + + + + Channel Count: %1 + + main diff --git a/languages/pineapple-music_zh_CN.ts b/languages/pineapple-music_zh_CN.ts index 60b1bb0..1351c62 100644 --- a/languages/pineapple-music_zh_CN.ts +++ b/languages/pineapple-music_zh_CN.ts @@ -43,6 +43,18 @@ 0:00 + + Sample Rate: %1 Hz + 采样率: %1 Hz + + + Bitrate: %1 Kbps + 比特率: %1 Kbps + + + Channel Count: %1 + 声道数: %1 + main diff --git a/mainwindow.cpp b/mainwindow.cpp index 56804d9..7a3d6ae 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -104,17 +104,17 @@ void MainWindow::setAudioPropertyInfoForDisplay(int sampleRate, int bitrate, int if (sampleRate >= 0) { uiStrs << QString("%1 Hz").arg(sampleRate); - tooltipStrs << QString("Sample Rate: %1 Hz").arg(sampleRate); + tooltipStrs << tr("Sample Rate: %1 Hz").arg(sampleRate); } if (bitrate >= 0) { uiStrs << QString("%1 Kbps").arg(bitrate); - tooltipStrs << QString("Bitrate: %1 Kbps").arg(bitrate); + tooltipStrs << tr("Bitrate: %1 Kbps").arg(bitrate); } if (channelCount >= 0) { uiStrs << channelStr(channelCount); - tooltipStrs << QString("Channel Count: %1").arg(channelCount); + tooltipStrs << tr("Channel Count: %1").arg(channelCount); } uiStrs << audioExt;