Add pending translations as comments in language list

and fix a defect in setting up new languages.
This commit is contained in:
Bill Somerville 2020-06-02 21:17:31 +01:00
parent 26fd98491c
commit 27a3b4d8fa
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -1107,12 +1107,14 @@ set (LANGUAGES
ja # Japanese
zh # Chinese
zh_HK # Chinese per Hong Kong
#no # Norwegian
#sv # Swedish
#pt # Portuguese
#it # Italian
)
foreach (lang_ ${LANGUAGES})
file (TO_NATIVE_PATH ${CMAKE_SOURCE_DIR}/translations/wsjtx_${lang_}.ts ts_)
if (EXISTS "${ts_}")
list (APPEND TS_FILES ${ts_})
endif ()
list (APPEND TS_FILES ${ts_})
set (qt_translations_ "${QT_TRANSLATIONS_DIR}/qtbase_${lang_}.qm")
if (EXISTS "${qt_translations_}")
add_custom_command (