feat(cpn): Korean (ko_KR) translation support (#6220)

This commit is contained in:
Siyeong Jang
2025-05-12 20:13:51 +10:00
committed by GitHub
parent 7e7a5939cd
commit 0ab348dbba
20 changed files with 9744 additions and 9085 deletions
+3 -3
View File
@@ -102,7 +102,7 @@ configure_file(${COMPANION_SRC_DIRECTORY}/simulator.desktop.in ${CMAKE_CURRENT_B
### 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 nl pl pt ru sv zh_CN zh_TW)
set(LANGUAGES 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)
@@ -354,7 +354,7 @@ elseif(PCB STREQUAL X10 AND PCBREV STREQUAL T18)
set(FLAVOUR t18)
elseif(PCB STREQUAL PL18 AND PCBREV STREQUAL EL18)
set(FLAVOUR el18)
elseif(PCB STREQUAL PL18 AND PCBREV STREQUAL PL18EV)
elseif(PCB STREQUAL PL18 AND PCBREV STREQUAL PL18EV)
set(FLAVOUR pl18ev)
elseif(PCB STREQUAL PL18)
set(FLAVOUR pl18)
@@ -652,4 +652,4 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CPACK_EXTERNAL_PACKAGE_SCRIPT "${CMAKE_BINARY_DIR}/CPackExternal.cmake")
endif()
include(CPack)
include(CPack)
+4 -4
View File
@@ -22,7 +22,7 @@
#include "translations.h"
#include "appdata.h"
#include <QCoreApplication>
#include <QCoreApplication>
#include <QDir>
#include <QLibraryInfo>
#include <QTranslator>
@@ -45,7 +45,7 @@ QStringList const Translations::getAvailableTranslations()
<< "he_IL"
<< "it_IT"
<< "ja_JP"
<< "ko-KR"
<< "ko_KR"
<< "nl_NL"
<< "pl_PL"
<< "pt_PT"
@@ -73,8 +73,8 @@ QStringList const Translations::getTranslationPaths()
QStringList paths;
// Prefer path set in environment variable, makes it possible to test/replace translations w/out rebuilding.
if (qEnvironmentVariableIsSet("OPENTX_APP_TRANSLATIONS_PATH") && QDir(qgetenv("OPENTX_APP_TRANSLATIONS_PATH").constData()).exists()) {
paths << qgetenv("OPENTX_APP_TRANSLATIONS_PATH").constData();
if (qEnvironmentVariableIsSet("EDGETX_APP_TRANSLATIONS_PATH") && QDir(qgetenv("EDGETX_APP_TRANSLATIONS_PATH").constData()).exists()) {
paths << qgetenv("EDGETX_APP_TRANSLATIONS_PATH").constData();
}
// Try application subfolder first, also eg. to test/replace translations quickly.
paths << APP_TRANSLATIONS_FILE_PATH;
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff