mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 08:12:53 +08:00
Merge pull request #21450 from Feodor0090/comments-btns-loc
Add missing localization in `DrawableComment`
This commit is contained in:
commit
198303513b
@ -331,11 +331,11 @@ namespace osu.Game.Overlays.Comments
|
|||||||
if (WasDeleted)
|
if (WasDeleted)
|
||||||
makeDeleted();
|
makeDeleted();
|
||||||
|
|
||||||
actionsContainer.AddLink("Copy link", copyUrl);
|
actionsContainer.AddLink(CommonStrings.ButtonsPermalink, copyUrl);
|
||||||
actionsContainer.AddArbitraryDrawable(Empty().With(d => d.Width = 10));
|
actionsContainer.AddArbitraryDrawable(Empty().With(d => d.Width = 10));
|
||||||
|
|
||||||
if (Comment.UserId.HasValue && Comment.UserId.Value == api.LocalUser.Value.Id)
|
if (Comment.UserId.HasValue && Comment.UserId.Value == api.LocalUser.Value.Id)
|
||||||
actionsContainer.AddLink("Delete", deleteComment);
|
actionsContainer.AddLink(CommonStrings.ButtonsDelete, deleteComment);
|
||||||
else
|
else
|
||||||
actionsContainer.AddArbitraryDrawable(new CommentReportButton(Comment));
|
actionsContainer.AddArbitraryDrawable(new CommentReportButton(Comment));
|
||||||
|
|
||||||
@ -553,12 +553,12 @@ namespace osu.Game.Overlays.Comments
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private string getParentMessage()
|
private LocalisableString getParentMessage()
|
||||||
{
|
{
|
||||||
if (parentComment == null)
|
if (parentComment == null)
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
|
||||||
return parentComment.HasMessage ? parentComment.Message : parentComment.IsDeleted ? "deleted" : string.Empty;
|
return parentComment.HasMessage ? parentComment.Message : parentComment.IsDeleted ? CommentsStrings.Deleted : string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user