"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CMakeModules/Translations.cmake" between
flightgear-2020.1.1.tar.bz2 and flightgear-2020.1.2.tar.bz2

About: FlightGear is a multi-platform, cooperative flight simulator development project.

Translations.cmake  (flightgear-2020.1.1.tar.bz2):Translations.cmake  (flightgear-2020.1.2.tar.bz2)
skipping to change at line 40 skipping to change at line 40
file(WRITE ${translation_res} "<RCC>\n<qresource prefix=\"/\">\n") file(WRITE ${translation_res} "<RCC>\n<qresource prefix=\"/\">\n")
# qm generation and installation # qm generation and installation
foreach(LANG ${LANGUAGES}) foreach(LANG ${LANGUAGES})
# trim down to a two-letter code for output. This will need to get # trim down to a two-letter code for output. This will need to get
# smarter if we ever have different translations for a dialect, # smarter if we ever have different translations for a dialect,
# eg en_GB, fr_CA or pt_BR. # eg en_GB, fr_CA or pt_BR.
string(SUBSTRING ${LANG} 0 2 simple_lang) string(SUBSTRING ${LANG} 0 2 simple_lang)
set(out_file "${PROJECT_BINARY_DIR}/FlightGear_${simple_lang}.qm") set(out_file "${PROJECT_BINARY_DIR}/FlightGear_${simple_lang}.qm")
# avoid issue if the FGData we found is a different version, and a trans
lation is
# missing: just skip it
if (NOT EXISTS ${TRANSLATIONS_SRC_DIR}/${simple_lang}/FlightGear-Qt.xlf)
continue()
endif()
add_custom_command( add_custom_command(
OUTPUT ${out_file} OUTPUT ${out_file}
COMMAND Qt5::lrelease ${TRANSLATIONS_SRC_DIR}/${LANG}/FlightGear-Qt. xlf COMMAND Qt5::lrelease ${TRANSLATIONS_SRC_DIR}/${LANG}/FlightGear-Qt. xlf
-qm ${out_file} -qm ${out_file}
DEPENDS ${TRANSLATIONS_SRC_DIR}/${LANG}/FlightGear-Qt.xlf DEPENDS ${TRANSLATIONS_SRC_DIR}/${LANG}/FlightGear-Qt.xlf
) )
add_custom_target(fgfs_${simple_lang}_qm ALL DEPENDS ${out_file}) add_custom_target(fgfs_${simple_lang}_qm ALL DEPENDS ${out_file})
add_dependencies(fgfs_qm_files fgfs_${simple_lang}_qm) add_dependencies(fgfs_qm_files fgfs_${simple_lang}_qm)
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)