diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-21 11:39:27 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-22 12:02:48 -0700 |
commit | cee698940907464c2c41b3504a261e93a86b586d (patch) | |
tree | e313a477e08839799ce0f33d2d5fb2ea05b60dd7 | |
parent | 438bac0f8f5e896ff48564c4246b611e20ec312e (diff) | |
download | subsurface-cee698940907464c2c41b3504a261e93a86b586d.tar.gz |
buils-system: automatically handle plurals for en_US
This had been something I did manually which caused all kinds of
mistakes. I finally figured out how this is supposed to work.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | translations/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 64a1e6bed..cd761d7f7 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -13,7 +13,6 @@ set(TRANSLATION_FILES subsurface_de_DE.ts subsurface_el_GR.ts subsurface_en_GB.ts - subsurface_en_US.ts subsurface_es_ES.ts subsurface_et_EE.ts subsurface_fi_FI.ts @@ -34,10 +33,12 @@ set(TRANSLATION_FILES subsurface_zh_TW.ts ) +set(US_EN_PLURALS subsurface_en_US.ts) + # disabled translations as they are below 40%: # subsurface_hu.ts -qt5_add_translation(TRANSLATIONS ${TRANSLATION_FILES}) +qt5_add_translation(TRANSLATIONS ${TRANSLATION_FILES} ${US_EN_PLURALS}) set(TRANSLATIONS ${TRANSLATIONS} PARENT_SCOPE) add_custom_target (translations ALL DEPENDS ${TRANSLATIONS}) @@ -47,4 +48,5 @@ add_custom_target (translations ALL DEPENDS ${TRANSLATIONS}) # DO NOT DO THIS MANUALLY -- USE THE SCRIPT IN ORDER TO FIX NUMERUSFORM # ===================================================================== # qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES}) +# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${US_EN_PLURALS} OPTIONS -pluralonly) # add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES}) |