summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2021-08-22 11:52:34 -0400
committerGravatar Lioncash2021-08-22 11:52:37 -0400
commit6fef91ce4c0464607350434251812ca5f0d86470 (patch)
treed3d0f7152715aaf8f4cae25fa45d3082ed0bc511 /src
parentMerge pull request #6748 from lioncash/engine-init (diff)
downloadyuzu-6fef91ce4c0464607350434251812ca5f0d86470.tar.gz
yuzu-6fef91ce4c0464607350434251812ca5f0d86470.tar.xz
yuzu-6fef91ce4c0464607350434251812ca5f0d86470.zip
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 <numerusform> tags (which Transifex doesn't like).
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index cb4bdcc7e..7a5fcff20 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -182,7 +182,14 @@ if (ENABLE_QT_TRANSLATION)
182 # Update source TS file if enabled 182 # Update source TS file if enabled
183 if (GENERATE_QT_TRANSLATION) 183 if (GENERATE_QT_TRANSLATION)
184 get_target_property(SRCS yuzu SOURCES) 184 get_target_property(SRCS yuzu SOURCES)
185 qt5_create_translation(QM_FILES ${SRCS} ${UIS} ${YUZU_QT_LANGUAGES}/en.ts) 185 qt5_create_translation(QM_FILES
186 ${SRCS}
187 ${UIS}
188 ${YUZU_QT_LANGUAGES}/en.ts
189 OPTIONS
190 -source-language en_US
191 -target-language en_US
192 )
186 add_custom_target(translation ALL DEPENDS ${YUZU_QT_LANGUAGES}/en.ts) 193 add_custom_target(translation ALL DEPENDS ${YUZU_QT_LANGUAGES}/en.ts)
187 endif() 194 endif()
188 195