mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Merge pull request #739 from LorenDB/stringFixes
Fix some strings and translation stuff
This commit is contained in:
commit
d567eb185d
2 changed files with 3 additions and 9 deletions
|
@ -29,7 +29,7 @@ Item {
|
||||||
anchors.rightMargin: 10
|
anchors.rightMargin: 10
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
color: Nheko.theme.red
|
color: Nheko.theme.red
|
||||||
text: qsTr("You will be pinging the whole room")
|
text: qsTr("You are about to notify the whole room")
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,18 +23,12 @@ NotificationsManager::getMessageTemplate(const mtx::responses::Notification ¬
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote) {
|
if (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote) {
|
||||||
return tr("* %1 %2",
|
return QString("* %1 %2").arg(sender);
|
||||||
"Format an emote message in a notification, %1 is the sender, %2 the "
|
|
||||||
"message")
|
|
||||||
.arg(sender);
|
|
||||||
} else if (utils::isReply(notification.event)) {
|
} else if (utils::isReply(notification.event)) {
|
||||||
return tr("%1 replied: %2",
|
return tr("%1 replied: %2",
|
||||||
"Format a reply in a notification. %1 is the sender, %2 the message")
|
"Format a reply in a notification. %1 is the sender, %2 the message")
|
||||||
.arg(sender);
|
.arg(sender);
|
||||||
} else {
|
} else {
|
||||||
return tr("%1: %2",
|
return QString("%1: %2").arg(sender);
|
||||||
"Format a normal message in a notification. %1 is the sender, %2 the "
|
|
||||||
"message")
|
|
||||||
.arg(sender);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue