Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang dump localization #4145

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public async Task BeforeTestHostProcessStartAsync(CancellationToken cancellation
_dumpFileNamePattern = fileName[0];
}

await _logger.LogInformationAsync($"Hang dump timeout setup {_activityTimerValue}.");
await _logger.LogInformationAsync(string.Format(CultureInfo.InvariantCulture, ExtensionResources.HangDumpTimeoutSetup, _activityTimerValue));

_waitConnectionTask = _task.Run(
async () =>
Expand Down Expand Up @@ -324,7 +324,7 @@ private async Task TakeDumpAsync()
ApplicationStateGuard.Ensure(_testHostProcessInformation is not null);
ApplicationStateGuard.Ensure(_dumpType is not null);

await _logger.LogInformationAsync($"Hang dump timeout({_activityTimerValue}) expired.");
await _logger.LogInformationAsync(string.Format(CultureInfo.InvariantCulture, ExtensionResources.HangDumpTimeoutExpired, _activityTimerValue));
await _outputDisplay.DisplayAsync(this, FormattedTextOutputDeviceDataBuilder.CreateRedConsoleColorText(string.Format(CultureInfo.InvariantCulture, ExtensionResources.HangDumpTimeoutExpired, _activityTimerValue)));

string finalDumpFileName = _dumpFileNamePattern.Replace("%p", _testHostProcessInformation.PID.ToString(CultureInfo.InvariantCulture));
Expand All @@ -350,7 +350,7 @@ private async Task TakeDumpAsync()
await _messageBus.PublishAsync(this, new FileArtifact(new FileInfo(hangTestsFileName), ExtensionResources.HangTestListArtifactDisplayName, ExtensionResources.HangTestListArtifactDescription));
}

await _logger.LogInformationAsync($"Creating dump filename {finalDumpFileName}");
await _logger.LogInformationAsync(string.Format(CultureInfo.InvariantCulture, ExtensionResources.HangDumpCreatingFile, finalDumpFileName));

await _outputDisplay.DisplayAsync(this, FormattedTextOutputDeviceDataBuilder.CreateRedConsoleColorText(string.Format(CultureInfo.InvariantCulture, ExtensionResources.CreatingDumpFile, finalDumpFileName)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<data name="HangDumpArtifactDisplayName" xml:space="preserve">
<value>Hang dump file</value>
</data>
<data name="HangDumpCreatingFile" xml:space="preserve">
<value>Creating dump file name '{0}'.</value>
</data>
<data name="HangDumpEnvironmentVariableInvalidValueErrorMessage" xml:space="preserve">
<value>Environment variable '{0}' is set to '{1}' instead of '{2}'</value>
</data>
Expand Down Expand Up @@ -158,6 +161,9 @@ The timeout value is specified in one of the following formats:
<data name="HangDumpTimeoutOptionInvalidArgument" xml:space="preserve">
<value>'--hangdump-timeout' expects a single timeout argument</value>
</data>
<data name="HangDumpTimeoutSetup" xml:space="preserve">
<value>Hang dump timeout setup {0}.</value>
</data>
<data name="HangDumpTypeOptionDescription" xml:space="preserve">
<value>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Soubor výpisu paměti při zablokování</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">Proměnná prostředí {0} je nastavená na {1} místo na {2}.</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ Hodnota časového limitu se zadává v jednom z následujících formátů:
<target state="translated">--hangdump-timeout očekává jeden argument časového limitu.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Absturzspeicherabbilddatei</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">Umgebungsvariable "{0}" ist auf "{1}" anstatt auf "{2}" festgelegt.</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ Der Timeoutwert wird in einem der folgenden Formate angegeben:
<target state="translated">"--hangdump-timeout" erwartet ein einzelnes Timeoutargument.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Archivo de volcado de bloqueo</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">La variable de entorno '{0}' se establece en '{1}' en lugar de '{2}'</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ El valor de tiempo de espera se especifica en uno de los formatos siguientes:
<target state="translated">'--hangdump-timeout' espera un único argumento de tiempo de espera</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Bloquer le fichier de vidage</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">La variable d’environnement «{0}» a la valeur «{1}» au lieu de «{2}»</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ La valeur du délai d'expiration est spécifiée dans l'un des formats suivants
<target state="translated">'--hangdump-timeout' attend un seul argument de délai d'attente</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">File dump di blocco</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">La variabile di ambiente '{0}' è impostata su '{1}' anziché su '{2}'</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ Il valore del timeout è specificato in uno dei formati seguenti:
<target state="translated">'--hangdump-timeout' prevede un singolo argomento di timeout</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">ハング ダンプ ファイル</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">環境変数 '{0}' は '{2}' ではなく '{1}' に設定されています</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats:
<target state="translated">'--hangdump-timeout' には 1 つのタイムアウト引数が必要です</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">중단 덤프 파일</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">환경 변수 '{0}'이(가) '{2}' 대신 '{1}'로 설정되어 있습니다.</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats:
<target state="translated">'--hangdump-timeout'에는 단일 시간 제한 인수가 필요합니다.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Zawieszanie pliku zrzutu</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">Zmienna środowiskowa „{0}” jest ustawiona na wartość „{1}” zamiast „{2}”</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ Wartość limitu czasu jest określana w jednym z następujących formatów:
<target state="translated">Element „--hangdump-timeout” oczekuje pojedynczego argumentu limitu czasu</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Arquivo de despejo de travamento</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">A variável de ambiente ''{0}'' ambiente está definida como ''{1}'' em vez de ''{2}''</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ O valor de tempo limite é especificado em um dos seguintes formatos:
<target state="translated">''--hangdump-timeout'' espera um único argumento de tempo limite</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Файл дампа зависания</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">Переменной среды "{0}" присвоено значение "{1}" вместо "{2}"</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats:
<target state="translated">"--hangdump-timeout" ожидает один аргумент времени ожидания</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">Döküm dosyasını as</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">'{0}' ortam değişkeni '{1}' yerine '{2}' olarak ayarlandı</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ Zaman aşımı değeri, aşağıdaki biçimlerden biri ile belirtilir:
<target state="translated">'--hangdump-timeout' tek bir zaman aşımı bağımsız değişkeni bekliyor</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">挂起转储文件</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">环境变量“{0}”设置为“{1}”,而不是“{2}”</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats:
<target state="translated">“--hangdump-timeout”需要单一超时参数</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<target state="translated">擱置傾印檔案</target>
<note />
</trans-unit>
<trans-unit id="HangDumpCreatingFile">
<source>Creating dump file name '{0}'.</source>
<target state="new">Creating dump file name '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpEnvironmentVariableInvalidValueErrorMessage">
<source>Environment variable '{0}' is set to '{1}' instead of '{2}'</source>
<target state="translated">環境變數 '{0}' 已設定為 '{1}' 而不是 '{2}'</target>
Expand Down Expand Up @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats:
<target state="translated">'--hangdump-timeout' 需要單一逾時引數</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTimeoutSetup">
<source>Hang dump timeout setup {0}.</source>
<target state="new">Hang dump timeout setup {0}.</target>
<note />
</trans-unit>
<trans-unit id="HangDumpTypeOptionDescription">
<source>Specify the type of the dump.
Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.
Expand Down