Grammar fixes

This commit is contained in:
expectocode
2019-05-19 19:44:33 +01:00
parent 6bf7e7e0c9
commit b3f6bf7b9d

View File

@@ -134,16 +134,16 @@ class SpectralRoom : public Room {
QString text{};
if (e.isRename()) {
if (e.displayName().isEmpty())
text = tr("cleared the display name");
text = tr("cleared their display name");
else
text = tr("changed the display name to %1")
text = tr("changed their display name to %1")
.arg(e.displayName().toHtmlEscaped());
}
if (e.isAvatarUpdate()) {
if (!text.isEmpty())
text += " and ";
if (e.avatarUrl().isEmpty())
text += tr("cleared the avatar");
text += tr("cleared their avatar");
else if (e.prevContent()->avatarUrl.isEmpty())
text += tr("set an avatar");
else