Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b164e54

Browse files
Moving strings to resources
1 parent 726a0d4 commit b164e54

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

src/GitHub.InlineReviews/ViewModels/CommentViewModel.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ protected void AddErrorHandler<T>(ReactiveCommand<T> command)
131131

132132
async Task DoDelete(object unused)
133133
{
134-
string deleteCommentMessageBoxText = "Are you sure you want to delete this comment?";
135-
string deleteCommentCaption = "Delete Comment";
134+
string deleteCommentMessageBoxText = VisualStudio.UI.Resources.DeleteCommentConfirmation;
135+
string deleteCommentCaption = VisualStudio.UI.Resources.DeleteCommentConfirmationCaption;
136+
136137
MessageBoxButton deleteCommentButton = MessageBoxButton.YesNo;
137138
MessageBoxImage deleteCommentImage = MessageBoxImage.Question;
138139

src/GitHub.VisualStudio.UI/Resources.Designer.cs

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GitHub.VisualStudio.UI/Resources.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,10 @@
437437
<data name="Open" xml:space="preserve">
438438
<value>Open</value>
439439
</data>
440+
<data name="DeleteCommentConfirmation" xml:space="preserve">
441+
<value>Are you sure you want to delete this comment?</value>
442+
</data>
443+
<data name="DeleteCommentConfirmationCaption" xml:space="preserve">
444+
<value>Delete Comment</value>
445+
</data>
440446
</root>

0 commit comments

Comments
 (0)