diff options
author | Slávek Banko <[email protected]> | 2018-12-16 06:10:39 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-12-16 11:18:51 +0100 |
commit | c68e16caea2fab5283b43cad43e8064ad4fa6a6f (patch) | |
tree | 8856bd5c0c64da90c4d8ca289fa2fb5d352a2432 /po/CMakeLists.txt | |
parent | cba3ea286e85a0fde2758e4fe2aad9a3964a1ff5 (diff) | |
download | kvpnc-c68e16caea2fab5283b43cad43e8064ad4fa6a6f.tar.gz kvpnc-c68e16caea2fab5283b43cad43e8064ad4fa6a6f.zip |
Add CMakeL10n rules.
Update translation template.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index f5a2e1b..46fba83 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1 +1,6 @@ -tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} ) +# build translations if some are already available + +file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) +if( _srcs ) + tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} ) +endif( ) |