Skip to content

Commit b54971d

Browse files
committed
Update messages with suggestions
1 parent 767ff3d commit b54971d

17 files changed

+149
-149
lines changed

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ Widening and user defined conversions are not supported with generic types.</val
20162016
<value>Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons when using 'CompareTo', because they lead to an allocation. Instead, use 'StringComparer' to perform case-insensitive comparisons. Switching to using 'StringComparer' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparer.OrdinalIgnoreCase'.</value>
20172017
</data>
20182018
<data name="RecommendCaseInsensitiveStringComparerMessage" xml:space="preserve">
2019-
<value>Prefer using 'StringComparer' to perform a case-insensitive comparison</value>
2019+
<value>Prefer using 'StringComparer' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparer.OrdinalIgnoreCase'</value>
20202020
</data>
20212021
<data name="RecommendCaseInsensitiveStringEqualsCodeFixTitle" xml:space="preserve">
20222022
<value>Use 'string.Equals(string, StringComparison)'</value>
@@ -2025,7 +2025,7 @@ Widening and user defined conversions are not supported with generic types.</val
20252025
<value>Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons, as in 'string.ToLower() == string.ToLower()', because they lead to an allocation. Instead, use 'string.Equals(string, StringComparison)' to perform case-insensitive comparisons. Switching to using an overload that takes a 'StringComparison' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'.</value>
20262026
</data>
20272027
<data name="RecommendCaseInsensitiveStringEqualsMessage" xml:space="preserve">
2028-
<value>Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison</value>
2028+
<value>Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</value>
20292029
</data>
20302030
<data name="RecommendCaseInsensitiveStringComparisonTitle" xml:space="preserve">
20312031
<value>Use the 'StringComparison' method overloads to perform case-insensitive string comparisons</value>
@@ -2034,7 +2034,7 @@ Widening and user defined conversions are not supported with generic types.</val
20342034
<value>Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons because they lead to an allocation. Instead, prefer calling the method overloads of 'Contains', 'IndexOf' and 'StartsWith' that take a 'StringComparison' enum value to perform case-insensitive comparisons. Switching to using an overload that takes a 'StringComparison' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'.</value>
20352035
</data>
20362036
<data name="RecommendCaseInsensitiveStringComparisonMessage" xml:space="preserve">
2037-
<value>Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison</value>
2037+
<value>Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</value>
20382038
</data>
20392039
<data name="PreferDictionaryTryAddValueCodeFixTitle" xml:space="preserve">
20402040
<value>Use 'TryAdd(TKey, TValue)'</value>

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,32 +2249,32 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E
22492249
<note />
22502250
</trans-unit>
22512251
<trans-unit id="RecommendCaseInsensitiveStringComparerMessage">
2252-
<source>Prefer using 'StringComparer' to perform a case-insensitive comparison</source>
2253-
<target state="translated">Preferovat použití StringComparer pro porovnávání bez rozlišování velkých a malých písmen</target>
2252+
<source>Prefer using 'StringComparer' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparer.OrdinalIgnoreCase'</source>
2253+
<target state="needs-review-translation">Preferovat použití StringComparer pro porovnávání bez rozlišování velkých a malých písmen</target>
22542254
<note />
22552255
</trans-unit>
22562256
<trans-unit id="RecommendCaseInsensitiveStringComparerStringComparisonCodeFixTitle">
2257-
<source>Consider using the 'string.{0}(string, StringComparison)' overload</source>
2257+
<source>Use the 'string.{0}(string, StringComparison)' overload</source>
22582258
<target state="needs-review-translation">Použijte přetížení string.{0}(string, StringComparison)</target>
22592259
<note />
22602260
</trans-unit>
22612261
<trans-unit id="RecommendCaseInsensitiveStringComparisonDescription">
22622262
<source>Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons because they lead to an allocation. Instead, prefer calling the method overloads of 'Contains', 'IndexOf' and 'StartsWith' that take a 'StringComparison' enum value to perform case-insensitive comparisons. Switching to using an overload that takes a 'StringComparison' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'.</source>
2263-
<target state="needs-review-translation">Vyhněte se volání ToLower, ToUpper, ToLowerInvariant a ToUpperInvariant pro porovnávání řetězců bez ohledu na velikost písmen, protože vedou k alokaci. Místo toho raději volejte přetížení metod Contains, IndexOf a StartsWith, které přebírají hodnotu výčtu StringComparison, aby se provedlo porovnání bez ohledu na velikost písmen.</target>
2263+
<target state="new">Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons because they lead to an allocation. Instead, prefer calling the method overloads of 'Contains', 'IndexOf' and 'StartsWith' that take a 'StringComparison' enum value to perform case-insensitive comparisons. Switching to using an overload that takes a 'StringComparison' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'.</target>
22642264
<note />
22652265
</trans-unit>
22662266
<trans-unit id="RecommendCaseInsensitiveStringComparisonMessage">
2267-
<source>Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison</source>
2268-
<target state="translated">Preferovat přetížení metody porovnání řetězců {0}, která přebírá hodnotu výčtu StringComparison a provádí porovnání bez rozlišení velkých a malých písmen.</target>
2267+
<source>Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</source>
2268+
<target state="new">Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</target>
22692269
<note />
22702270
</trans-unit>
22712271
<trans-unit id="RecommendCaseInsensitiveStringComparisonTitle">
2272-
<source>Prefer the 'StringComparison' method overloads to perform case-insensitive string comparisons</source>
2273-
<target state="translated">Preferovat přetížení metody StringComparison pro porovnávání řetězců bez ohledu na velikost písmen.</target>
2272+
<source>Use the 'StringComparison' method overloads to perform case-insensitive string comparisons</source>
2273+
<target state="needs-review-translation">Preferovat přetížení metody StringComparison pro porovnávání řetězců bez ohledu na velikost písmen.</target>
22742274
<note />
22752275
</trans-unit>
22762276
<trans-unit id="RecommendCaseInsensitiveStringEqualsCodeFixTitle">
2277-
<source>Consider using 'string.Equals(string, StringComparison)'</source>
2277+
<source>Use 'string.Equals(string, StringComparison)'</source>
22782278
<target state="needs-review-translation">Použijte string.Equals(string, StringComparison)</target>
22792279
<note />
22802280
</trans-unit>
@@ -2284,8 +2284,8 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E
22842284
<note />
22852285
</trans-unit>
22862286
<trans-unit id="RecommendCaseInsensitiveStringEqualsMessage">
2287-
<source>Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison</source>
2288-
<target state="translated">Preferujte použití string.Equals(string, StringComparison) pro porovnání bez rozlišování velkých a malých písmen</target>
2287+
<source>Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</source>
2288+
<target state="needs-review-translation">Preferujte použití string.Equals(string, StringComparison) pro porovnání bez rozlišování velkých a malých písmen</target>
22892289
<note />
22902290
</trans-unit>
22912291
<trans-unit id="RemoveRedundantCall">

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,32 +2249,32 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type
22492249
<note />
22502250
</trans-unit>
22512251
<trans-unit id="RecommendCaseInsensitiveStringComparerMessage">
2252-
<source>Prefer using 'StringComparer' to perform a case-insensitive comparison</source>
2253-
<target state="translated">Verwenden Sie "StringComparer" vor, um einen Vergleich ohne Beachtung der Groß-/Kleinschreibung durchzuführen.</target>
2252+
<source>Prefer using 'StringComparer' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparer.OrdinalIgnoreCase'</source>
2253+
<target state="needs-review-translation">Verwenden Sie "StringComparer" vor, um einen Vergleich ohne Beachtung der Groß-/Kleinschreibung durchzuführen.</target>
22542254
<note />
22552255
</trans-unit>
22562256
<trans-unit id="RecommendCaseInsensitiveStringComparerStringComparisonCodeFixTitle">
2257-
<source>Consider using the 'string.{0}(string, StringComparison)' overload</source>
2257+
<source>Use the 'string.{0}(string, StringComparison)' overload</source>
22582258
<target state="needs-review-translation">Verwenden Sie die "string.{0}(string, StringComparison)"-Überladung</target>
22592259
<note />
22602260
</trans-unit>
22612261
<trans-unit id="RecommendCaseInsensitiveStringComparisonDescription">
22622262
<source>Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons because they lead to an allocation. Instead, prefer calling the method overloads of 'Contains', 'IndexOf' and 'StartsWith' that take a 'StringComparison' enum value to perform case-insensitive comparisons. Switching to using an overload that takes a 'StringComparison' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'.</source>
2263-
<target state="needs-review-translation">Vermeiden Sie das Aufrufen von "ToLower", "ToUpper", "ToLowerInvariant" und "ToUpperInvariant", um Zeichenfolgenvergleiche ohne Beachtung der Groß-/Kleinschreibung durchzuführen, da sie zu einer Zuordnung führen. Rufen Sie stattdessen lieber die Methodenüberladungen von "Contains", "IndexOf" und "StartsWith" auf, die einen StringComparison-Enumerationswert verwenden, um Vergleiche ohne Beachtung der Groß-/Kleinschreibung durchzuführen.</target>
2263+
<target state="new">Avoid calling 'ToLower', 'ToUpper', 'ToLowerInvariant' and 'ToUpperInvariant' to perform case-insensitive string comparisons because they lead to an allocation. Instead, prefer calling the method overloads of 'Contains', 'IndexOf' and 'StartsWith' that take a 'StringComparison' enum value to perform case-insensitive comparisons. Switching to using an overload that takes a 'StringComparison' might cause subtle changes in behavior, so it's important to conduct thorough testing after applying the suggestion. Additionally, if a culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'.</target>
22642264
<note />
22652265
</trans-unit>
22662266
<trans-unit id="RecommendCaseInsensitiveStringComparisonMessage">
2267-
<source>Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison</source>
2268-
<target state="translated">Bevorzugen Sie die Methodenüberladung des Zeichenfolgenvergleichs von "{0}", die einen Enumerationswert "StringComparison" verwendet, um einen Vergleich ohne Beachtung der Groß-/Kleinschreibung durchzuführen.</target>
2267+
<source>Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</source>
2268+
<target state="new">Prefer the string comparison method overload of '{0}' that takes a 'StringComparison' enum value to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</target>
22692269
<note />
22702270
</trans-unit>
22712271
<trans-unit id="RecommendCaseInsensitiveStringComparisonTitle">
2272-
<source>Prefer the 'StringComparison' method overloads to perform case-insensitive string comparisons</source>
2273-
<target state="translated">"StringComparison"-Methodenüberladungen bevorzugen, um Zeichenfolgenvergleiche ohne Beachtung der Groß-/Kleinschreibung durchzuführen</target>
2272+
<source>Use the 'StringComparison' method overloads to perform case-insensitive string comparisons</source>
2273+
<target state="needs-review-translation">"StringComparison"-Methodenüberladungen bevorzugen, um Zeichenfolgenvergleiche ohne Beachtung der Groß-/Kleinschreibung durchzuführen</target>
22742274
<note />
22752275
</trans-unit>
22762276
<trans-unit id="RecommendCaseInsensitiveStringEqualsCodeFixTitle">
2277-
<source>Consider using 'string.Equals(string, StringComparison)'</source>
2277+
<source>Use 'string.Equals(string, StringComparison)'</source>
22782278
<target state="needs-review-translation">Verwenden Sie "string.Equals(string, StringComparison)"</target>
22792279
<note />
22802280
</trans-unit>
@@ -2284,8 +2284,8 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type
22842284
<note />
22852285
</trans-unit>
22862286
<trans-unit id="RecommendCaseInsensitiveStringEqualsMessage">
2287-
<source>Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison</source>
2288-
<target state="translated">Verwenden Sie lieber "string.Equals(string, StringComparison)", um einen Vergleich ohne Berücksichtigung der Groß-/Kleinschreibung durchzuführen</target>
2287+
<source>Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'</source>
2288+
<target state="needs-review-translation">Verwenden Sie lieber "string.Equals(string, StringComparison)", um einen Vergleich ohne Berücksichtigung der Groß-/Kleinschreibung durchzuführen</target>
22892289
<note />
22902290
</trans-unit>
22912291
<trans-unit id="RemoveRedundantCall">

0 commit comments

Comments
 (0)