Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion companion/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ configure_file(${COMPANION_SRC_DIRECTORY}/version.h.in ${CMAKE_BINARY_DIR}/versi
### Generate .qm files and assemble resource (qrc) file.

# available Companion translations (src/translations/*.ts)
set(LANGUAGES cs da de en es fi fr he it ja ko nl pl pt ru sv zh_CN zh_TW)
set(LANGUAGES ar cs da de en es fi fr he it ja ko nl pl pt ru sv zh_CN zh_TW)
foreach(language ${LANGUAGES})
list(APPEND companion_TS translations/companion_${language}.ts)
endforeach(language)
Expand Down
1 change: 1 addition & 0 deletions companion/src/firmwares/opentx/opentxinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class OpenTxFirmware: public Firmware
{
// Note: these align with the radio NOT computer locales - TODO harmonise with ISO and one list!!!
addLanguage("en");
addLanguage("ar");
addLanguage("cn");
addLanguage("cz");
addLanguage("da");
Expand Down
4 changes: 4 additions & 0 deletions companion/src/generaledit/generalsetup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ void GeneralSetupPanel::on_timezoneLE_textEdited(const QString &text)

// Copied from tts.h
enum RadioLanguage {
LANG_AR,
LANG_CN,
LANG_CZ,
LANG_DA,
Expand Down Expand Up @@ -335,6 +336,7 @@ enum RadioLanguage {
// Order must match RadioLanguage
// Note: these align with the radio NOT computer locales - TODO harmonise with ISO and one list!!!
static const char* langStrings[][2] = {
{ "Arabic", "ar" },
{ "Chinese", "cn" },
{ "Czech", "cz" },
{ "Danish", "da" },
Expand Down Expand Up @@ -374,6 +376,7 @@ void GeneralSetupPanel::populateTextLangCB(QComboBox* b, const char* currLang, b
// Available text languages
// B&W
static RadioLanguage bwLangs[] = {
// LANG_AR, // no fonts
// LANG_CN, // no fonts
LANG_CZ,
LANG_DA,
Expand All @@ -399,6 +402,7 @@ void GeneralSetupPanel::populateTextLangCB(QComboBox* b, const char* currLang, b
};
// Color
static RadioLanguage colorLangs[] = {
LANG_AR,
LANG_CN,
LANG_CZ,
LANG_DA,
Expand Down
3 changes: 2 additions & 1 deletion companion/src/translations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ QStringList const Translations::getAvailableTranslations()
static QStringList locales;

if (!locales.size()) {
locales << "cs_CZ"
locales << "ar"
<< "cs_CZ"
<< "da_DA"
<< "de_DE"
<< "en"
Expand Down
Loading
Loading