From f25acbef12a58ee21b13797028018674c7a0fd36 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 7 Jun 2020 13:45:19 +0800 Subject: [PATCH] i18n: some other strings --- languages/pineapple-music.ts | 12 ++++++++++++ languages/pineapple-music_zh_CN.ts | 12 ++++++++++++ mainwindow.cpp | 6 +++--- 3 files changed, 27 insertions(+), 3 deletions(-) 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;