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

View File

@ -331,11 +331,11 @@ namespace osu.Game.Overlays.Comments
if (WasDeleted)
makeDeleted();
actionsContainer.AddLink("Copy link", copyUrl);
actionsContainer.AddLink(CommonStrings.ButtonsPermalink, copyUrl);
actionsContainer.AddArbitraryDrawable(Empty().With(d => d.Width = 10));
if (Comment.UserId.HasValue && Comment.UserId.Value == api.LocalUser.Value.Id)
actionsContainer.AddLink("Delete", deleteComment);
actionsContainer.AddLink(CommonStrings.ButtonsDelete, deleteComment);
else
actionsContainer.AddArbitraryDrawable(new CommentReportButton(Comment));
@ -553,12 +553,12 @@ namespace osu.Game.Overlays.Comments
};
}
private string getParentMessage()
private LocalisableString getParentMessage()
{
if (parentComment == null)
return string.Empty;
return parentComment.HasMessage ? parentComment.Message : parentComment.IsDeleted ? "deleted" : string.Empty;
return parentComment.HasMessage ? parentComment.Message : parentComment.IsDeleted ? CommentsStrings.Deleted : string.Empty;
}
}
}