Skip to content

Commit

Permalink
Ensure --minimum-expected-tests description is localized (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Nov 22, 2024
1 parent 5c829c1 commit 83432a9
Show file tree
Hide file tree
Showing 15 changed files with 70 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal sealed class PlatformCommandLineProvider : ICommandLineOptionsProvider

private static readonly string[] VerbosityOptions = ["Trace", "Debug", "Information", "Warning", "Error", "Critical"];

private static readonly CommandLineOption MinimumExpectedTests = new(MinimumExpectedTestsOptionKey, "Specifies the minimum number of tests that are expected to run.", ArgumentArity.ZeroOrOne, false, isBuiltIn: true);
private static readonly CommandLineOption MinimumExpectedTests = new(MinimumExpectedTestsOptionKey, PlatformResources.PlatformCommandLineMinimumExpectedTestsOptionDescription, ArgumentArity.ZeroOrOne, false, isBuiltIn: true);

private static readonly IReadOnlyCollection<CommandLineOption> PlatformCommandLineProviderCache =
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,4 +662,7 @@ Takes one argument as string in the format &lt;value&gt;[h|m|s] where 'value' is
<value>Failed to read response file '{0}'. {1}.</value>
<comment>{1} is the exception</comment>
</data>
</root>
<data name="PlatformCommandLineMinimumExpectedTestsOptionDescription" xml:space="preserve">
<value>Specifies the minimum number of tests that are expected to run.</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Dostupné hodnoty jsou Trace, Debug, Information, Warning, Error a Critical.</ta
<target state="translated">--list-tests a --minimum-expected-tests jsou nekompatibilní možnosti.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Die verfügbaren Werte sind "Trace", "Debug", "Information", "Warning", "Error"
<target state="translated">"--list-tests" und "--minimum-expected-tests" sind inkompatible Optionen.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Los valores disponibles son 'Seguimiento', 'Depurar', 'Información', 'Advertenc
<target state="translated">“--list-tests” y “--minimum-expected-tests” son opciones incompatibles</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Les valeurs disponibles sont « Trace », « Debug », « Information »,
<target state="translated">« --list-tests » et « --minimum-expected-tests » sont des options incompatibles</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ I valori disponibili sono 'Trace', 'Debug', 'Information', 'Warning', 'Error' e
<target state="translated">'--list-tests' e '--minimum-expected-tests' sono opzioni incompatibili</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', an
<target state="translated">'--list-tests' と '--minimum-expected-tests' は互換性のないオプションです</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', an
<target state="translated">'--list-tests' 및 '--minimum-expected-tests'는 호환되지 않는 옵션입니다.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Dostępne wartości to „Trace”, „Debug”, „Information”, „Warning
<target state="translated">Opcje „--list-tests” i „--minimum-expected-tests” są niezgodne</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Os valores disponíveis são 'Rastreamento', 'Depuração', 'Informação', 'Avi
<target state="translated">'--list-tests' e '--minimum-expected-tests' são opções incompatíveis</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', an
<target state="translated">Параметры "--list-tests" и "--minimum-expected-tests" несовместимы</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Kullanılabilir değerler: 'Trace', 'Debug', 'Information', 'Warning', 'Error' v
<target state="translated">'--list-tests' ve '--minimum-expected-tests' uyumsuz seçenekler</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', an
<target state="translated">“--list-tests”和“--minimum-expected-tests”是不兼容的选项</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', an
<target state="translated">'--list-tests' 和 '--minimum-expected-tests' 是不相容的選項</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionDescription">
<source>Specifies the minimum number of tests that are expected to run.</source>
<target state="new">Specifies the minimum number of tests that are expected to run.</target>
<note />
</trans-unit>
<trans-unit id="PlatformCommandLineMinimumExpectedTestsOptionSingleArgument">
<source>'--minimum-expected-tests' expects a single non-zero positive integer value
(e.g. '--minimum-expected-tests 10')</source>
Expand Down

0 comments on commit 83432a9

Please sign in to comment.