Added translations
This commit is contained in:
@@ -14,19 +14,28 @@ set(SOURCES
|
||||
lunchmealwidget.cpp
|
||||
)
|
||||
|
||||
set(RESOURCES
|
||||
lunchmealplugin_resources.qrc
|
||||
)
|
||||
|
||||
set(FORMS
|
||||
lunchmealdialog.ui
|
||||
)
|
||||
|
||||
set(RESOURCES
|
||||
lunchmealplugin_resources.qrc
|
||||
)
|
||||
|
||||
set(OTHER_FILES
|
||||
lunchmealplugin.json
|
||||
)
|
||||
|
||||
add_library(zeiterfassung-plugins-lunchmealplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS} ${OTHER_FILES})
|
||||
set(TRANSLATIONS
|
||||
translations/lunchmealplugin_en.ts
|
||||
translations/lunchmealplugin_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-lunchmealplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${RESOURCES} ${OTHER_FILES} ${TRANSLATIONS_C})
|
||||
|
||||
set_target_properties(zeiterfassung-plugins-lunchmealplugin PROPERTIES OUTPUT_NAME lunchmealplugin PREFIX "")
|
||||
|
||||
|
@@ -14,14 +14,27 @@
|
||||
<translation>Lade...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealdialog.cpp" line="12"/>
|
||||
<location filename="../lunchmealdialog.cpp" line="13"/>
|
||||
<source>Lunch meal for %0</source>
|
||||
<translation>Mittagsmenü vom %0</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LunchMealSettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../lunchmealdialog.cpp" line="12"/>
|
||||
<source>dd.MM.yyyy</source>
|
||||
<translation>dd.MM.yyyy</translation>
|
||||
<location filename="../lunchmealsettingswidget.cpp" line="14"/>
|
||||
<source>Lunch meal API:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealsettingswidget.cpp" line="17"/>
|
||||
<source>Lunch meal date format:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealsettingswidget.cpp" line="27"/>
|
||||
<source>The lunch meal api url is invalid!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@@ -32,8 +45,8 @@
|
||||
<translation>Mittagsmenü</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealwidget.cpp" line="55"/>
|
||||
<location filename="../lunchmealwidget.cpp" line="56"/>
|
||||
<location filename="../lunchmealwidget.cpp" line="53"/>
|
||||
<location filename="../lunchmealwidget.cpp" line="54"/>
|
||||
<source>Could not load lunch meal!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@@ -14,13 +14,26 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealdialog.cpp" line="12"/>
|
||||
<location filename="../lunchmealdialog.cpp" line="13"/>
|
||||
<source>Lunch meal for %0</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LunchMealSettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../lunchmealdialog.cpp" line="12"/>
|
||||
<source>dd.MM.yyyy</source>
|
||||
<location filename="../lunchmealsettingswidget.cpp" line="14"/>
|
||||
<source>Lunch meal API:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealsettingswidget.cpp" line="17"/>
|
||||
<source>Lunch meal date format:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealsettingswidget.cpp" line="27"/>
|
||||
<source>The lunch meal api url is invalid!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
@@ -32,8 +45,8 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lunchmealwidget.cpp" line="55"/>
|
||||
<location filename="../lunchmealwidget.cpp" line="56"/>
|
||||
<location filename="../lunchmealwidget.cpp" line="53"/>
|
||||
<location filename="../lunchmealwidget.cpp" line="54"/>
|
||||
<source>Could not load lunch meal!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
Reference in New Issue
Block a user