From f6a5bd402aacc9a08970efd8fc3acf2e6e7d1f4b Mon Sep 17 00:00:00 2001 From: Youssef1313 Date: Mon, 25 Nov 2024 14:40:19 +0100 Subject: [PATCH] Hang dump localization --- .../HangDumpProcessLifetimeHandler.cs | 6 +++--- .../Resources/ExtensionResources.resx | 6 ++++++ .../Resources/xlf/ExtensionResources.cs.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.de.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.es.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.fr.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.it.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.ja.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.ko.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.pl.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.pt-BR.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.ru.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.tr.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.zh-Hans.xlf | 10 ++++++++++ .../Resources/xlf/ExtensionResources.zh-Hant.xlf | 10 ++++++++++ 15 files changed, 139 insertions(+), 3 deletions(-) diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/HangDumpProcessLifetimeHandler.cs b/src/Platform/Microsoft.Testing.Extensions.HangDump/HangDumpProcessLifetimeHandler.cs index e09eab94e6..afcfb11e03 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/HangDumpProcessLifetimeHandler.cs +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/HangDumpProcessLifetimeHandler.cs @@ -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 () => @@ -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)); @@ -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))); diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/ExtensionResources.resx b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/ExtensionResources.resx index b99bb03d6c..c4f05583d7 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/ExtensionResources.resx +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/ExtensionResources.resx @@ -126,6 +126,9 @@ Hang dump file + + Creating dump file name '{0}'. + Environment variable '{0}' is set to '{1}' instead of '{2}' @@ -158,6 +161,9 @@ The timeout value is specified in one of the following formats: '--hangdump-timeout' expects a single timeout argument + + Hang dump timeout setup {0}. + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.cs.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.cs.xlf index e999c8d0bc..ec60bee2cf 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.cs.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.cs.xlf @@ -17,6 +17,11 @@ Soubor výpisu paměti při zablokování + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' Proměnná prostředí {0} je nastavená na {1} místo na {2}. @@ -72,6 +77,11 @@ Hodnota časového limitu se zadává v jednom z následujících formátů: --hangdump-timeout očekává jeden argument časového limitu. + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.de.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.de.xlf index 3bfa76c15c..5c870b7823 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.de.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.de.xlf @@ -17,6 +17,11 @@ Absturzspeicherabbilddatei + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' Umgebungsvariable "{0}" ist auf "{1}" anstatt auf "{2}" festgelegt. @@ -72,6 +77,11 @@ Der Timeoutwert wird in einem der folgenden Formate angegeben: "--hangdump-timeout" erwartet ein einzelnes Timeoutargument. + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.es.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.es.xlf index f1e52972e6..b07bfb7e5e 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.es.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.es.xlf @@ -17,6 +17,11 @@ Archivo de volcado de bloqueo + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' La variable de entorno '{0}' se establece en '{1}' en lugar de '{2}' @@ -72,6 +77,11 @@ El valor de tiempo de espera se especifica en uno de los formatos siguientes: '--hangdump-timeout' espera un único argumento de tiempo de espera + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.fr.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.fr.xlf index 588807e86f..49195381ad 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.fr.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.fr.xlf @@ -17,6 +17,11 @@ Bloquer le fichier de vidage + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' La variable d’environnement «{0}» a la valeur «{1}» au lieu de «{2}» @@ -72,6 +77,11 @@ La valeur du délai d'expiration est spécifiée dans l'un des formats suivants '--hangdump-timeout' attend un seul argument de délai d'attente + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.it.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.it.xlf index 4b509c9e24..217dd52662 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.it.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.it.xlf @@ -17,6 +17,11 @@ File dump di blocco + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' La variabile di ambiente '{0}' è impostata su '{1}' anziché su '{2}' @@ -72,6 +77,11 @@ Il valore del timeout è specificato in uno dei formati seguenti: '--hangdump-timeout' prevede un singolo argomento di timeout + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ja.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ja.xlf index b0b8c15d21..f39981274a 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ja.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ja.xlf @@ -17,6 +17,11 @@ ハング ダンプ ファイル + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' 環境変数 '{0}' は '{2}' ではなく '{1}' に設定されています @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats: '--hangdump-timeout' には 1 つのタイムアウト引数が必要です + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ko.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ko.xlf index 643b193fbe..4b43d1a2e3 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ko.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ko.xlf @@ -17,6 +17,11 @@ 중단 덤프 파일 + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' 환경 변수 '{0}'이(가) '{2}' 대신 '{1}'로 설정되어 있습니다. @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats: '--hangdump-timeout'에는 단일 시간 제한 인수가 필요합니다. + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pl.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pl.xlf index 7082ee3eb1..8e8ecb802e 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pl.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pl.xlf @@ -17,6 +17,11 @@ Zawieszanie pliku zrzutu + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' Zmienna środowiskowa „{0}” jest ustawiona na wartość „{1}” zamiast „{2}” @@ -72,6 +77,11 @@ Wartość limitu czasu jest określana w jednym z następujących formatów: Element „--hangdump-timeout” oczekuje pojedynczego argumentu limitu czasu + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pt-BR.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pt-BR.xlf index bb9ecb9d55..03ff02a5b0 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pt-BR.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.pt-BR.xlf @@ -17,6 +17,11 @@ Arquivo de despejo de travamento + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' A variável de ambiente ''{0}'' ambiente está definida como ''{1}'' em vez de ''{2}'' @@ -72,6 +77,11 @@ O valor de tempo limite é especificado em um dos seguintes formatos: ''--hangdump-timeout'' espera um único argumento de tempo limite + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ru.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ru.xlf index fbd585b867..2b64266001 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ru.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.ru.xlf @@ -17,6 +17,11 @@ Файл дампа зависания + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' Переменной среды "{0}" присвоено значение "{1}" вместо "{2}" @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats: "--hangdump-timeout" ожидает один аргумент времени ожидания + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.tr.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.tr.xlf index 6094bcad9e..5a93eb730b 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.tr.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.tr.xlf @@ -17,6 +17,11 @@ Döküm dosyasını as + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' '{0}' ortam değişkeni '{1}' yerine '{2}' olarak ayarlandı @@ -72,6 +77,11 @@ Zaman aşımı değeri, aşağıdaki biçimlerden biri ile belirtilir: '--hangdump-timeout' tek bir zaman aşımı bağımsız değişkeni bekliyor + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hans.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hans.xlf index 429c5798df..d17d0f0312 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hans.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hans.xlf @@ -17,6 +17,11 @@ 挂起转储文件 + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' 环境变量“{0}”设置为“{1}”,而不是“{2}” @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats: “--hangdump-timeout”需要单一超时参数 + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'. diff --git a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hant.xlf b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hant.xlf index f74d486eb0..73477c3dfa 100644 --- a/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hant.xlf +++ b/src/Platform/Microsoft.Testing.Extensions.HangDump/Resources/xlf/ExtensionResources.zh-Hant.xlf @@ -17,6 +17,11 @@ 擱置傾印檔案 + + Creating dump file name '{0}'. + Creating dump file name '{0}'. + + Environment variable '{0}' is set to '{1}' instead of '{2}' 環境變數 '{0}' 已設定為 '{1}' 而不是 '{2}' @@ -72,6 +77,11 @@ The timeout value is specified in one of the following formats: '--hangdump-timeout' 需要單一逾時引數 + + Hang dump timeout setup {0}. + Hang dump timeout setup {0}. + + Specify the type of the dump. Valid values are 'Mini', 'Heap', 'Triage' (only available in .NET 6+) or 'Full'.