mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix some translation strings, prepare french
This commit is contained in:
parent
537d55bd7f
commit
2c9d077787
|
@ -12,6 +12,8 @@ TEMPLATE = app
|
||||||
FORMS += widget.ui
|
FORMS += widget.ui
|
||||||
CONFIG += c++11
|
CONFIG += c++11
|
||||||
|
|
||||||
|
TRANSLATIONS = translations/fr.ts
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
res.qrc
|
res.qrc
|
||||||
|
|
||||||
|
|
306
translations/fr.ts
Normal file
306
translations/fr.ts
Normal file
|
@ -0,0 +1,306 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.0">
|
||||||
|
<context>
|
||||||
|
<name>AddFriendForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="15"/>
|
||||||
|
<source>Add Friends</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="18"/>
|
||||||
|
<source>Tox ID</source>
|
||||||
|
<comment>Tox ID of the person you're sending a friend request to</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="19"/>
|
||||||
|
<source>Message</source>
|
||||||
|
<comment>The message you send in friend requests</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="20"/>
|
||||||
|
<source>Send friend request</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="67"/>
|
||||||
|
<source>Tox me maybe?</source>
|
||||||
|
<comment>Default message in friend requests if the field is left blank. Write something appropriate!</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="75"/>
|
||||||
|
<source>Please fill in a valid Tox ID</source>
|
||||||
|
<comment>Tox ID of the friend you're sending a friend request to</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="90"/>
|
||||||
|
<source>Error while looking up DNS</source>
|
||||||
|
<comment>The DNS gives the Tox ID associated to toxme.se addresses</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="96"/>
|
||||||
|
<source>Unexpected number of text records</source>
|
||||||
|
<comment>Error with the DNS</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="102"/>
|
||||||
|
<source>Unexpected number of values in text record</source>
|
||||||
|
<comment>Error with the DNS</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="109"/>
|
||||||
|
<source>The DNS lookup does not contain any Tox ID</source>
|
||||||
|
<comment>Error with the DNS</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="115"/>
|
||||||
|
<location filename="../widget/form/addfriendform.cpp" line="121"/>
|
||||||
|
<source>The DNS lookup does not contain a valid Tox ID</source>
|
||||||
|
<comment>Error with the DNS</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Camera</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/camera.cpp" line="145"/>
|
||||||
|
<source>Camera eror</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/camera.cpp" line="146"/>
|
||||||
|
<source>Camera format %1 not supported, can't use the camera</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>ChatForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/chatform.cpp" line="261"/>
|
||||||
|
<source>Send a file</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/chatform.cpp" line="586"/>
|
||||||
|
<location filename="../widget/form/chatform.cpp" line="592"/>
|
||||||
|
<source>Save chat log</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CopyableElideLabel</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/copyableelidelabel.cpp" line="29"/>
|
||||||
|
<source>Copy</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>FileTransfertWidget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/filetransfertwidget.cpp" line="231"/>
|
||||||
|
<source>Save a file</source>
|
||||||
|
<comment>Title of the file saving dialog</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>FriendRequestDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/friendrequestdialog.cpp" line="30"/>
|
||||||
|
<source>Friend request</source>
|
||||||
|
<comment>Title of the window to aceept/deny a friend request</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/friendrequestdialog.cpp" line="32"/>
|
||||||
|
<source>Someone wants to make friends with you</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/friendrequestdialog.cpp" line="33"/>
|
||||||
|
<source>User ID:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/friendrequestdialog.cpp" line="37"/>
|
||||||
|
<source>Friend request message:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/friendrequestdialog.cpp" line="44"/>
|
||||||
|
<source>Accept</source>
|
||||||
|
<comment>Accept a friend request</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/tool/friendrequestdialog.cpp" line="45"/>
|
||||||
|
<source>Reject</source>
|
||||||
|
<comment>Reject a friend request</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>FriendWidget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/friendwidget.cpp" line="65"/>
|
||||||
|
<source>Copy friend ID</source>
|
||||||
|
<comment>Menu to copy the Tox ID of that friend</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/friendwidget.cpp" line="66"/>
|
||||||
|
<source>Invite in group</source>
|
||||||
|
<comment>Menu to invite a friend in a groupchat</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/friendwidget.cpp" line="76"/>
|
||||||
|
<source>Remove friend</source>
|
||||||
|
<comment>Menu to remove the friend from our friendlist</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>GroupChatForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/groupchatform.cpp" line="32"/>
|
||||||
|
<source>%1 users in chat</source>
|
||||||
|
<comment>Number of users in chat</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/groupchatform.cpp" line="155"/>
|
||||||
|
<source><Unknown></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/groupchatform.cpp" line="220"/>
|
||||||
|
<source>%1 users in chat</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/groupchatform.cpp" line="239"/>
|
||||||
|
<source>Save chat log</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>GroupWidget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/groupwidget.cpp" line="68"/>
|
||||||
|
<source>Quit group</source>
|
||||||
|
<comment>Menu to quit a groupchat</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/groupwidget.cpp" line="38"/>
|
||||||
|
<location filename="../widget/groupwidget.cpp" line="126"/>
|
||||||
|
<source>%1 users in chat</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/groupwidget.cpp" line="40"/>
|
||||||
|
<location filename="../widget/groupwidget.cpp" line="128"/>
|
||||||
|
<source>0 users in chat</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SelfCamView</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/selfcamview.cpp" line="16"/>
|
||||||
|
<source>Tox video test</source>
|
||||||
|
<comment>Title of the window to test the video/webcam</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SettingsForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/settingsform.cpp" line="13"/>
|
||||||
|
<source>User Settings</source>
|
||||||
|
<comment>"Headline" of the window</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/settingsform.cpp" line="16"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<comment>Username/nick</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/settingsform.cpp" line="17"/>
|
||||||
|
<source>Status</source>
|
||||||
|
<comment>Status message</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/settingsform.cpp" line="22"/>
|
||||||
|
<source>Test video</source>
|
||||||
|
<comment>Text on a button to test the video/webcam</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/form/settingsform.cpp" line="23"/>
|
||||||
|
<source>Enable IPv6 (recommended)</source>
|
||||||
|
<comment>Text on a checkbox to enable IPv6</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Widget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget.ui" line="20"/>
|
||||||
|
<source>Tox</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget.ui" line="1593"/>
|
||||||
|
<source>Your name</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget.ui" line="1675"/>
|
||||||
|
<source>Your status</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget.ui" line="2811"/>
|
||||||
|
<source>Close</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget.ui" line="2814"/>
|
||||||
|
<source>Ctrl+Q</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/widget.cpp" line="1112"/>
|
||||||
|
<source>Online</source>
|
||||||
|
<comment>Button to set your status to 'Online'</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/widget.cpp" line="1113"/>
|
||||||
|
<source>Away</source>
|
||||||
|
<comment>Button to set your status to 'Away'</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../widget/widget.cpp" line="1114"/>
|
||||||
|
<source>Busy</source>
|
||||||
|
<comment>Button to set your status to 'Busy'</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
|
@ -29,7 +29,7 @@ GroupChatForm::GroupChatForm(Group* chatGroup)
|
||||||
name->setText(group->widget->name.text());
|
name->setText(group->widget->name.text());
|
||||||
name->setFont(bold);
|
name->setFont(bold);
|
||||||
nusers->setFont(small);
|
nusers->setFont(small);
|
||||||
nusers->setText(tr("%1 users in chat").arg(group->peers.size()));
|
nusers->setText(GroupChatForm::tr("%1 users in chat","Number of users in chat").arg(group->peers.size()));
|
||||||
avatar->setPixmap(QPixmap(":/img/group.png"));
|
avatar->setPixmap(QPixmap(":/img/group.png"));
|
||||||
QString names;
|
QString names;
|
||||||
for (QString& s : group->peers)
|
for (QString& s : group->peers)
|
||||||
|
|
|
@ -35,9 +35,9 @@ GroupWidget::GroupWidget(int GroupId, QString Name)
|
||||||
this->setPalette(pal3);
|
this->setPalette(pal3);
|
||||||
Group* g = GroupList::findGroup(groupId);
|
Group* g = GroupList::findGroup(groupId);
|
||||||
if (g)
|
if (g)
|
||||||
nusers.setText(QString(tr("%1 users in chat")).arg(g->peers.size()));
|
nusers.setText(GroupWidget::tr("%1 users in chat").arg(g->peers.size()));
|
||||||
else
|
else
|
||||||
nusers.setText(tr("0 users in chat"));
|
nusers.setText(GroupWidget::tr("0 users in chat"));
|
||||||
|
|
||||||
textLayout.addStretch();
|
textLayout.addStretch();
|
||||||
textLayout.addWidget(&name);
|
textLayout.addWidget(&name);
|
||||||
|
|
|
@ -13,7 +13,7 @@ SelfCamView::SelfCamView(Camera* Cam, QWidget* parent)
|
||||||
mainLayout{new QHBoxLayout()}, cam(Cam)
|
mainLayout{new QHBoxLayout()}, cam(Cam)
|
||||||
{
|
{
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);
|
||||||
setWindowTitle(tr("Tox video test","Title of the window to test the video/webcam"));
|
setWindowTitle(SelfCamView::tr("Tox video test","Title of the window to test the video/webcam"));
|
||||||
setMinimumSize(320,240);
|
setMinimumSize(320,240);
|
||||||
|
|
||||||
updateDisplayTimer.setInterval(5);
|
updateDisplayTimer.setInterval(5);
|
||||||
|
|
|
@ -26,7 +26,7 @@ CopyableElideLabel::CopyableElideLabel(QWidget* parent) :
|
||||||
setContextMenuPolicy(Qt::CustomContextMenu);
|
setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(this, &CopyableElideLabel::customContextMenuRequested, this, &CopyableElideLabel::showContextMenu);
|
connect(this, &CopyableElideLabel::customContextMenuRequested, this, &CopyableElideLabel::showContextMenu);
|
||||||
|
|
||||||
actionCopy = new QAction(tr("Copy"), this);
|
actionCopy = new QAction(CopyableElideLabel::tr("Copy"), this);
|
||||||
connect(actionCopy, &QAction::triggered, [this]() {
|
connect(actionCopy, &QAction::triggered, [this]() {
|
||||||
QApplication::clipboard()->setText(text());
|
QApplication::clipboard()->setText(text());
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
class CopyableElideLabel : public ElideLabel
|
class CopyableElideLabel : public ElideLabel
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit CopyableElideLabel(QWidget* parent = 0);
|
explicit CopyableElideLabel(QWidget* parent = 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user