diff options
Diffstat (limited to 'translations/CMakeLists.txt')
-rw-r--r-- | translations/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 6d0aa9f..2ce6ef4 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -1 +1,9 @@ -tde_auto_add_subdirectories( ) +# build translations if some are already available + +file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_NAME}.po ) + +foreach( _po ${po_files} ) + string( REPLACE "/" ";" _path "${_po}" ) + list( GET _path 0 _lang ) + tde_create_translation( FILES ${_po} LANG ${_lang} ) +endforeach( ) |