feat: Add support for Japanese voice language 🇯🇵 (#3261)

* Created tts_jp.cpp and added "TR_VOICE_JAPANESE" to the *.h file.

* Commented out once because the build did not work

* fix: Define `JP` as a TTS language,
- Fixes the undefined reference to `jpLanguagePack` error
- put things in alphabetical order as the comment suggests it should be

* chore: Add `JP` to Companion voice language list

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
まっく まるちぷろとこる
2023-03-16 21:33:58 +10:00
committed by GitHub
co-authored by Peter Feerick
parent ddf5fdd906
commit 816a823727
19 changed files with 156 additions and 8 deletions
+2 -2
View File
@@ -348,12 +348,12 @@ void GeneralSetupPanel::populateVoiceLangCB()
QComboBox * b = ui->voiceLang_CB;
QString strings[] = { tr("English"), tr("Danish"), tr("Dutch"), tr("French"), tr("Italian"), tr("German"),
tr("Czech"), tr("Slovak"), tr("Spanish"), tr("Polish"), tr("Portuguese"), tr("Russian"),
tr("Swedish"), tr("Hungarian"), tr("Chinese"), NULL};
tr("Swedish"), tr("Hungarian"), tr("Chinese"), tr("Japanese"), NULL};
// Note: these align with the radio NOT computer locales - TODO harmonise with ISO and one list!!!
QString langcode[] = { "en", "da", "nl","fr", "it", "de",
"cz", "sk", "es", "pl", "pt", "ru",
"se", "hu", "cn", NULL};
"se", "hu", "cn", "jp", NULL};
b->clear();
for (int i=0; strings[i]!=NULL; i++) {