Commit 91c30974 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher

MP3 encoder dialog: set up all tool tips which contain a % character

in the cpp file instead of the ui file, as they they would trigger
errors during extraction (I18N_ARGUMENT_MISSING)
parent f3977859
......@@ -334,6 +334,30 @@ Kwave::MP3EncoderDialog::MP3EncoderDialog(QWidget *parent)
CONNECT(edEncoderHelp);
CONNECT(edVersionInfo);
// set up all tool tips which contain a % character right here instead
// of the ui file, as they they would trigger errors during
// extraction (I18N_ARGUMENT_MISSING)
edSampleRate->setToolTip(i18n(
"sample rate in Hz (use %1 as placeholder)\n"
"or kHz (use %2 as placeholder)"
).arg(_("%1")).arg(_("[%khz]")));
edBitsPerSample->setToolTip(i18n(
"bits per sample,\n"
"use %1 as placeholder"
).arg(_("%1")));
edBitrateMin->setToolTip(i18n(
"parameter for minimum bitrate in bits/sec\n"
"(use %1 as placeholder)"
).arg(_("%1")));
edBitrateMax->setToolTip(i18n(
"parameter for maximum bitrate in bits/sec\n"
"(use %1 as placeholder)"
).arg(_("%1")));
edBitrateAvg->setToolTip(i18n(
"parameter for average bitrate in bits/sec\n"
"(use %1 as placeholder)"
).arg(_("%1")));
// set the focus onto the "OK" button
buttonBox->button(QDialogButtonBox::Ok)->setFocus();
}
......
......@@ -291,10 +291,6 @@
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>sample rate in Hz (use %1 as placeholder)
or kHz (use [%khz] as placeholder)</string>
</property>
<property name="text">
<string/>
</property>
......@@ -321,10 +317,6 @@ or kHz (use [%khz] as placeholder)</string>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>bits per sample,
use %1 as placeholder</string>
</property>
<property name="text">
<string/>
</property>
......@@ -481,10 +473,6 @@ use %1 as placeholder</string>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>parameter for minimum bitrate in bits/sec
(use %1 as placeholder)</string>
</property>
<property name="text">
<string/>
</property>
......@@ -504,10 +492,6 @@ use %1 as placeholder</string>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>parameter for maximum bitrate in bits/sec
(use %1 as placeholder)</string>
</property>
<property name="text">
<string/>
</property>
......@@ -547,10 +531,6 @@ use %1 as placeholder</string>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>parameter for average bitrate in bits/sec
(use %1 as placeholder)</string>
</property>
<property name="text">
<string/>
</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment