mirror of
https://github.com/libretro/mgba.git
synced 2024-11-27 10:11:00 +00:00
Qt: Only include qtbase translations if present
This commit is contained in:
parent
0f7327ea44
commit
782742a731
@ -268,7 +268,10 @@ if(Qt5LinguistTools_FOUND)
|
||||
foreach(TS ${TS_FILES})
|
||||
get_filename_component(TS ${TS} NAME)
|
||||
string(REGEX REPLACE "${BINARY_NAME}-(.*).ts$" "qtbase_\\1.qm" QT_QM "${TS}")
|
||||
list(APPEND QT_QM_FILES "${QT_QM_LOCATION}/${QT_QM}")
|
||||
set(QT_QM "${QT_QM_LOCATION}/${QT_QM}")
|
||||
if(EXISTS "${QT_QM}")
|
||||
list(APPEND QT_QM_FILES "${QT_QM}")
|
||||
endif()
|
||||
endforeach()
|
||||
list(APPEND TRANSLATION_FILES ${QT_QM_FILES})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user