TDE core libraries
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 594B

12345678910111213141516171819202122
  1. ##### prepare rgb.txt as C source ###############
  2. file( READ "${CMAKE_CURRENT_SOURCE_DIR}/rgb.txt" _colorsRC )
  3. string( REGEX REPLACE
  4. "([ \t]*([0-9]+[ \t]+)([0-9]+[ \t]+)([0-9]+[ \t]+))([^ \t\n]+)(\n|$)"
  5. "\\1/* xgettext: no-c-format */i18n(\"color\", \"\\5\");\\6"
  6. _colorsRC ${_colorsRC}
  7. )
  8. string( REGEX REPLACE
  9. "[^\n]*gr[ae]y[^\n]*(\n|$)"
  10. "\\1"
  11. _colorsRC ${_colorsRC}
  12. )
  13. file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/rgb.txt.tde_l10n" "${_colorsRC}" )
  14. ##### create translation templates ##############
  15. tde_l10n_create_template(
  16. CATALOG "tdelibs_colors"
  17. SOURCES rgb.txt.tde_l10n
  18. )