1
0
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:
Dan Balasescu 2022-11-29 13:47:46 +09:00 committed by GitHub
commit 198303513b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
} }
} }