Skip to content

Commit f7b88e0

Browse files
committed
Add strings to project resources file
1 parent 99483d4 commit f7b88e0

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

src/ResourceManager/Profile/Commands.Profile/Models/RMProfileClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ public AzureRmProfile Login(
277277
string tempName = null;
278278
if (!_profile.TryGetContextName(tempContext, out tempName))
279279
{
280-
WriteWarningMessage(string.Format("Unable to get context name for subscription with id '{0}'.", subscription.Id));
280+
WriteWarningMessage(string.Format(Resources.CannotGetContextName, subscription.Id));
281281
continue;
282282
}
283283

284284
if (!_profile.TrySetContext(tempName, tempContext))
285285
{
286-
WriteWarningMessage(string.Format("Cannot create a context for subscription with id '{0}'.", subscription.Id));
286+
WriteWarningMessage(string.Format(Resources.CannotCreateContext, subscription.Id));
287287
}
288288
}
289289

src/ResourceManager/Profile/Commands.Profile/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/ResourceManager/Profile/Commands.Profile/Properties/Resources.resx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,4 +406,12 @@
406406
<data name="RunLoginCmdlet" xml:space="preserve">
407407
<value>Run Connect-AzureRmAccount to login.</value>
408408
</data>
409+
<data name="CannotCreateContext" xml:space="preserve">
410+
<value>Cannot create a context for subscription with id '{0}'.</value>
411+
<comment>{0} = subscription id</comment>
412+
</data>
413+
<data name="CannotGetContextName" xml:space="preserve">
414+
<value>Unable to get context name for subscription with id '{0}'.</value>
415+
<comment>{0} = subscription id</comment>
416+
</data>
409417
</root>

0 commit comments

Comments
 (0)