##### prepare display template names ############

file( READ ${CMAKE_CURRENT_SOURCE_DIR}/display-templates/names.conf TEMPLATE_NAMES )
string( REGEX REPLACE "(^|\n)([^ \t]*)[ \t]+([^\n]*)\n" "\\1/* \\2 */ i18n(\"\\3\");\n" TEMPLATE_NAMES "${TEMPLATE_NAMES}" )
file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/display-templates/names.conf.tde_l10n "${TEMPLATE_NAMES}" )


##### create translation templates ##############

tde_l10n_create_template(
    CATALOG "messages/bibletime"
    SOURCES
        "."
        "display-templates/names.conf.tde_l10n"
        "../doc/tips"
)
