chat translations

This commit is contained in:
gaelle 2025-05-13 14:47:57 +02:00 committed by Gaelle Braud
parent 4bb1e5da43
commit f3a1b5de62
11 changed files with 7492 additions and 6670 deletions

View file

@ -108,8 +108,8 @@ void ChatCore::setSelf(QSharedPointer<ChatCore> me) {
clearMessagesList();
//: Deleted
Utils::showInformationPopup(tr("info_toast_deleted_title"),
//: Message history has been deleted
tr("info_toast_deleted_message_history"), true);
//: Message history has been deleted
tr("info_toast_deleted_message_history"), true);
});
});
mChatModelConnection->makeConnectToCore(&ChatCore::lUpdateUnreadCount, [this]() {

View file

@ -66,7 +66,10 @@ void ChatMessageCore::setSelf(QSharedPointer<ChatMessageCore> me) {
mChatMessageModelConnection->invokeToModel([this] { mChatMessageModel->deleteMessageFromChatRoom(); });
});
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();
});
mChatMessageModelConnection->makeConnectToCore(&ChatMessageCore::lMarkAsRead, [this] {
@ -157,4 +160,4 @@ void ChatMessageCore::setMessageState(LinphoneEnums::ChatMessageState state) {
std::shared_ptr<ChatMessageModel> ChatMessageCore::getModel() const {
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

View file

@ -58,11 +58,11 @@ LinphoneEnums::MediaEncryption LinphoneEnums::fromLinphone(const linphone::Media
QString LinphoneEnums::toString(LinphoneEnums::MediaEncryption encryption) {
switch (encryption) {
case LinphoneEnums::MediaEncryption::Dtls:
return QObject::tr("DTLS");
return QObject::tr("media_encryption_dtls");
case LinphoneEnums::MediaEncryption::None:
return QObject::tr("None");
return QObject::tr("media_encryption_none");
case LinphoneEnums::MediaEncryption::Srtp:
return QObject::tr("SRTP");
return QObject::tr("media_encryption_srtp");
case LinphoneEnums::MediaEncryption::Zrtp:
//: "ZRTP - Post quantique"
return QObject::tr("media_encryption_post_quantum");

View file

@ -1535,10 +1535,10 @@ VariantObject *Utils::getCurrentCallChat(CallGui *call) {
} else {
qWarning() << "Failed to create 1-1 conversation with"
<< callModel->getRemoteAddress()->asStringUriOnly() << "!";
//: Failed to create 1-1 conversation with %1 !
data->mConnection->invokeToCore([] {
//: Error
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,
getCallsWindow());
});

View file

@ -250,8 +250,10 @@ ListView {
spacing: Math.round(10 * DefaultStyle.dp)
Layout.fillWidth: true
onClicked: {
mainWindow.showConfirmationLambdaPopup(qsTr("Supprimer le chat ?"),
qsTr("Le chat ainsi que tous ses messages seront supprimés. Souhaitez-vous continuer ?"),
//: Delete the chat ?
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) {
if (confirmed) {

View file

@ -188,7 +188,7 @@ Control.Control {
var success = UtilsCpp.copyToClipboard(modelData.core.text)
//: Copied
if (success) UtilsCpp.showInformationPopup(qsTr("chat_message_copied_to_clipboard_title"),
//: "in clipboard"
//: "to clipboard"
qsTr("chat_message_copied_to_clipboard_toast"))
}
}

View file

@ -105,8 +105,8 @@ ListView {
weight: Typography.p3.weight
}
//: %1 is writing
text: qsTr("%1 est en train d'écrire…").arg(composeLayout.composingName)
text: qsTr("chat_message_is_writing_info").arg(composeLayout.composingName)
}
}
}
}
}

View file

@ -195,7 +195,7 @@ RowLayout {
anchors.right: parent.right
wrapMode: TextEdit.WordWrap
//: 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
color: DefaultStyle.main2_700
font {
@ -270,14 +270,14 @@ RowLayout {
detailContent: ColumnLayout {
DetailLayout {
//: Other actions
label: qsTr("Autres actions")
label: qsTr("chat_view_detail_other_actions_title")
content: ColumnLayout {
// IconLabelButton {
// Layout.fillWidth: true
// Layout.preferredHeight: Math.round(50 * DefaultStyle.dp)
// icon.source: AppIcons.signOut
// //: "Quitter la conversation"
// text: qsTr("Quitter la conversation")
// text: qsTr("chat_view_detail_quit_chat_title")
// onClicked: {
// }
@ -287,11 +287,13 @@ RowLayout {
Layout.fillWidth: true
Layout.preferredHeight: Math.round(50 * DefaultStyle.dp)
icon.source: AppIcons.trashCan
//: "Supprimer l'historique"
text: qsTr("Supprimer l'historique")
//: "Delete history"
text: qsTr("chat_view_detail_delete_history_button")
onClicked: {
mainWindow.showConfirmationLambdaPopup(qsTr("Supprimer l'historique ?"),
qsTr("Tous les messages seront supprimés de la chatroom.Souhaitez-vous continuer ?"),
//: Delete history ?
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) {
if (confirmed) {