i18n: some other strings

This commit is contained in:
Gary Wang 2020-06-07 13:45:19 +08:00
parent 5c3523648e
commit f25acbef12
3 changed files with 27 additions and 3 deletions

View File

@ -43,6 +43,18 @@
<source>0:00</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Sample Rate: %1 Hz</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Bitrate: %1 Kbps</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channel Count: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>

View File

@ -43,6 +43,18 @@
<source>0:00</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Sample Rate: %1 Hz</source>
<translation>: %1 Hz</translation>
</message>
<message>
<source>Bitrate: %1 Kbps</source>
<translation>: %1 Kbps</translation>
</message>
<message>
<source>Channel Count: %1</source>
<translation>: %1</translation>
</message>
</context>
<context>
<name>main</name>

View File

@ -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;