1
0
Fork 0

Launcher: fix selection of English language

Due to the file naming, we would not pick English (even if it was
the first UI language), if the active region was not US.

Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2406/
This commit is contained in:
James Turner 2020-11-01 11:06:42 +00:00 committed by James Turner
parent d29f25c391
commit 55fc3d99ae

View file

@ -64,8 +64,16 @@ if (${do_translate})
add_dependencies(fgfs_qm_files fgfs_${LANG}_qm)
# local path needed here, not absolute
file(APPEND ${translation_res} "<file>FlightGear_${LANG}.qm</file>\n")
# fix for bug https://sourceforge.net/p/flightgear/codetickets/2406/
# ensure we expose the English translations in a 'short' form, so that
# the QTranslator search order finds it
if (${LANG} STREQUAL "en_US")
message(STATUS "Wibble")
file(APPEND ${translation_res} "<file alias=\"FlightGear_en.qm\">FlightGear_${LANG}.qm</file>\n")
else()
# local path needed here, not absolute
file(APPEND ${translation_res} "<file>FlightGear_${LANG}.qm</file>\n")
endif()
endforeach()
file(APPEND ${translation_res} "</qresource>\n</RCC>")