first translations experiments

This commit is contained in:
Blue 2019-10-04 18:12:08 +03:00
parent 475a12c28e
commit 746fdef013
5 changed files with 594 additions and 1 deletions

View File

@ -57,7 +57,7 @@ void Core::Archive::open(const QString& account)
}
mdb_env_set_maxdbs(environment, 4);
mdb_env_set_mapsize(environment, 1UL * 1024UL * 1024UL * 1024UL);
mdb_env_set_mapsize(environment, 512UL * 1024UL * 1024UL);
mdb_env_open(environment, path.toStdString().c_str(), 0, 0664);
MDB_txn *txn;

283
translations/main.ts Normal file
View File

@ -0,0 +1,283 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>Account</name>
<message>
<location filename="ui/widgets/account.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="127"/>
<source>Account</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="40"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="129"/>
<source>Your account login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="47"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="131"/>
<source>Server</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="54"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="133"/>
<source>A server address of your account. Like 404.city or macaw.me</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="61"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="135"/>
<source>Login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="68"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="136"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="75"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="138"/>
<source>Password of your account</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="94"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="142"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="101"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="144"/>
<source>Just a name how would you call this account, doesn&apos;t affect anything</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="108"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="146"/>
<source>Resource</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="115"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="148"/>
<source>A resource name like &quot;Home&quot; or &quot;Work&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="118"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="150"/>
<source>QXmpp</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Accounts</name>
<message>
<location filename="ui/widgets/accounts.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="108"/>
<source>Accounts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="45"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="109"/>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="86"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="110"/>
<source>Add</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="96"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="111"/>
<source>Edit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="106"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="112"/>
<source>Change password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="129"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="113"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>JoinConference</name>
<message>
<location filename="ui/widgets/joinconference.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="116"/>
<source>Join new conference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="22"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="117"/>
<source>JID</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="29"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="119"/>
<source>Room JID</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="32"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="121"/>
<source>identifier@conference.server.org</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="39"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="122"/>
<source>Account</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="49"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="123"/>
<source>Join on login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="56"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="125"/>
<source>If checked Squawk will try to join this conference on login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="66"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="128"/>
<source>Nick name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="73"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="130"/>
<source>Your nick name for that conference. If you leave this field empty your account name will be used as a nick name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="76"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="132"/>
<source>John</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NewContact</name>
<message>
<location filename="ui/widgets/newcontact.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="103"/>
<source>Add new contact</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="22"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="104"/>
<source>Account</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="29"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="106"/>
<source>An account that is going to have new contact</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="36"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="108"/>
<source>JID</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="43"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="110"/>
<source>Jabber id of your new contact</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="46"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="112"/>
<source>name@server.dmn</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="53"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="113"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="60"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="115"/>
<source>The way this new contact will be labeled in your roster (optional)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="63"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="117"/>
<source>John Smith</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Squawk</name>
<message>
<location filename="ui/squawk.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="130"/>
<source>squawk</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/squawk.ui" line="75"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="136"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/squawk.ui" line="81"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="137"/>
<source>Squawk</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/squawk.ui" line="96"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="131"/>
<source>Accounts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/squawk.ui" line="105"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="132"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/squawk.ui" line="117"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="133"/>
<source>Add contact</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/squawk.ui" line="128"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="134"/>
<source>Add conference</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

BIN
translations/main_ru.qm Normal file

Binary file not shown.

22
translations/main_ru.qph Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE QPH>
<QPH language="ru_RU">
<phrase>
<source>Add contact</source>
<target>Добавить контакт</target>
<definition>Opens add contact dialog</definition>
</phrase>
<phrase>
<source>Add conference</source>
<target>Присоединиться к беседе</target>
<definition>Opens a dialog to join conference</definition>
</phrase>
<phrase>
<source>Quit</source>
<target>Выйти</target>
<definition>Quits the application</definition>
</phrase>
<phrase>
<source>Account</source>
<target>Учетная запись</target>
</phrase>
</QPH>

288
translations/main_ru.ts Normal file
View File

@ -0,0 +1,288 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru_RU">
<context>
<name>Account</name>
<message>
<location filename="ui/widgets/account.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="127"/>
<source>Account</source>
<translatorcomment>Заголовок окна</translatorcomment>
<translation>Учетная запись</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="40"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="129"/>
<source>Your account login</source>
<translation>Имя пользователя Вашей учетной записи</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="47"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="131"/>
<source>Server</source>
<translation>Сервер</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="54"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="133"/>
<source>A server address of your account. Like 404.city or macaw.me</source>
<translation>Адресс сервера вашей учетной записи (выглядит как 404.city или macaw.me)</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="61"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="135"/>
<source>Login</source>
<translation>Имя учетной записи</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="68"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="136"/>
<source>Password</source>
<translation>Пароль</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="75"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="138"/>
<source>Password of your account</source>
<translation>Пароль вашей учетной записи</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="94"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="142"/>
<source>Name</source>
<translation>Имя</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="101"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="144"/>
<source>Just a name how would you call this account, doesn&apos;t affect anything</source>
<translation>Просто имя, то как Вы называете свою учетную запись, может быть любым</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="108"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="146"/>
<source>Resource</source>
<translation>Ресурс</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="115"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="148"/>
<source>A resource name like &quot;Home&quot; or &quot;Work&quot;</source>
<translation>Имя этой программы для ваших контактов, может быть &quot;Home&quot; или &quot;Phone&quot;</translation>
</message>
<message>
<location filename="ui/widgets/account.ui" line="118"/>
<location filename="build/ui/squawkUI_autogen/include/ui_account.h" line="150"/>
<source>QXmpp</source>
<translatorcomment>Ресурс по умолчанию</translatorcomment>
<translation>QXmpp</translation>
</message>
</context>
<context>
<name>Accounts</name>
<message>
<location filename="ui/widgets/accounts.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="108"/>
<source>Accounts</source>
<translation>Учетные записи</translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="45"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="109"/>
<source>Delete</source>
<translation>Удалить</translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="86"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="110"/>
<source>Add</source>
<translation>Добавить</translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="96"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="111"/>
<source>Edit</source>
<translation>Редактировать</translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="106"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="112"/>
<source>Change password</source>
<translation>Изменить пароль</translation>
</message>
<message>
<location filename="ui/widgets/accounts.ui" line="129"/>
<location filename="build/ui/squawkUI_autogen/include/ui_accounts.h" line="113"/>
<source>Connect</source>
<translation>Подключить</translation>
</message>
</context>
<context>
<name>JoinConference</name>
<message>
<location filename="ui/widgets/joinconference.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="116"/>
<source>Join new conference</source>
<translatorcomment>Заголовок окна</translatorcomment>
<translation type="unfinished">Присоединиться к новой беседе</translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="22"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="117"/>
<source>JID</source>
<translation>JID</translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="29"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="119"/>
<source>Room JID</source>
<translation type="unfinished">Jabber-идентификатор беседы</translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="32"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="121"/>
<source>identifier@conference.server.org</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="39"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="122"/>
<source>Account</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="49"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="123"/>
<source>Join on login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="56"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="125"/>
<source>If checked Squawk will try to join this conference on login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="66"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="128"/>
<source>Nick name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="73"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="130"/>
<source>Your nick name for that conference. If you leave this field empty your account name will be used as a nick name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="ui/widgets/joinconference.ui" line="76"/>
<location filename="build/ui/squawkUI_autogen/include/ui_joinconference.h" line="132"/>
<source>John</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NewContact</name>
<message>
<location filename="ui/widgets/newcontact.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="103"/>
<source>Add new contact</source>
<translatorcomment>Заголовок окна</translatorcomment>
<translation>Добавление нового контакта</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="22"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="104"/>
<source>Account</source>
<translation>Учетная запись</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="29"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="106"/>
<source>An account that is going to have new contact</source>
<translation>Учетная запись для которой будет добавлен контакт</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="36"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="108"/>
<source>JID</source>
<translation>JID</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="43"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="110"/>
<source>Jabber id of your new contact</source>
<translation>Jabber-идентификатор нового контакта</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="46"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="112"/>
<source>name@server.dmn</source>
<translatorcomment>Placeholder поля ввода JID</translatorcomment>
<translation>name@server.dmn</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="53"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="113"/>
<source>Name</source>
<translation>Имя</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="60"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="115"/>
<source>The way this new contact will be labeled in your roster (optional)</source>
<translation>То, как будет подписан контакт в вашем списке контактов (не обязательно)</translation>
</message>
<message>
<location filename="ui/widgets/newcontact.ui" line="63"/>
<location filename="build/ui/squawkUI_autogen/include/ui_newcontact.h" line="117"/>
<source>John Smith</source>
<translation>Иван Иванов</translation>
</message>
</context>
<context>
<name>Squawk</name>
<message>
<location filename="ui/squawk.ui" line="14"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="130"/>
<source>squawk</source>
<translation>Squawk</translation>
</message>
<message>
<location filename="ui/squawk.ui" line="75"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="136"/>
<source>Settings</source>
<translation>Настройки</translation>
</message>
<message>
<location filename="ui/squawk.ui" line="81"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="137"/>
<source>Squawk</source>
<translation>Squawk</translation>
</message>
<message>
<location filename="ui/squawk.ui" line="96"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="131"/>
<source>Accounts</source>
<translation>Учетные записи</translation>
</message>
<message>
<location filename="ui/squawk.ui" line="105"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="132"/>
<source>Quit</source>
<translation>Выйти</translation>
</message>
<message>
<location filename="ui/squawk.ui" line="117"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="133"/>
<source>Add contact</source>
<translation>Добавить контакт</translation>
</message>
<message>
<location filename="ui/squawk.ui" line="128"/>
<location filename="build/ui/squawkUI_autogen/include/ui_squawk.h" line="134"/>
<source>Add conference</source>
<translation>Присоединиться к беседе</translation>
</message>
</context>
</TS>