Rosegarden – music editor and MIDI/audio sequencer
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.

CMakeL10n.txt 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #################################################
  2. #
  3. # (C) 2019 Slávek Banko
  4. # slavek.banko (AT) axis.cz
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. cmake_minimum_required( VERSION 2.8 )
  12. ##### include our cmake modules #################
  13. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  14. include( TDEL10n )
  15. ##### prepare strings from data files ###########
  16. ## style names
  17. file( GLOB_RECURSE _style_files
  18. RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  19. ${CMAKE_CURRENT_SOURCE_DIR}/data/styles/*.xml )
  20. unset( _styles_l10n )
  21. foreach( _style_file ${_style_files} )
  22. get_filename_component( _style_name "${_style_file}" NAME_WE )
  23. string( REPLACE "_" " " _style_name "${_style_name}" )
  24. set( _styles_l10n "${_styles_l10n}i18n(\"${_style_name}\");\n" )
  25. endforeach( )
  26. file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/data/styles/.tde_l10n" "${_styles_l10n}" )
  27. ## font attributes
  28. set( _fonts_attribs "data/fonts/mappings/*.xml" )
  29. foreach( _fonts_attrib
  30. "rosegarden-font-encoding,name"
  31. "font-information,origin"
  32. "font-information,copyright"
  33. "font-information,mapped-by"
  34. "font-information,type" )
  35. set( _fonts_attribs "${_fonts_attribs}:${_fonts_attrib}" )
  36. endforeach( )
  37. ##### create translation templates ##############
  38. tde_l10n_create_template(
  39. CATALOG "rosegarden"
  40. SOURCES
  41. "src"
  42. "doc/en/tips"
  43. "data/styles/.tde_l10n"
  44. ATTRIBUTES
  45. ${_fonts_attribs}
  46. )