Added translations
This commit is contained in:
@@ -30,7 +30,16 @@ set(FORMS
|
|||||||
qstringlistwidget.ui
|
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)
|
target_compile_definitions(dbguilib PRIVATE DBGUILIB_LIBRARY)
|
||||||
|
|
||||||
|
19
translations/dbguilib_de.ts
Normal file
19
translations/dbguilib_de.ts
Normal 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>
|
19
translations/dbguilib_en.ts
Normal file
19
translations/dbguilib_en.ts
Normal 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>
|
Reference in New Issue
Block a user