KVirc – next generation IRC client
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.

68 lines
1.7KB

  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. ##### force to use standard xgettext ############
  16. set( __bak_KDE_XGETTEXT_EXECUTABLE ${KDE_XGETTEXT_EXECUTABLE} )
  17. set( KDE_XGETTEXT_EXECUTABLE "${XGETTEXT_EXECUTABLE}" )
  18. ##### create translation templates ##############
  19. tde_l10n_create_template(
  20. CATALOG "kvirc"
  21. SOURCES
  22. "src"
  23. "data/defscript/*.kvs"
  24. KEYWORDS
  25. - i18n:1c,2
  26. __tr __tr_no_lookup __tr2qs __tr2wc __tr2ws tr
  27. X-POT -
  28. DESTINATION "po/kvirc"
  29. )
  30. file( GLOB _modules
  31. RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/po/modules
  32. "${CMAKE_CURRENT_SOURCE_DIR}/po/modules/*"
  33. )
  34. foreach( _module ${_modules} )
  35. if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/po/modules/${_module} AND
  36. IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/modules/${_module} )
  37. tde_l10n_create_template(
  38. CATALOG "${_module}"
  39. SOURCES
  40. "src/modules/${_module}"
  41. KEYWORDS
  42. - i18n:1c,2
  43. __tr_ctx __tr_no_lookup_ctx __tr_no_lookup
  44. __tr2qs_ctx __tr2wc_ctx __tr2ws_ctx __tr2qs_no_lookup
  45. X-POT -
  46. DESTINATION "po/modules/${_module}"
  47. )
  48. endif( )
  49. endforeach( )
  50. ##### restore kde-xgettext ######################
  51. set( KDE_XGETTEXT_EXECUTABLE "${__bak_KDE_XGETTEXT_EXECUTABLE}" )
  52. unset( __bak_KDE_XGETTEXT_EXECUTABLE )