Added translations

This commit is contained in:
Daniel Brunner
2018-10-15 20:48:41 +02:00
parent 2b2bb578d8
commit e21b325a30
3 changed files with 48 additions and 1 deletions

View File

@@ -30,7 +30,16 @@ set(FORMS
qstringlistwidget.ui
)
add_library(dbguilib SHARED ${HEADERS} ${SOURCES} ${FORMS})
set(TRANSLATIONS
translations/dbguilib_en.ts
translations/dbguilib_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(dbguilib SHARED ${HEADERS} ${SOURCES} ${FORMS} ${TRANSLATIONS_C})
target_compile_definitions(dbguilib PRIVATE DBGUILIB_LIBRARY)

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de_DE">
<context>
<name>QStringListWidget</name>
<message>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add entry</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Delete entry</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>QStringListWidget</name>
<message>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add entry</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Delete entry</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>