TTS languages were hardcoded in the UI :(
This commit is contained in:
@@ -14,6 +14,12 @@ FirmwarePreferencesDialog::FirmwarePreferencesDialog(QWidget *parent) :
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setWindowIcon(CompanionIcon("fwpreferences.png"));
|
setWindowIcon(CompanionIcon("fwpreferences.png"));
|
||||||
initSettings();
|
initSettings();
|
||||||
|
|
||||||
|
foreach(const char *lang, GetCurrentFirmware()->ttslanguages) {
|
||||||
|
ui->voiceCombo->addItem(lang);
|
||||||
|
if (current_firmware_variant.id.contains(QString("-tts%1").arg(lang)))
|
||||||
|
ui->voiceCombo->setCurrentIndex(ui->voiceCombo->count() - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FirmwarePreferencesDialog::~FirmwarePreferencesDialog()
|
FirmwarePreferencesDialog::~FirmwarePreferencesDialog()
|
||||||
|
|||||||
@@ -81,56 +81,6 @@
|
|||||||
<string>Set voice language.
|
<string>Set voice language.
|
||||||
May be different from firmware language</string>
|
May be different from firmware language</string>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>en</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>cz</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>de</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>es</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>fi</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>fr</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>it</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>pl</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>pt</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>se</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="5">
|
<item row="7" column="5">
|
||||||
|
|||||||
Reference in New Issue
Block a user