diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-13 03:48:38 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-13 03:48:52 +0100 |
commit | 969a2c9f58ac07417fbac599f049910f8a4e995c (patch) | |
tree | 5245163756c73b7c3f6f2ea3acef1c5500e7a35f /po/CMakeLists.txt | |
parent | 3abaafef7d325b6363044b91c4d5a4de4aea568b (diff) | |
download | yakuake-969a2c9f58ac07417fbac599f049910f8a4e995c.tar.gz yakuake-969a2c9f58ac07417fbac599f049910f8a4e995c.zip |
Add CMakeL10n rules.
Create translation template.
Modify CMake rules for translations
to make them independent of languages.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit deca1cf109edfe9fd4db992375175a3c6a664b09)
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 6d0aa9f..2ce6ef4 100644 --- a/po/CMakeLists.txt +++ b/po/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( ) |