KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
738B

  1. ##### prepare strings from data files ###########
  2. file( GLOB_RECURSE _kspread_data_files
  3. RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  4. ${CMAKE_CURRENT_SOURCE_DIR}/extensions/*.xml
  5. )
  6. list( SORT _kspread_data_files )
  7. unset( _kspread_data_l10n )
  8. foreach( _kspread_file ${_kspread_data_files} )
  9. tde_l10n_prepare_xml(
  10. SOURCE ${_kspread_file}
  11. TAGS "Example" "GroupName" "Text" "Comment" "Syntax" "TypeName"
  12. )
  13. list( APPEND _kspread_data_l10n "${_kspread_file}.tde_l10n" )
  14. endforeach( )
  15. ##### create translation templates ##############
  16. tde_l10n_create_template(
  17. CATALOG "kspread"
  18. SOURCES
  19. "."
  20. ${_kspread_data_l10n}
  21. EXCLUDES
  22. "^plugins/"
  23. )
  24. tde_l10n_auto_add_subdirectories( )