Added translations
This commit is contained in:
@@ -8,19 +8,28 @@ set(SOURCES
|
|||||||
sketchplugin.cpp
|
sketchplugin.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(RESOURCES
|
|
||||||
sketchplugin_resources.qrc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(FORMS
|
set(FORMS
|
||||||
sketchmainwindow.ui
|
sketchmainwindow.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(RESOURCES
|
||||||
|
sketchplugin_resources.qrc
|
||||||
|
)
|
||||||
|
|
||||||
set(OTHER_FILES
|
set(OTHER_FILES
|
||||||
sketchplugin.json
|
sketchplugin.json
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(zeiterfassung-plugins-sketchplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS} ${OTHER_FILES})
|
set(TRANSLATIONS
|
||||||
|
translations/sketchplugin_en.ts
|
||||||
|
translations/sketchplugin_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-sketchplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${RESOURCES} ${OTHER_FILES} ${TRANSLATIONS_C})
|
||||||
|
|
||||||
set_target_properties(zeiterfassung-plugins-sketchplugin PROPERTIES OUTPUT_NAME sketchplugin PREFIX "")
|
set_target_properties(zeiterfassung-plugins-sketchplugin PROPERTIES OUTPUT_NAME sketchplugin PREFIX "")
|
||||||
|
|
||||||
|
@@ -1,4 +1,42 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="de_DE">
|
<TS version="2.1" language="de_DE">
|
||||||
|
<context>
|
||||||
|
<name>SketchMainWindow</name>
|
||||||
|
<message>
|
||||||
|
<source>Sketch Viewer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&File</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&Open</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&Quit</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Select a sketch file</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sketch file</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Could not load sketch file!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SketchPlugin</name>
|
||||||
|
<message>
|
||||||
|
<source>Open Sketch viewer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
@@ -1,4 +1,42 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="en_US">
|
<TS version="2.1" language="en_US">
|
||||||
|
<context>
|
||||||
|
<name>SketchMainWindow</name>
|
||||||
|
<message>
|
||||||
|
<source>Sketch Viewer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&File</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&Open</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&Quit</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Select a sketch file</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sketch file</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Could not load sketch file!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SketchPlugin</name>
|
||||||
|
<message>
|
||||||
|
<source>Open Sketch viewer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
Reference in New Issue
Block a user