diff --git a/CMakeLists.txt b/CMakeLists.txt index 9214ad4..920ab28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,16 @@ set(OTHER_FILES profileplugin.json ) -add_library(zeiterfassung-plugins-profileplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS} ${OTHER_FILES}) +set(TRANSLATIONS + translations/profileplugin_en.ts + translations/profileplugin_de.ts +) + +set_source_files_properties(${TRANSLATIONS} PROPERTIES OUTPUT_LOCATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/translations) +QT5_CREATE_TRANSLATION(TRANSLATIONS_C ${TRANSLATIONS} ${HEADERS} ${SOURCES} ${FORMS} OPTIONS -no-obsolete) +#QT5_ADD_TRANSLATION(TRANSLATIONS_C ${TRANSLATIONS}) + +add_library(zeiterfassung-plugins-profileplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${RESOURCES} ${OTHER_FILES} ${TRANSLATIONS_C}) set_target_properties(zeiterfassung-plugins-profileplugin PROPERTIES OUTPUT_NAME profileplugin PREFIX "") diff --git a/translations/profileplugin_de.ts b/translations/profileplugin_de.ts index e8cb231..27a4acf 100644 --- a/translations/profileplugin_de.ts +++ b/translations/profileplugin_de.ts @@ -39,66 +39,60 @@ Straße: - + City: Stadt: - + Employed since: Angestellt seit: - + Employed till: Angestellt bis: - + Place of birth: Geburtsort: - + Zipcode: Postleitzahl: - + Religion: Religion: - + Department: Abteilung: - + Verwendgr: Verwendgr: - + Taetig: Taetig: - + Arbverh: Arbverh: - + Betriebsnr: Betriebsnr: - - - - dd.MM.yyyy - dd.MM.yyyy - ProfilePlugin diff --git a/translations/profileplugin_en.ts b/translations/profileplugin_en.ts index d6f19e1..d3d6d7a 100644 --- a/translations/profileplugin_en.ts +++ b/translations/profileplugin_en.ts @@ -39,66 +39,60 @@ - + City: - + Employed since: - + Employed till: - + Place of birth: - + Zipcode: - + Religion: - + Department: - + Verwendgr: - + Taetig: - + Arbverh: - + Betriebsnr: - - - - dd.MM.yyyy - - ProfilePlugin