From 8efa6d4b7412237c5f624270c35e3fa15fb3e143 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 22 Aug 2021 11:52:34 -0400 Subject: [PATCH] CMakeLists: Ensure proper numerusform tags are generated for pluralized translations If we don't set an explicit source and target language for the base english translation, then we'll generate an incorrect number of tags (which Transifex doesn't like). --- src/yuzu/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index cb4bdcc7e9..7a5fcff20e 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt @@ -182,7 +182,14 @@ if (ENABLE_QT_TRANSLATION) # Update source TS file if enabled if (GENERATE_QT_TRANSLATION) get_target_property(SRCS yuzu SOURCES) - qt5_create_translation(QM_FILES ${SRCS} ${UIS} ${YUZU_QT_LANGUAGES}/en.ts) + qt5_create_translation(QM_FILES + ${SRCS} + ${UIS} + ${YUZU_QT_LANGUAGES}/en.ts + OPTIONS + -source-language en_US + -target-language en_US + ) add_custom_target(translation ALL DEPENDS ${YUZU_QT_LANGUAGES}/en.ts) endif()