##### prepare xml files #########################

tde_l10n_prepare_xml(
    SOURCE data/data.xml
    TAGS name
)

tde_l10n_prepare_xml(
    SOURCE data/knowledge.xml
    TAGS name desc refitem
)

tde_l10n_prepare_xml(
    SOURCE data/tools.xml
    TAGS name desc
)


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

tde_l10n_create_template(
    CATALOG "kalzium"
    SOURCES
        "."
        "data/data.xml.tde_l10n"
        "data/knowledge.xml.tde_l10n"
        "data/tools.xml.tde_l10n"
    ATTRIBUTES
        "data/data.xml:name,origin"
)

tde_l10n_create_template(
    CATALOG "desktop_files/kalzium.desktop/"
    SOURCES kalzium.desktop
    DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)
