Added translations

This commit is contained in:
Daniel Brunner
2018-10-15 20:53:19 +02:00
parent 48469594a1
commit 1cfceb0761
3 changed files with 40 additions and 5 deletions

View File

@@ -5,6 +5,10 @@ set(HEADERS
updatersettingswidget.h
)
set(FORMS
updaterdialog.ui
)
set(SOURCES
updaterdialog.cpp
updaterplugin.cpp
@@ -12,15 +16,20 @@ set(SOURCES
updatersettingswidget.cpp
)
set(FORMS
updaterdialog.ui
)
set(OTHER_FILES
updaterplugin.json
)
add_library(zeiterfassung-plugins-updaterplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${OTHER_FILES})
set(TRANSLATIONS
translations/updaterplugin_en.ts
translations/updaterplugin_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-updaterplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${OTHER_FILES} ${TRANSLATIONS_C})
set_target_properties(zeiterfassung-plugins-updaterplugin PROPERTIES OUTPUT_NAME updaterplugin PREFIX "")

View File

@@ -25,4 +25,17 @@
<translation>Konnte Standard-Browser nicht öffnen!</translation>
</message>
</context>
<context>
<name>UpdaterSettingsWidget</name>
<message>
<location filename="../updatersettingswidget.cpp" line="14"/>
<source>Updater url:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../updatersettingswidget.cpp" line="24"/>
<source>The updater url is invalid!</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -25,4 +25,17 @@
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UpdaterSettingsWidget</name>
<message>
<location filename="../updatersettingswidget.cpp" line="14"/>
<source>Updater url:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../updatersettingswidget.cpp" line="24"/>
<source>The updater url is invalid!</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>