diff options
author | Slávek Banko <[email protected]> | 2018-12-09 01:16:54 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-12-09 01:16:54 +0100 |
commit | 97ab4f494cedf984fbc0ec6c013edd7969041935 (patch) | |
tree | 72e3f1fa24c29cc2f231822be883968561d10a52 | |
parent | dcb28a87ae363cc20515b0a60dc71368c27f671f (diff) | |
download | tde-cmake-97ab4f494cedf984fbc0ec6c013edd7969041935.tar.gz tde-cmake-97ab4f494cedf984fbc0ec6c013edd7969041935.zip |
Update TDEL10n module
+ Added automatic handling of the "_translatorinfo" file.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | modules/TDEL10n.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake index 30ed9ec..cb5464d 100644 --- a/modules/TDEL10n.cmake +++ b/modules/TDEL10n.cmake @@ -278,6 +278,15 @@ macro( tde_create_l10n_template ) endif( ) endforeach( ) + if( _files ) + # add common translator info + set( _translatorinfo + "i18n(\"NAME OF TRANSLATORS\", \"Your names\")\n" + "i18n(\"EMAIL OF TRANSLATORS\", \"Your emails\")\n" + ) + file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/_translatorinfo.tde_l10n ${_translatorinfo} ) + list( INSERT _files 0 "_translatorinfo.tde_l10n" ) + endif( ) if( _excludes ) # filter files by excludes foreach( _src ${_files} ) |