Revert "Use error code checking and simplified messages (#1782)" (#1783)

This reverts commit 306b43b8b7.
This commit is contained in:
Alex Ma
2022-12-13 09:04:18 -08:00
committed by GitHub
parent 306b43b8b7
commit cc94a1a4c6
5 changed files with 51 additions and 19 deletions

View File

@@ -77,6 +77,14 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string PasswordChangeDNMReqs
{
get
{
return Keys.GetString(Keys.PasswordChangeDNMReqs);
}
}
public static string PasswordChangeDNMReqsRetry
{
get
@@ -85,6 +93,14 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string PasswordChangePWCannotBeUsed
{
get
{
return Keys.GetString(Keys.PasswordChangePWCannotBeUsed);
}
}
public static string PasswordChangePWCannotBeUsedRetry
{
get
@@ -10120,9 +10136,15 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string PasswordChangeEmptyPasswordRetry = "PasswordChangeEmptyPasswordRetry";
public const string PasswordChangeDNMReqs = "PasswordChangeDNMReqs";
public const string PasswordChangeDNMReqsRetry = "PasswordChangeDNMReqsRetry";
public const string PasswordChangePWCannotBeUsed = "PasswordChangePWCannotBeUsed";
public const string PasswordChangePWCannotBeUsedRetry = "PasswordChangePWCannotBeUsedRetry";

View File

@@ -176,10 +176,18 @@
<value>Press OK to input a new password that is not empty.</value>
<comment></comment>
</data>
<data name="PasswordChangeDNMReqs" xml:space="preserve">
<value>password does not meet operating system policy requirements</value>
<comment></comment>
</data>
<data name="PasswordChangeDNMReqsRetry" xml:space="preserve">
<value>Press OK to input a new password that meets operating system policy requirements.</value>
<comment></comment>
</data>
<data name="PasswordChangePWCannotBeUsed" xml:space="preserve">
<value>password cannot be used at this time</value>
<comment></comment>
</data>
<data name="PasswordChangePWCannotBeUsedRetry" xml:space="preserve">
<value>Press OK to input a different password.</value>
<comment></comment>

View File

@@ -51,8 +51,12 @@ PasswordChangeEmptyPassword = New password cannot be empty
PasswordChangeEmptyPasswordRetry = Press OK to input a new password that is not empty.
PasswordChangeDNMReqs = password does not meet operating system policy requirements
PasswordChangeDNMReqsRetry = Press OK to input a new password that meets operating system policy requirements.
PasswordChangePWCannotBeUsed = password cannot be used at this time
PasswordChangePWCannotBeUsedRetry = Press OK to input a different password.
### Connection Params Validation Errors

View File

@@ -6515,11 +6515,21 @@ The Query Processor estimates that implementing the following index could improv
<target state="new">Press OK to input a new password that is not empty.</target>
<note></note>
</trans-unit>
<trans-unit id="PasswordChangeDNMReqs">
<source>password does not meet operating system policy requirements</source>
<target state="new">password does not meet operating system policy requirements</target>
<note></note>
</trans-unit>
<trans-unit id="PasswordChangeDNMReqsRetry">
<source>Press OK to input a new password that meets operating system policy requirements.</source>
<target state="new">Press OK to input a new password that meets operating system policy requirements.</target>
<note></note>
</trans-unit>
<trans-unit id="PasswordChangePWCannotBeUsed">
<source>password cannot be used at this time</source>
<target state="new">password cannot be used at this time</target>
<note></note>
</trans-unit>
<trans-unit id="PasswordChangePWCannotBeUsedRetry">
<source>Press OK to input a different password.</source>
<target state="new">Press OK to input a different password.</target>