mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 02:35:41 +03:00
Fix translation issue on macOS
This commit is contained in:
parent
9a7c724a26
commit
09d797f3d7
@ -30,14 +30,22 @@ endif()
|
||||
add_custom_target(translations DEPENDS ${QM_FILES})
|
||||
add_dependencies(gitahead translations)
|
||||
|
||||
set(CONTENTS_DIR ${GITAHEAD_NAME}.app/Contents)
|
||||
foreach(LANGUAGE ${LANGUAGES})
|
||||
set(QT_QM_FILES ${QT_QM_FILES}
|
||||
${QT_TRANSLATIONS_DIR}/qtbase_${LANGUAGE}.qm
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
get_target_property(DIR gitahead RUNTIME_OUTPUT_DIRECTORY)
|
||||
add_custom_command(TARGET translations POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory
|
||||
${DIR}/${CONTENTS_DIR}/Resources/${LANGUAGE}.lproj
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(MAC $<PLATFORM_ID:Darwin>)
|
||||
set(CONTENTS_DIR ${GITAHEAD_NAME}.app/Contents)
|
||||
foreach(QM_FILE ${QM_FILES} ${QT_QM_FILES})
|
||||
if(EXISTS ${QM_FILE})
|
||||
install(FILES ${QM_FILE}
|
||||
|
Loading…
Reference in New Issue
Block a user