From ac7face247723d8c258d36e7f769f293aa9be3f2 Mon Sep 17 00:00:00 2001 From: Sergei Zyubin Date: Wed, 30 Oct 2019 14:53:57 +0100 Subject: [PATCH] Fix mixed translations for keepassxc-cli (#3732) Fix mixed translations for keepassxc-cli --- share/translations/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/translations/CMakeLists.txt b/share/translations/CMakeLists.txt index 5ca739695..ffd4698b0 100644 --- a/share/translations/CMakeLists.txt +++ b/share/translations/CMakeLists.txt @@ -33,5 +33,9 @@ endif() set(QM_FILES ${QM_FILES} ${QTBASE_TRANSLATIONS}) install(FILES ${QM_FILES} DESTINATION ${DATA_INSTALL_DIR}/translations) + +# Add keepassx_en.qm as a fallback for uncommon english locales +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/keepassx_en_US.qm DESTINATION ${DATA_INSTALL_DIR}/translations RENAME keepassx_en.qm) + add_custom_target(translations DEPENDS ${QM_FILES}) add_dependencies(${PROGNAME} translations)