diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-11 15:33:52 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-11 15:33:52 +0100 |
commit | cd615bbae6b943288c25ca5c0f5603e51bc91dbc (patch) | |
tree | 9b4762e845cdf78a382da576f502f244aa3ff8b8 /po/CMakeLists.txt | |
parent | b197bb1e72d05ac3b32546b51c3269c6596e013e (diff) | |
download | knutclient-cd615bbae6b943288c25ca5c0f5603e51bc91dbc.tar.gz knutclient-cd615bbae6b943288c25ca5c0f5603e51bc91dbc.zip |
Add CMakeL10n rules.
Update translation template.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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( ) |