Skip to content

Commit 2bf5641

Browse files
add resource string for start and stop
1 parent 08a2e79 commit 2bf5641

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

src/DataShare/DataShare/Properties/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/DataShare/DataShare/Properties/Resources.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,10 @@
144144
<data name="RevokeShareSubscriptionAccess" xml:space="preserve">
145145
<value>Revoking access of share subscription</value>
146146
</data>
147+
<data name="StartSynchronizationConfirmation" xml:space="preserve">
148+
<value>Are you sure you want to start synchronization?</value>
149+
</data>
150+
<data name="StopSynchronizationConfirmation" xml:space="preserve">
151+
<value>Are you sure you want to stop this synchronization?</value>
152+
</data>
147153
</root>

src/DataShare/DataShare/Synchronization/StartAzDataShareSynchronization.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace Microsoft.Azure.Commands.DataShare.Synchronization
2525
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2626
using Microsoft.Azure.PowerShell.Cmdlets.DataShare.Extensions;
2727
using Microsoft.Azure.PowerShell.Cmdlets.DataShare.Models;
28+
using Microsoft.Azure.PowerShell.Cmdlets.DataShare.Properties;
2829

2930
/// <summary>
3031
/// Defines the Start-AzDataShareSubscriptionSynchronization cmdlet.
@@ -117,7 +118,7 @@ public override void ExecuteCmdlet()
117118
this.SetParametersIfNeeded();
118119

119120
this.ConfirmAction(
120-
"Start Synchronization",
121+
Resources.StartSynchronizationConfirmation,
121122
this.ShareSubscriptionName,
122123
this.StartSynchronization);
123124
}

src/DataShare/DataShare/Synchronization/StopAzDataShareSubscriptionSynchronization.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Microsoft.Azure.Commands.DataShare.Synchronization
2626
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2727
using Microsoft.Azure.PowerShell.Cmdlets.DataShare.Extensions;
2828
using Microsoft.Azure.PowerShell.Cmdlets.DataShare.Models;
29+
using Microsoft.Azure.PowerShell.Cmdlets.DataShare.Properties;
2930

3031
/// <summary>
3132
/// Defines the Stop-AzDataShareSubscriptionSynchronization cmdlet.
@@ -116,7 +117,7 @@ public override void ExecuteCmdlet()
116117
this.SetParametersIfNeeded();
117118

118119
this.ConfirmAction(
119-
"Stop synchronization",
120+
Resources.StopSynchronizationConfirmation,
120121
this.ShareSubscriptionName,
121122
this.StopSynchronization);
122123
}

0 commit comments

Comments
 (0)