Browse Source
Merge pull request #6912 from lioncash/plural
CMakeLists: Ensure proper numerusform tags are generated for pluralized translations
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
1 deletions
-
src/yuzu/CMakeLists.txt
|
|
@ -182,7 +182,14 @@ if (ENABLE_QT_TRANSLATION) |
|
|
# Update source TS file if enabled |
|
|
# Update source TS file if enabled |
|
|
if (GENERATE_QT_TRANSLATION) |
|
|
if (GENERATE_QT_TRANSLATION) |
|
|
get_target_property(SRCS yuzu SOURCES) |
|
|
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) |
|
|
add_custom_target(translation ALL DEPENDS ${YUZU_QT_LANGUAGES}/en.ts) |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
|