Merge pull request #16 from QuasarApp/task_15

Add new languages and translation
This commit is contained in:
Oleg-designer 2021-05-29 13:34:26 +03:00 committed by GitHub
commit 032cd05c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 66 additions and 2 deletions

View File

@ -34,10 +34,14 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
set(LANGS ${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/en.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/ru.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/uk.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/ja.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/tr.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/uk.ts)
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/zh.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/de.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/fr.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/es.ts
${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/pl.ts)
prepareQM( ${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR} "${LANGS}")

View File

@ -11,6 +11,11 @@
<file>qmlNotify_languages/ja.qm</file>
<file>qmlNotify_languages/en.qm</file>
<file>qmlNotify_languages/uk.qm</file>
<file>qmlNotify_languages/pl.qm</file>
<file>qmlNotify_languages/es.qm</file>
<file>qmlNotify_languages/fr.qm</file>
<file>qmlNotify_languages/de.qm</file>
<file>qmlNotify_languages/zh.qm</file>
</qresource>
<qresource prefix="/icons">
<file alias="warning">icons/Warning.png</file>

11
qmlNotify_languages/de.ts Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de_DE" sourcelanguage="en">
<context>
<name>NotificationForm</name>
<message>
<source>Message</source>
<translation>Botschaft</translation>
</message>
</context>
</TS>

11
qmlNotify_languages/es.ts Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="es" sourcelanguage="en">
<context>
<name>NotificationForm</name>
<message>
<source>Message</source>
<translation>Mensaje</translation>
</message>
</context>
</TS>

11
qmlNotify_languages/fr.ts Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr" sourcelanguage="en">
<context>
<name>NotificationForm</name>
<message>
<source>Message</source>
<translation>Un message</translation>
</message>
</context>
</TS>

11
qmlNotify_languages/pl.ts Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="pl" sourcelanguage="en">
<context>
<name>NotificationForm</name>
<message>
<source>Message</source>
<translation>Wiadomość</translation>
</message>
</context>
</TS>

11
qmlNotify_languages/zh.ts Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh" sourcelanguage="en">
<context>
<name>NotificationForm</name>
<message>
<source>Message</source>
<translation></translation>
</message>
</context>
</TS>