diff options
author | Slávek Banko <[email protected]> | 2018-12-10 22:45:47 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-12-10 22:47:00 +0100 |
commit | f3dfdf6302f47d679ef82d48a4c24bee72de5cfb (patch) | |
tree | 82014d6660d818ef81ce759c069d6ab8dc4d924d /po/CMakeLists.txt | |
parent | 4353defd5d18dc5565375450ca860aa0010c08a2 (diff) | |
download | kkbswitch-f3dfdf6302f47d679ef82d48a4c24bee72de5cfb.tar.gz kkbswitch-f3dfdf6302f47d679ef82d48a4c24bee72de5cfb.zip |
Add CMakeL10n rules.
Update translation template.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 769d754414b6675aa4d74fe87cc2c39fe078795a)
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( ) |