mirror of
https://github.com/QuasarApp/SimpleQmlNotify.git
synced 2025-04-26 05:34:34 +00:00
ref #11 add translation
This commit is contained in:
parent
48a1b6fd22
commit
09012a7169
12
README.md
12
README.md
@ -113,3 +113,15 @@ Connections {
|
||||
}
|
||||
|
||||
```
|
||||
### Include translations
|
||||
|
||||
For include translations into your projects you need to use the QuasarAppUtils::Locales class. See oficiald [documentation](https://quasarapp.ddns.net:3031/docs/QuasarApp/QuasarAppLib/latest/classQuasarAppUtils_1_1Locales.html)
|
||||
|
||||
```cpp
|
||||
if(!QuasarAppUtils::Locales::init(locale, {":/qmlNotify_languages/"})) {
|
||||
QuasarAppUtils::Params::log("Error load language : " , QuasarAppUtils::Error);
|
||||
}
|
||||
```
|
||||
|
||||
Or you can manually load needed qm file.
|
||||
All qm files located in qmlNotify_languages folder.
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<TS version="2.1" language="en_US">
|
||||
<context>
|
||||
<name>NotificationForm</name>
|
||||
<message>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Message</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<TS version="2.1" language="ja_JP">
|
||||
<context>
|
||||
<name>NotificationForm</name>
|
||||
<message>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>メッセージ</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<TS version="2.1" language="ru_RU">
|
||||
<context>
|
||||
<name>NotificationForm</name>
|
||||
<message>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Cообщение</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<TS version="2.1" language="tr_TR">
|
||||
<context>
|
||||
<name>NotificationForm</name>
|
||||
<message>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>İleti</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<TS version="2.1" language="uk_UA">
|
||||
<context>
|
||||
<name>NotificationForm</name>
|
||||
<message>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
|
||||
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Повідомлення</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
Loading…
x
Reference in New Issue
Block a user