chat translations
This commit is contained in:
parent
4bb1e5da43
commit
f3a1b5de62
11 changed files with 7492 additions and 6670 deletions
|
|
@ -108,8 +108,8 @@ void ChatCore::setSelf(QSharedPointer<ChatCore> me) {
|
||||||
clearMessagesList();
|
clearMessagesList();
|
||||||
//: Deleted
|
//: Deleted
|
||||||
Utils::showInformationPopup(tr("info_toast_deleted_title"),
|
Utils::showInformationPopup(tr("info_toast_deleted_title"),
|
||||||
//: Message history has been deleted
|
//: Message history has been deleted
|
||||||
tr("info_toast_deleted_message_history"), true);
|
tr("info_toast_deleted_message_history"), true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
mChatModelConnection->makeConnectToCore(&ChatCore::lUpdateUnreadCount, [this]() {
|
mChatModelConnection->makeConnectToCore(&ChatCore::lUpdateUnreadCount, [this]() {
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,10 @@ void ChatMessageCore::setSelf(QSharedPointer<ChatMessageCore> me) {
|
||||||
mChatMessageModelConnection->invokeToModel([this] { mChatMessageModel->deleteMessageFromChatRoom(); });
|
mChatMessageModelConnection->invokeToModel([this] { mChatMessageModel->deleteMessageFromChatRoom(); });
|
||||||
});
|
});
|
||||||
mChatMessageModelConnection->makeConnectToModel(&ChatMessageModel::messageDeleted, [this]() {
|
mChatMessageModelConnection->makeConnectToModel(&ChatMessageModel::messageDeleted, [this]() {
|
||||||
Utils::showInformationPopup(tr("Supprimé"), tr("Message supprimé"), true);
|
//: Deleted
|
||||||
|
Utils::showInformationPopup(tr("info_toast_deleted_title"),
|
||||||
|
//: The message has been deleted
|
||||||
|
tr("info_toast_deleted_message"), true);
|
||||||
emit deleted();
|
emit deleted();
|
||||||
});
|
});
|
||||||
mChatMessageModelConnection->makeConnectToCore(&ChatMessageCore::lMarkAsRead, [this] {
|
mChatMessageModelConnection->makeConnectToCore(&ChatMessageCore::lMarkAsRead, [this] {
|
||||||
|
|
@ -157,4 +160,4 @@ void ChatMessageCore::setMessageState(LinphoneEnums::ChatMessageState state) {
|
||||||
|
|
||||||
std::shared_ptr<ChatMessageModel> ChatMessageCore::getModel() const {
|
std::shared_ptr<ChatMessageModel> ChatMessageCore::getModel() const {
|
||||||
return mChatMessageModel;
|
return mChatMessageModel;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -58,11 +58,11 @@ LinphoneEnums::MediaEncryption LinphoneEnums::fromLinphone(const linphone::Media
|
||||||
QString LinphoneEnums::toString(LinphoneEnums::MediaEncryption encryption) {
|
QString LinphoneEnums::toString(LinphoneEnums::MediaEncryption encryption) {
|
||||||
switch (encryption) {
|
switch (encryption) {
|
||||||
case LinphoneEnums::MediaEncryption::Dtls:
|
case LinphoneEnums::MediaEncryption::Dtls:
|
||||||
return QObject::tr("DTLS");
|
return QObject::tr("media_encryption_dtls");
|
||||||
case LinphoneEnums::MediaEncryption::None:
|
case LinphoneEnums::MediaEncryption::None:
|
||||||
return QObject::tr("None");
|
return QObject::tr("media_encryption_none");
|
||||||
case LinphoneEnums::MediaEncryption::Srtp:
|
case LinphoneEnums::MediaEncryption::Srtp:
|
||||||
return QObject::tr("SRTP");
|
return QObject::tr("media_encryption_srtp");
|
||||||
case LinphoneEnums::MediaEncryption::Zrtp:
|
case LinphoneEnums::MediaEncryption::Zrtp:
|
||||||
//: "ZRTP - Post quantique"
|
//: "ZRTP - Post quantique"
|
||||||
return QObject::tr("media_encryption_post_quantum");
|
return QObject::tr("media_encryption_post_quantum");
|
||||||
|
|
|
||||||
|
|
@ -1535,10 +1535,10 @@ VariantObject *Utils::getCurrentCallChat(CallGui *call) {
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Failed to create 1-1 conversation with"
|
qWarning() << "Failed to create 1-1 conversation with"
|
||||||
<< callModel->getRemoteAddress()->asStringUriOnly() << "!";
|
<< callModel->getRemoteAddress()->asStringUriOnly() << "!";
|
||||||
//: Failed to create 1-1 conversation with %1 !
|
|
||||||
data->mConnection->invokeToCore([] {
|
data->mConnection->invokeToCore([] {
|
||||||
|
//: Error
|
||||||
showInformationPopup(tr("information_popup_error_title"),
|
showInformationPopup(tr("information_popup_error_title"),
|
||||||
//: Failed to create 1-1 conversation with %1 !
|
//: Failed to create 1-1 conversation with %1 !
|
||||||
tr("information_popup_chatroom_creation_error_message"), false,
|
tr("information_popup_chatroom_creation_error_message"), false,
|
||||||
getCallsWindow());
|
getCallsWindow());
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -250,8 +250,10 @@ ListView {
|
||||||
spacing: Math.round(10 * DefaultStyle.dp)
|
spacing: Math.round(10 * DefaultStyle.dp)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
mainWindow.showConfirmationLambdaPopup(qsTr("Supprimer le chat ?"),
|
//: Delete the chat ?
|
||||||
qsTr("Le chat ainsi que tous ses messages seront supprimés. Souhaitez-vous continuer ?"),
|
mainWindow.showConfirmationLambdaPopup(qsTr("chat_list_delete_chat_popup_title"),
|
||||||
|
//: This chat and all its messages will be deleted. Do You want to continue ?
|
||||||
|
qsTr("chat_list_delete_chat_popup_message"),
|
||||||
"",
|
"",
|
||||||
function(confirmed) {
|
function(confirmed) {
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ Control.Control {
|
||||||
var success = UtilsCpp.copyToClipboard(modelData.core.text)
|
var success = UtilsCpp.copyToClipboard(modelData.core.text)
|
||||||
//: Copied
|
//: Copied
|
||||||
if (success) UtilsCpp.showInformationPopup(qsTr("chat_message_copied_to_clipboard_title"),
|
if (success) UtilsCpp.showInformationPopup(qsTr("chat_message_copied_to_clipboard_title"),
|
||||||
//: "in clipboard"
|
//: "to clipboard"
|
||||||
qsTr("chat_message_copied_to_clipboard_toast"))
|
qsTr("chat_message_copied_to_clipboard_toast"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,8 @@ ListView {
|
||||||
weight: Typography.p3.weight
|
weight: Typography.p3.weight
|
||||||
}
|
}
|
||||||
//: %1 is writing…
|
//: %1 is writing…
|
||||||
text: qsTr("%1 est en train d'écrire…").arg(composeLayout.composingName)
|
text: qsTr("chat_message_is_writing_info").arg(composeLayout.composingName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ RowLayout {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
//: Say something… : placeholder text for sending message text area
|
//: Say something… : placeholder text for sending message text area
|
||||||
placeholderText: qsTr("Dites quelque chose…")
|
placeholderText: qsTr("chat_view_send_area_placeholder_text")
|
||||||
placeholderTextColor: DefaultStyle.main2_400
|
placeholderTextColor: DefaultStyle.main2_400
|
||||||
color: DefaultStyle.main2_700
|
color: DefaultStyle.main2_700
|
||||||
font {
|
font {
|
||||||
|
|
@ -270,14 +270,14 @@ RowLayout {
|
||||||
detailContent: ColumnLayout {
|
detailContent: ColumnLayout {
|
||||||
DetailLayout {
|
DetailLayout {
|
||||||
//: Other actions
|
//: Other actions
|
||||||
label: qsTr("Autres actions")
|
label: qsTr("chat_view_detail_other_actions_title")
|
||||||
content: ColumnLayout {
|
content: ColumnLayout {
|
||||||
// IconLabelButton {
|
// IconLabelButton {
|
||||||
// Layout.fillWidth: true
|
// Layout.fillWidth: true
|
||||||
// Layout.preferredHeight: Math.round(50 * DefaultStyle.dp)
|
// Layout.preferredHeight: Math.round(50 * DefaultStyle.dp)
|
||||||
// icon.source: AppIcons.signOut
|
// icon.source: AppIcons.signOut
|
||||||
// //: "Quitter la conversation"
|
// //: "Quitter la conversation"
|
||||||
// text: qsTr("Quitter la conversation")
|
// text: qsTr("chat_view_detail_quit_chat_title")
|
||||||
// onClicked: {
|
// onClicked: {
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
@ -287,11 +287,13 @@ RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Math.round(50 * DefaultStyle.dp)
|
Layout.preferredHeight: Math.round(50 * DefaultStyle.dp)
|
||||||
icon.source: AppIcons.trashCan
|
icon.source: AppIcons.trashCan
|
||||||
//: "Supprimer l'historique"
|
//: "Delete history"
|
||||||
text: qsTr("Supprimer l'historique")
|
text: qsTr("chat_view_detail_delete_history_button")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
mainWindow.showConfirmationLambdaPopup(qsTr("Supprimer l'historique ?"),
|
//: Delete history ?
|
||||||
qsTr("Tous les messages seront supprimés de la chatroom.Souhaitez-vous continuer ?"),
|
mainWindow.showConfirmationLambdaPopup(qsTr("chat_view_detail_delete_history_toast_title"),
|
||||||
|
//: All the messages will be removed from the chat room. Do you want to continue ?
|
||||||
|
qsTr("chat_view_detail_delete_history_toast_message"),
|
||||||
"",
|
"",
|
||||||
function(confirmed) {
|
function(confirmed) {
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue