From 192694663b1ff265258d711437f1aa7561da5d88 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Fri, 3 Sep 2021 11:36:44 -0600 Subject: [PATCH] Switch from XLF (back) to LCL --- azure-pipelines.yml | 1 - azure-pipelines/artifacts/LocBin.ps1 | 15 + azure-pipelines/microbuild.before.yml | 5 + azure-pipelines/official.yml | 1 - azure-pipelines/variables/LocLanguages.ps1 | 6 + init.ps1 | 14 + src/Directory.Build.props | 1 - ...alStudio.Threading.Analyzers.CSharp.csproj | 1 - ...dio.Threading.Analyzers.VisualBasic.csproj | 1 - ...ft.VisualStudio.Threading.Analyzers.csproj | 1 - .../xlf/Strings.cs.xlf | 339 ------------------ .../xlf/Strings.de.xlf | 339 ------------------ .../xlf/Strings.es.xlf | 339 ------------------ .../xlf/Strings.fr.xlf | 339 ------------------ .../xlf/Strings.it.xlf | 339 ------------------ .../xlf/Strings.ja.xlf | 339 ------------------ .../xlf/Strings.ko.xlf | 339 ------------------ .../xlf/Strings.pl.xlf | 339 ------------------ .../xlf/Strings.pt-BR.xlf | 339 ------------------ .../xlf/Strings.ru.xlf | 339 ------------------ .../xlf/Strings.tr.xlf | 339 ------------------ .../xlf/Strings.zh-Hans.xlf | 339 ------------------ .../xlf/Strings.zh-Hant.xlf | 339 ------------------ .../Microsoft.VisualStudio.Threading.csproj | 1 - .../xlf/Strings.cs.xlf | 132 ------- .../xlf/Strings.de.xlf | 132 ------- .../xlf/Strings.es.xlf | 132 ------- .../xlf/Strings.fr.xlf | 132 ------- .../xlf/Strings.it.xlf | 132 ------- .../xlf/Strings.ja.xlf | 132 ------- .../xlf/Strings.ko.xlf | 132 ------- .../xlf/Strings.pl.xlf | 132 ------- .../xlf/Strings.pt-BR.xlf | 132 ------- .../xlf/Strings.ru.xlf | 132 ------- .../xlf/Strings.tr.xlf | 132 ------- .../xlf/Strings.zh-Hans.xlf | 132 ------- .../xlf/Strings.zh-Hant.xlf | 132 ------- 37 files changed, 40 insertions(+), 6130 deletions(-) create mode 100644 azure-pipelines/artifacts/LocBin.ps1 create mode 100644 azure-pipelines/variables/LocLanguages.ps1 delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.cs.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.de.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.es.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.fr.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.it.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ja.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ko.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pl.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pt-BR.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ru.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.tr.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hans.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hant.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.cs.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.de.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.es.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.fr.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.it.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.ja.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.ko.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.pl.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.pt-BR.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.ru.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.tr.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.zh-Hans.xlf delete mode 100644 src/Microsoft.VisualStudio.Threading/xlf/Strings.zh-Hant.xlf diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4d26004c..21e00561 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,6 @@ trigger: variables: TreatWarningsAsErrors: true - UpdateXlfOnBuild: false # force build breaks if xlf files aren't updated on dev box with resx changes DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true BuildConfiguration: Release # codecov_token: 4dc9e7e2-6b01-4932-a180-847b52b43d35 # Get a new one from https://codecov.io/ diff --git a/azure-pipelines/artifacts/LocBin.ps1 b/azure-pipelines/artifacts/LocBin.ps1 new file mode 100644 index 00000000..85bf5c7b --- /dev/null +++ b/azure-pipelines/artifacts/LocBin.ps1 @@ -0,0 +1,15 @@ +# Identify LCE files and the binary files they describe +$BinRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\bin") +$FilesToCopy = @() +$FilesToCopy += Get-ChildItem -Recurse -File -Path $BinRoot |? { $_.FullName -match '\\Localize\\' } + +Get-ChildItem -rec "$BinRoot\*.lce" -File | % { + $FilesToCopy += $_ + $FilesToCopy += $_.FullName.SubString(0, $_.FullName.Length - 4) +} + +$FilesToCopy += Get-ChildItem -rec "$BinRoot\*.lcg" -File | % { [xml](Get-Content $_) } | % { $_.lcx.name } + +@{ + "$BinRoot" = $FilesToCopy; +} diff --git a/azure-pipelines/microbuild.before.yml b/azure-pipelines/microbuild.before.yml index e7788e94..5e2ceb53 100644 --- a/azure-pipelines/microbuild.before.yml +++ b/azure-pipelines/microbuild.before.yml @@ -16,3 +16,8 @@ steps: signType: $(SignType) zipSources: false displayName: Install MicroBuild Signing Plugin + +- task: MicroBuildLocalizationPlugin@3 + inputs: + languages: $(LocLanguages) + displayName: Install MicroBuild Localization Plugin diff --git a/azure-pipelines/official.yml b/azure-pipelines/official.yml index 7670bbe0..3ff6759b 100644 --- a/azure-pipelines/official.yml +++ b/azure-pipelines/official.yml @@ -38,7 +38,6 @@ stages: - stage: Build variables: TreatWarningsAsErrors: true - UpdateXlfOnBuild: false # force build breaks if xlf files aren't updated on dev box with resx changes DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true BuildConfiguration: Release BuildPlatform: Any CPU diff --git a/azure-pipelines/variables/LocLanguages.ps1 b/azure-pipelines/variables/LocLanguages.ps1 new file mode 100644 index 00000000..f38e72e2 --- /dev/null +++ b/azure-pipelines/variables/LocLanguages.ps1 @@ -0,0 +1,6 @@ +## For faster PR/CI builds localize only for 2 languages, ENU and JPN provide good enough coverage +if ($env:BUILD_REASON -eq 'PullRequest') { + 'ENU,JPN' +} else { + 'VS' +} diff --git a/init.ps1 b/init.ps1 index a99b95f4..cb8edd43 100644 --- a/init.ps1 +++ b/init.ps1 @@ -27,6 +27,11 @@ Skips the package restore step. .PARAMETER Signing Install the MicroBuild signing plugin for building test-signed builds on desktop machines. +.PARAMETER Localization + Install the MicroBuild localization plugin for building loc builds on desktop machines. + The environment is configured to build pseudo-loc for JPN only, but may be used to build + all languages with shipping-style loc by using the `/p:loctype=full,loclanguages=vs` + when building. .PARAMETER OptProf Install the MicroBuild OptProf plugin for building optimized assemblies on desktop machines. .PARAMETER AccessToken @@ -45,6 +50,8 @@ Param ( [Parameter()] [switch]$Signing, [Parameter()] + [switch]$Localization, + [Parameter()] [switch]$OptProf, [Parameter()] [string]$AccessToken @@ -92,6 +99,13 @@ try { $EnvVars['SignType'] = "Test" } + if ($Localization) { + Write-Host "Installing MicroBuild localization plugin" -ForegroundColor $HeaderColor + & $InstallNuGetPkgScriptPath MicroBuild.Plugins.Localization -source $MicroBuildPackageSource -Verbosity $nugetVerbosity + $EnvVars['LocType'] = "Pseudo" + $EnvVars['LocLanguages'] = "JPN" + } + if ($OptProf) { Write-Host "Installing MicroBuild OptProf plugin" -ForegroundColor $HeaderColor & $InstallNuGetPkgScriptPath MicroBuild.Plugins.OptProf -source $MicroBuildPackageSource -Verbosity $nugetVerbosity diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 8c1a7957..c73680b5 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,7 +2,6 @@ - true PackageIcon.png diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/Microsoft.VisualStudio.Threading.Analyzers.CSharp.csproj b/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/Microsoft.VisualStudio.Threading.Analyzers.CSharp.csproj index cf6285a8..1895f9ed 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/Microsoft.VisualStudio.Threading.Analyzers.CSharp.csproj +++ b/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/Microsoft.VisualStudio.Threading.Analyzers.CSharp.csproj @@ -8,7 +8,6 @@ - diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic.csproj b/src/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic.csproj index 6624d771..20497126 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic.csproj +++ b/src/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic/Microsoft.VisualStudio.Threading.Analyzers.VisualBasic.csproj @@ -8,7 +8,6 @@ - diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Microsoft.VisualStudio.Threading.Analyzers.csproj b/src/Microsoft.VisualStudio.Threading.Analyzers/Microsoft.VisualStudio.Threading.Analyzers.csproj index eda6ed53..627921ce 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Microsoft.VisualStudio.Threading.Analyzers.csproj +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Microsoft.VisualStudio.Threading.Analyzers.csproj @@ -30,7 +30,6 @@ - diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.cs.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.cs.xlf deleted file mode 100644 index 5f07c07d..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.cs.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Použijte raději await {0}. - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - Rozhraní System.IAsyncDisposable je definované v balíčku NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - Použijte raději await. - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Počkejte, než se na vlákno uživatelského rozhraní přepne JoinableTaskFactory.SwitchToMainThreadAsync(), a ne rozhraní API, která se můžou zablokovat nebo vyžadovat zadání priority. - - - - Avoid legacy thread switching APIs - Vyhněte se starším verzím rozhraní API pro přepínání vláken - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Použijte raději await. - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - Synchronní čekání na položky typu task nebo awaiter může způsobit vzájemné zablokování. Místo toho použijte await nebo JoinableTaskFactory.Run. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Vyhněte se problematickým synchronním čekáním - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Vyhněte se čekání na úlohu (nebo vracení úlohy) představující práci, která nebyla zahájena ve vašem kontextu, protože to může vést k zablokování. -Zahajte danou práci v tomto kontextu, nebo místo toho spusťte úlohu pomocí JoinableTaskFactory.RunAsync a očekávejte vrácenou hodnotu JoinableTask. - - - - Avoid awaiting foreign Tasks - Vyhněte se čekání na cizí úlohy. - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - U volání JoinableTaskFactory.SwitchToMainThreadAsync() se musí čekat na dokončení. - - - - Await SwitchToMainThreadAsync - Použijte Await SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Přístup k {0} by se měl provádět jenom v hlavním vláknu. Napřed počkejte na dokončení volání metody JoinableTaskFactory.SwitchToMainThreadAsync(). - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - Přístup k {0} by se měl provádět jenom v hlavním vláknu. Napřed volejte {1}(). - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Vyvolání typů s jedním vláknem z hlavního vlákna - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value může způsobit zablokování. -Použijte místo toho AsyncLazy<T>. - - - - Use AsyncLazy<T> - Použít AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Volání nebo blokování asynchronního kódu v objektu pro vytváření hodnot Lazy<T> může způsobit zablokování. -Použijte místo toho AsyncLazy<T>. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Zadejte instanci JoinableTaskFactory v tomto volání (nebo v jiném přetížení), aby se předešlo zablokováním s hlavním vláknem. - - - - Provide JoinableTaskFactory where allowed - Zadejte JoinableTaskFactory, kde je to povoleno - - - - Change return type to Task - Změňte návratový typ na Task. - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Nepoužívejte metody async void, protože veškeré výjimky neošetřené metodou způsobí selhání procesu. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Vyhněte se použití metod async void - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - U typu delegáta, který vrací hodnotu void, se vyhněte použití asynchronního výrazu lambda, protože veškeré výjimky neošetřené delegátem způsobí selhání procesu. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Vyhněte se použití nepodporovaných asynchronních delegátů - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Omezte použití volání metod, které provádí synchronní blokování, například JoinableTaskFactory.Run nebo Task.Result, na veřejné členy vstupního bodu, kde musíte být synchronní. Použití těchto metod pro interní členy zbytečně přidává synchronní rámce mezi asynchronní rámce, což vede k vyčerpání fondu vláken. - - - - Implement internal logic asynchronously - Asynchronní implementace interní logiky - - - - {0} synchronously blocks. Await {1} instead. - {0} provádí synchronní blokování. Místo toho použijte await {1}. - - - - {0} synchronously blocks. Use await instead. - {0} provádí synchronní blokování. Místo toho použijte await. - - - - Call async methods when in an async method - Volání asynchronních metod v asynchronní metodě - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Vystavte asynchronní verzi této metody, která neprovádí synchronní blokování. Potom tuto metodu zjednodušte tak, aby volala danou asynchronní metodu v rámci delegáta JoinableTaskFactory.Run. - - - - Offer async methods - Nabízejte asynchronní metody - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Nepoužívejte přetížení metod, která předpokládají TaskScheduler.Current. Použijte přetížení, které akceptuje TaskScheduler a explicitně zadejte TaskScheduler.Default (případně jakoukoli jinou vlastnost). - - - - Avoid method overloads that assume TaskScheduler.Current - Vyhněte se přetížením metod, která předpokládají TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Delegáti AsyncEventHandler se musí volat prostřednictvím metody rozšíření TplExtensions.InvokeAsync() definované v sestavení Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Použití InvokeAsync k vyvolání asynchronních událostí - - - - Await using expression - Výraz using s operátorem await - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Chybí operátor await ve výrazu using. - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Úloha await ve výrazu using - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - Kontroly spřažení vláken by měly být bez podmínek. - - - - Assert thread affinity unconditionally - Vyhodnotit spřažení vláken bez podmínek - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Vyhněte se tomuto volání, pokud nejste v hlavním vláknu a jste v asynchronní metodě nebo metodě, která vrací Task. Místo toho přepněte na požadované vlákno. - - - - Switch instead of assert in async methods - V asynchronních metodách použijte Switch místo Assert - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Přijměte očekávatelný výsledek volání této metody tak, že na něj počkáte, přiřadíte ho do proměnné nebo ho předáte další metodě. - - - - Observe result of async calls - Přijměte výsledek asynchronních volání - - - - Add .ConfigureAwait(false) - Přidat .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Přidat .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Přidejte .ConfigureAwait(bool) ke svému výrazu await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Používat ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Přidat implementaci System.IAsyncDisposable - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Při implementaci zastaralého rozhraní Microsoft.VisualStudio.Threading.IAsyncDisposable implementujte rozhraní System.IAsyncDisposable. - - - - Implement System.IAsyncDisposable - Implementovat System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Přidejte kontrolu rozhraní System.IAsyncDisposable do stejného bloku kódu, který kontroluje rozhraní Microsoft.VisualStudio.Threading.IAsyncDisposable s obdobným chováním. - - - - Check for System.IAsyncDisposable - Zkontrolovat rozhraní System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - Místo toho použít Task.CompletedTask - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Místo toho použít Task.FromResult - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Vyhněte se vrácení hodnoty null z metody vracející úlohu. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Vyhněte se vrácení úkolu s hodnotou null - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - V názvech metod, které vrací typ awaitable, používejte příponu „Async“. - - - - Rename to {0} - Přejmenování na {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - V názvech metod, které nevrací typ awaitable, se vyhněte používání přípony „Async“. - - - - Use "Async" suffix for async methods - Použití přípony Async pro asynchronní metody - - - - Call ThrowIfCancellationRequested() - Volat metodu ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Po volání metody SwitchToMainThreadAsync(CancellationToken) zkontrolujte zrušení. - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Zkontrolovat zrušení po metodě SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.de.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.de.xlf deleted file mode 100644 index f53aa1ed..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.de.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Stattdessen auf {0} warten - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - Die System.IAsyncDisposable-Schnittstelle ist im NuGet-Paket "Microsoft.Bcl.AsyncInterfaces" definiert. - - - - Use await instead - Stattdessen "await" verwenden - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Warten Sie darauf, dass "JoinableTaskFactory.SwitchToMainThreadAsync()" zum UI-Thread wechselt anstelle von APIs, bei denen Deadlocks auftreten können oder für die unter Umständen eine Priorität festgelegt werden muss. - - - - Avoid legacy thread switching APIs - Legacy-APIs zum Wechseln von Threads vermeiden - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Stattdessen "await" verwenden - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - Das synchrone Warten auf Aufgaben oder Awaiters führt unter Umständen zu Deadlocks. Verwenden Sie stattdessen "await" oder "JoinableTaskFactory.Run". - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Problematische synchrone Wartevorgänge vermeiden - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Vermeiden Sie das Warten auf eine Arbeitsaufgabe, die nicht in Ihrem Kontext gestartet wurde, da dies zu Deadlocks führen kann. -Starten Sie das Arbeitselement in Ihrem Kontext, oder verwenden Sie stattdessen JoinableTaskFactory.RunAsync, um die Aufgabe zu starten und auf das zurückgegebene JoinableTask-Objekt zu warten. - - - - Avoid awaiting foreign Tasks - Vermeiden Sie das Warten auf fremde Aufgaben - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - Aufrufe an "JoinableTaskFactory.SwitchToMainThreadAsync()" müssen mit "await" abgewartet werden. - - - - Await SwitchToMainThreadAsync - Await SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Der Zugriff auf "{0}" sollte nur im Hauptthread erfolgen. Warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - Der Zugriff auf "{0}" sollte nur im Hauptthread erfolgen. Rufen Sie zuerst "{1}()" auf. - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Singlethread-Typen im Hauptthread aufrufen - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Bei "Lazy<Task<T>>.Value" kann ein Deadlock auftreten. -Verwenden Sie stattdessen "AsyncLazy<T>". - - - - Use AsyncLazy<T> - AsyncLazy<T> verwenden - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Beim Aufrufen oder Blockieren bei asynchronem Code in einer Lazy<T>-Wertfactory kann ein Deadlock auftreten. -Verwenden Sie stattdessen "AsyncLazy<T>". - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Stellen Sie in diesem Aufruf (oder einer anderen Überladung) eine Instanz von "JoinableTaskFactory" bereit, um Deadlocks beim Hauptthread zu vermeiden. - - - - Provide JoinableTaskFactory where allowed - "JoinableTaskFactory" bereitstellen, wenn zulässig - - - - Change return type to Task - Rückgabetyp in Task ändern - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Vermeiden Sie "async void"-Methoden, da Ausnahmen, die nicht von der Methode verarbeitet werden, zu einem Absturz des Prozesses führen. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - "async void"-Methoden vermeiden - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Vermeiden Sie die Verwendung von Async-Lambdafunktionen für als "Void" zurückgebenden Delegattypen, da Ausnahmen, die nicht vom Delegaten verarbeitet werden, zu einem Absturz des Prozesses führen. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Nicht unterstützte asynchrone Delegaten vermeiden - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Beschränken Sie die Verwendung synchron blockierender Methodenaufrufe wie "JoinableTaskFactory.Run" oder "Task.Result" auf öffentliche Einstiegspunktmitglieder, bei denen Sie synchron sein müssen. Wenn Sie sie für interne Mitglieder verwenden, werden asynchronen Frames unter Umständen unnötigerweise synchrone Frames hinzugefügt, was zu einer Auslastung des Threadpools führt. - - - - Implement internal logic asynchronously - Interne Logik asynchron implementieren - - - - {0} synchronously blocks. Await {1} instead. - {0} synchron blockiert. Warten Sie stattdessen auf {1}. - - - - {0} synchronously blocks. Use await instead. - {0} synchron blockiert. Verwenden Sie stattdessen "await". - - - - Call async methods when in an async method - Asynchrone Methoden in einer asynchronen Methode aufrufen - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Machen Sie eine asynchrone Version dieser Methode verfügbar, die nicht synchron blockiert. Vereinfachen Sie diese Methode anschließend, um die asynchrone Methode innerhalb eines Delegaten vom Typ "JoinableTaskFactory.Run" aufzurufen. - - - - Offer async methods - Asynchrone Methoden bieten - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Vermeiden Sie Methodenüberladungen, die "TaskScheduler.Current" annehmen. Verwenden Sie eine Überladung, die einen TaskScheduler akzeptiert, und geben Sie explizit "TaskScheduler.Default" (o. a.) an. - - - - Avoid method overloads that assume TaskScheduler.Current - Methodenüberladungen, die TaskScheduler.Current annehmen, vermeiden - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - AsyncEventHandler-Delegaten müssen über die Erweiterungsmethode "TplExtensions.InvokeAsync()", die in der Microsoft.VisualStudio.Threading-Assembly definiert ist, aufgerufen werden. - - - - Use InvokeAsync to raise async events - InvokeAsync zum Auslösen asynchroner Ereignisse verwenden - - - - Await using expression - Await using-Ausdruck - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Der await-Operator für den "using"-Ausdruck fehlt. - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Await Task im using-Ausdruck. - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - Überprüfungen der Threadaffinität dürfen keine Bedingungen umfassen. - - - - Assert thread affinity unconditionally - Threadaffinität ohne Bedingungen bestätigen - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Vermeiden Sie eine Auslösung in einer asynchronen Methode oder einer Methode mit Aufgabenrückgabe, sofern Sie sich nicht im Hauptthread befinden. Wechseln Sie stattdessen zum benötigten Thread. - - - - Switch instead of assert in async methods - "switch" anstelle von "assert" in asynchronen Methoden - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Überwachen Sie das zu erwartende Ergebnis dieses Methodenaufrufs mit "await", weisen Sie es einer Variablen zu, oder übergeben Sie es an eine andere Methode. - - - - Observe result of async calls - Ergebnis asynchroner Aufrufe überwachen - - - - Add .ConfigureAwait(false) - .ConfigureAwait(false) hinzufügen - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - .ConfigureAwait(true) hinzufügen - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Fügen Sie ".ConfigureAwait(bool)" zu Ihrem await-Ausdruck hinzu. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - ConfigureAwait(bool) verwenden - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Implementierung von System.IAsyncDisposable hinzufügen - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Implementieren Sie die System.IAsyncDisposable-Schnittstelle, wenn Sie die veraltete Microsoft.VisualStudio.Threading.IAsyncDisposable-Schnittstelle implementieren. - - - - Implement System.IAsyncDisposable - System.IAsyncDisposable implementieren - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Fügen Sie eine Überprüfung auf System.IAsyncDisposable im gleichen Codeblock hinzu, der auf Microsoft.VisualStudio.Threading.IAsyncDisposable mit ähnlichem Verhalten überprüft. - - - - Check for System.IAsyncDisposable - Auf System.IAsyncDisposable überprüfen - - - - Use 'Task.CompletedTask' instead - Stattdessen "Task.CompletedTask" verwenden - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Stattdessen "Task.FromResult" verwenden - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Vermeiden Sie die Rückgabe von NULL aus einer Methode zur Rückgabe von Aufgaben. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Rückgabe von NULL-Aufgaben vermeiden - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Verwenden Sie das Suffix "Async" in Namen von Methoden, die einen Typ zurückgeben, der "await" unterstützt. - - - - Rename to {0} - In {0} umbenennen - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Vermeiden Sie das Suffix "Async" in Namen von Methoden, die keinen Typ zurückgeben, der "await" unterstützt. - - - - Use "Async" suffix for async methods - Verwenden Sie das Suffix "Async" für asynchrone Methoden - - - - Call ThrowIfCancellationRequested() - ThrowIfCancellationRequested() aufrufen - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Nach dem Aufruf von SwitchToMainThreadAsync(CancellationToken) prüfen Sie auf einen Abbruch. - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Nach SwitchToMainThreadAsync auf Abbruch überprüfen - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.es.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.es.xlf deleted file mode 100644 index 0e649963..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.es.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Use await {0} en su lugar - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - La interfaz System.IAsyncDisposable se define en el paquete NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - Use await en su lugar - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Use el método await JoinableTaskFactory.SwitchToMainThreadAsync() para cambiar al subproceso de interfaz de usuario en lugar de a API que pueden causar interbloqueo o requerir que se especifique una prioridad. - - - - Avoid legacy thread switching APIs - Evite cambiar a API de subprocesos heredados - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Use await en su lugar - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - La espera sincrónica de tareas o elementos que ejecutan await puede provocar interbloqueos. Use await o JoinableTaskFactory.Run en su lugar. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Evite esperas sincrónicas problemáticas - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Evita la espera o la devolución de una tarea que representa el trabajo no iniciado en su contexto, ya que puede dar lugar a bloqueos. -Inicie el trabajo en este contexto o use JoinableTaskFactory.RunAsync para iniciar la tarea y esperar en su lugar el objeto JoinableTask devuelto. - - - - Avoid awaiting foreign Tasks - Evitar la espera de tareas externas - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - Se deben esperar las llamadas a JoinableTaskFactory.SwitchToMainThreadAsync(). - - - - Await SwitchToMainThreadAsync - Esperar a SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - El acceso a "{0}" solo se debe realizar en el subproceso principal. Espere primero a JoinableTaskFactory.SwitchToMainThreadAsync(). - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - El acceso a "{0}" solo se debe realizar en el subproceso principal. Llame primero a {1}(). - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Invocar tipos uniproceso en el subproceso principal - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>. Posible interbloqueo del valor. -Use AsyncLazy<T> en su lugar. - - - - Use AsyncLazy<T> - Usar AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - La invocación o el bloqueo del código asincrónico en un valor Lazy<T> predeterminado de fábrica puede generar un interbloqueo. -Use AsyncLazy<T> en su lugar. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Proporcione una instancia de JoinableTaskFactory en esta llamada (u otra sobrecarga) para evitar interbloqueos con el subproceso principal. - - - - Provide JoinableTaskFactory where allowed - Proporcione JoinableTaskFactory donde se permita - - - - Change return type to Task - Cambie el tipo de valor devuelto a Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Evite métodos "async void", porque las excepciones no controladas por el método bloquearán el proceso. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Evite métodos async void - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Evite usar la lambda async para un tipo de delegado de devolución void, porque las excepciones no controladas por el delegado bloquearán el proceso. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Evite delegados asincrónicos no compatibles - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Limite el uso de llamadas de métodos de bloqueo sincrónico, como JoinableTaskFactory.Run o Task.Result, a miembros de punto de entrada públicos donde tiene que ser sincrónico. El uso para miembros internos puede agregar innecesariamente marcos sincrónicos entre marcos asincrónicos, provocando el agotamiento del conjunto de subprocesos. - - - - Implement internal logic asynchronously - Implemente la lógica interna asincrónicamente - - - - {0} synchronously blocks. Await {1} instead. - {0} bloquea sincrónicamente. Use await {1} en su lugar. - - - - {0} synchronously blocks. Use await instead. - {0} bloquea sincrónicamente. Use await en su lugar. - - - - Call async methods when in an async method - Llame a métodos asincrónicos cuando esté en un método asincrónico - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Exponga una versión asincrónica de este método que no cause bloqueo de manera sincrónica. A continuación, simplifique este método para llamar a ese método asincrónico dentro de un delegado JoinableTaskFactory.Run. - - - - Offer async methods - Ofrezca métodos asincrónicos - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Evite las sobrecargas de métodos que asumen TaskScheduler.Current. Use una sobrecarga que acepte un elemento TaskScheduler y especifique TaskScheduler.Default (o cualquier otro) explícitamente. - - - - Avoid method overloads that assume TaskScheduler.Current - Evite las sobrecargas de métodos que asumen TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Los delegados de AsyncEventHandler deben invocarse a través del método de extensión "TplExtensions.InvokeAsync()" definido en el ensamblado Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Use InvokeAsync para desencadenar eventos asincrónicos - - - - Await using expression - Usar await en expresión using - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Falta el operador await en la expresión "using". - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Usar await para tarea dentro de expresión using - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - Las comprobaciones de afinidad de subproceso deben ser incondicionales. - - - - Assert thread affinity unconditionally - Declarar afinidad de subproceso incondicionalmente - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Evite lanzar cuando no esté en el subproceso principal durante un método asincrónico o que devuelve tareas. Cambie en su lugar al subproceso requerido. - - - - Switch instead of assert in async methods - Cambiar en lugar de declarar en métodos asincrónicos - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Observe el resultado que se puede esperar de esta llamada a método cuando se espera, se asigna a una variable o se pasa a otro método. - - - - Observe result of async calls - Observar resultado de llamadas asincrónicas - - - - Add .ConfigureAwait(false) - Agregar .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Agregar .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Agregue .ConfigureAwait(bool) a su expresión await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Usar ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Agregue la implementación de System.IAsyncDisposable. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Implemente la interfaz de System.IAsyncDisposable al implementar la interfaz de Microsoft.VisualStudio.Threading.IAsyncDisposable obsoleta. - - - - Implement System.IAsyncDisposable - Implementar System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Agregue una comprobación para System.IAsyncDisposable en el mismo bloque de código que busca Microsoft.VisualStudio.Threading.IAsyncDisposable que se comporta de forma similar. - - - - Check for System.IAsyncDisposable - Buscar System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - Usar "Task.CompletedTask" en su lugar - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Usar "Task.FromResult" en su lugar - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Impida que se devuelva un valor nulo desde un método de devolución de Task. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Impedir la devolución de un tipo Task nulo - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Use el sufijo "Async" en nombres de métodos que devuelven un tipo que admite await. - - - - Rename to {0} - Cambie el nombre a {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Evite el sufijo "Async" en nombres de métodos que no devuelven un tipo que admite await. - - - - Use "Async" suffix for async methods - Use el sufijo "Async" para métodos asincrónicos - - - - Call ThrowIfCancellationRequested() - Llamar a ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Compruebe la cancelación después de llamar a SwitchToMainThreadAsync(CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Comprobar cancelación después de SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.fr.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.fr.xlf deleted file mode 100644 index 8c63877d..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.fr.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Attendre {0} à la place - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - L'interface System.IAsyncDisposable est définie dans le package NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - Utiliser await à la place - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Attendez que JoinableTaskFactory.SwitchToMainThreadAsync() passe au thread d'interface utilisateur au lieu des API susceptibles de se bloquer ou de demander une priorité. - - - - Avoid legacy thread switching APIs - Éviter les API de commutation de thread héritées - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Utiliser await à la place - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - L'attente de manière synchrone de tâches ou d’éléments en attente peut entraîner des blocages. Utilisez await ou JoinableTaskFactory.Run à la place. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Éviter les attentes synchrones problématiques - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Évitez d'attendre ou de retourner une tâche représentant un travail non démarré dans votre contexte, car cela peut provoquer des interblocages. -Démarrez le travail dans ce contexte, ou utilisez JoinableTaskFactory.RunAsync pour commencer la tâche, et attendez plutôt le JoinableTask retourné. - - - - Avoid awaiting foreign Tasks - Éviter d'attendre des tâches étrangères - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - Vous devez attendre les appels à JoinableTaskFactory.SwitchToMainThreadAsync(). - - - - Await SwitchToMainThreadAsync - Attendre SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - L'accès à "{0}" doit être uniquement effectué sur le thread principal. Attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - L'accès à "{0}" doit être uniquement effectué sur le thread principal. Appelez d'abord {1}(). - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Appeler les types à thread unique sur le thread principal - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value peut entraîner un interblocage. -Utilisez AsyncLazy<T> à la place. - - - - Use AsyncLazy<T> - Utiliser AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - L'appel ou le blocage de code asynchrone dans une fabrique de valeurs Lazy<T> peut entraîner un interblocage. -Utilisez AsyncLazy<T> à la place. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Fournissez une instance de JoinableTaskFactory dans cet appel (ou une autre surcharge) pour éviter les blocages avec le même thread. - - - - Provide JoinableTaskFactory where allowed - Fournir JoinableTaskFactory quand autorisé - - - - Change return type to Task - Remplacer le type de retour par Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Évitez les méthodes "async void", car toute exception non traitée par la méthode bloque le processus. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Éviter les méthodes async void - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Évitez d’utiliser une expression lambda asynchrone pour un type de délégué retournant void, car toute exception non traitée par la méthode bloque le processus. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Éviter les délégués async non pris en charge - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Limitez l'utilisation des appels de méthode de blocage synchrones, comme JoinableTaskFactory.Run ou Task.Result, aux membres de point d’entrée publics où il est nécessaire d’être synchrone. Son utilisation pour des membres internes peut inutilement ajouter des frames synchrones entre les frames asynchrones, provoquant l'épuisement du pool de threads. - - - - Implement internal logic asynchronously - Implémenter la logique interne de façon asynchrone - - - - {0} synchronously blocks. Await {1} instead. - {0} bloque de façon synchrone. Attendez {1} à la place. - - - - {0} synchronously blocks. Use await instead. - {0} bloque de façon synchrone. Utilisez await à la place - - - - Call async methods when in an async method - Appeler des méthodes async dans une méthode async - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Exposez une version asynchrone de cette méthode qui ne se bloque pas de manière synchrone. Ensuite, simplifiez cette méthode pour appeler cette méthode async dans un délégué JoinableTaskFactory.Run. - - - - Offer async methods - Offrir des méthodes async - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Évitez les surcharges de méthode qui optent par défaut pour TaskScheduler.Current. Utilisez une surcharge qui accepte un TaskScheduler et spécifiez TaskScheduler.Default (ou autre chose) de manière explicite. - - - - Avoid method overloads that assume TaskScheduler.Current - Éviter les surcharges de méthode qui optent par défaut pour TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Les délégués AsyncEventHandler doivent être appelés avec la méthode d’extension "TplExtensions.InvokeAsync()" définie dans l’assembly Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Utiliser InvokeAsync pour déclencher des événements async - - - - Await using expression - Attendre l’expression using - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Opérateur await manquant pour l’expression "using". - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Tâche Await dans l’expression using - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - Les vérifications d'affinité de thread doivent être inconditionnelles. - - - - Assert thread affinity unconditionally - Effectuer l'assertion de l'affinité de thread de manière inconditionnelle - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Évitez toute levée quand vous n'êtes pas sur the thread principal dans une méthode retournant async ou Task. Basculez plutôt sur le thread requis. - - - - Switch instead of assert in async methods - Basculer sur des méthodes async plutôt qu'assert - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Observez le résultat pouvant être attendu de cet appel de méthode en l'attendant, en l'assignant à une variable ou en le passant à une autre méthode. - - - - Observe result of async calls - Observer le résultat des appels async - - - - Add .ConfigureAwait(false) - Ajouter .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Ajouter .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Ajoutez .ConfigureAwait(bool) à votre expression await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Utiliser ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Ajoutez l'implémentation de System.IAsyncDisposable. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Implémentez l'interface System.IAsyncDisposable quand vous implémentez l'interface Microsoft.VisualStudio.Threading.IAsyncDisposable obsolète. - - - - Implement System.IAsyncDisposable - Implémentez System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Ajoutez une vérification de System.IAsyncDisposable dans le même bloc de code qui vérifie Microsoft.VisualStudio.Threading.IAsyncDisposable dont le comportement est similaire. - - - - Check for System.IAsyncDisposable - Vérifier System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - Utiliser 'Task.CompletedTask' à la place - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Utiliser 'Task.FromResult' à la place - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Évitez de retourner la valeur null pour une méthode qui retourne une tâche. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Éviter de retourner une tâche null - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Utilisez le suffixe "Async" dans les noms des méthodes qui retournent un type awaitable. - - - - Rename to {0} - Renommer en {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Évitez le suffixe "Async" dans les noms des méthodes qui ne retournent pas un type awaitable - - - - Use "Async" suffix for async methods - Utiliser le suffixe "Async" pour les méthodes asynchrones - - - - Call ThrowIfCancellationRequested() - Appeler ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Vérifiez l’annulation après l’appel de SwitchToMainThreadAsync (CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Vérifier l’annulation après SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.it.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.it.xlf deleted file mode 100644 index 333cf195..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.it.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - In alternativa, usare await {0} - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - L'interfaccia System.IAsyncDisposable è definita nel pacchetto NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - In alternativa, usare await - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Usare await JoinableTaskFactory.SwitchToMainThreadAsync() per passare al thread di UI invece di usare API che possono causare deadlock o per le quali è necessario specificare una priorità. - - - - Avoid legacy thread switching APIs - Evita API legacy per il passaggio a thread - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - In alternativa, usare await - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - L'attesa in modalità sincrona di attività o awaiter può causare deadlock. In alternativa, usare await o JoinableTaskFactory.Run. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Evita attese sincrone problematiche - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Evitare di attendere o restituire un oggetto Task che rappresenta un'operazione non avviata nel contesto perché potrebbe causare deadlock. -Avviare l'operazione in questo contesto oppure usare JoinableTaskFactory.RunAsync per avviare l'attività e attendere l'oggetto restituito JoinableTask. - - - - Avoid awaiting foreign Tasks - Evitare di attendere oggetti Task esterni - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - Con le chiamate a JoinableTaskFactory.SwitchToMainThreadAsync() è necessario usare await. - - - - Await SwitchToMainThreadAsync - Usa await SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - L'accesso a "{0}" deve essere effettuato solo nel thread principale. Usare prima await JoinableTaskFactory.SwitchToMainThreadAsync(). - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - L'accesso a "{0}" deve essere effettuato solo nel thread principale. Chiamare prima {1}(). - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Richiamare tipi a thread singolo sul thread principale - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value può causare deadlock. -In alternativa, usare AsyncLazy<T>. - - - - Use AsyncLazy<T> - Usare AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - La chiamata o il blocco su codice asincrono in una factory di valori Lazy<T> può causare un deadlock. -In alternativa, usare AsyncLazy<T>. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Specificare in questa chiamata un'istanza di JoinableTaskFactory o di un altro overload per evitare deadlock con il thread principale. - - - - Provide JoinableTaskFactory where allowed - Specifica JoinableTaskFactory quando consentito - - - - Change return type to Task - Cambia tipo restituito in Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Evitare metodi "async void" perché tutte le eccezioni non gestite dal metodo causeranno l'arresto anomalo del processo. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Evita metodi asincroni void - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Evitare di usare espressioni lambda asincrone per un tipo di delegato che restituisce void, perché tutte le eccezioni non gestite dal delegato causeranno l'arresto anomalo del processo. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Evita delegati asincroni non supportati - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Limita l'uso di chiamate a un metodo con blocco asincrono, come JoinableTaskFactory.Run o Task.Result, a membri di punti di ingresso pubblici in cui è necessario essere sincroni. Se vengono usate per membri interni, è possibile che vengano aggiunti frame sincroni non necessari tra frame asincroni e questo può causare l'esaurimento del pool di thread. - - - - Implement internal logic asynchronously - Implementa la logica interna in modalità asincrona - - - - {0} synchronously blocks. Await {1} instead. - {0} si blocca in modalità sincrona. In alternativa, usare await {1}. - - - - {0} synchronously blocks. Use await instead. - {0} si blocca in modalità sincrona. In alternativa, usare await. - - - - Call async methods when in an async method - Chiama metodi asincroni se il metodo è asincrono - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Esporre una versione asincrona di questo metodo che non applica il blocco asincrono. Semplificare quindi questo metodo in modo da chiamare il metodo asincrono in un delegato di JoinableTaskFactory.Run. - - - - Offer async methods - Offri metodi asincroni - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Evitare gli overload di metodo che presuppongono TaskScheduler.Current. Usare un overload che accetta un elemento TaskScheduler e specificare TaskScheduler.Default (o qualsiasi altro elemento) in modo esplicito. - - - - Avoid method overloads that assume TaskScheduler.Current - Evita overload di metodo che presuppongono TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - I delegati di AsyncEventHandler devono essere richiamati tramite il metodo di estensione "TplExtensions.InvokeAsync()" definito nell'assembly Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Usa InvokeAsync per generare eventi asincroni - - - - Await using expression - Espressione using await - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Manca l'operatore await per l'espressione "using". - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - await Task in espressione using - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - I controlli di affinità dei thread non devono essere condizionali. - - - - Assert thread affinity unconditionally - Asserisci l'affinità dei thread in modo non condizionale - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Evitare la generazione quando non si è in un thread principale durante un metodo asincrono o che restituisce elementi Task. In alternativa, passare al thread richiesto. - - - - Switch instead of assert in async methods - Usa switch invece di assert in metodi asincroni - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Per osservare il risultato awaitable di questa chiamata a un metodo, usare await per la chiamata, assegnarla a una variabile o passarla a un altro metodo. - - - - Observe result of async calls - Osserva il risultato di chiamate asincrone - - - - Add .ConfigureAwait(false) - Aggiungi .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Aggiungi .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Aggiungere .ConfigureAwait(bool) all'espressione await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Usa ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Aggiungere l'implementazione di System.IAsyncDisposable. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Implementare l'interfaccia System.IAsyncDisposable durante l'implementazione dell'interfaccia obsoleta Microsoft.VisualStudio.Threading.IAsyncDisposable. - - - - Implement System.IAsyncDisposable - Implementare System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Aggiungere un controllo per System.IAsyncDisposable nello stesso blocco di codice per verificare se è presente un elemento Microsoft.VisualStudio.Threading.IAsyncDisposable che si comporta in modo analogo. - - - - Check for System.IAsyncDisposable - Verifica la presenza di System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - In alternativa, usare 'Task.CompletedTask' - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - In alternativa, usare 'Task.FromResult' - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Evitare che un metodo che restituisce un elemento Task restituisca Null. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Evitare la restituzione di un elemento Task Null - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Usare il suffisso "Async" in nomi di metodi che restituiscono un tipo awaitable. - - - - Rename to {0} - Rinomina in {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Evitare il suffisso "Async" in nomi di metodi che non restituiscono un tipo awaitable. - - - - Use "Async" suffix for async methods - Usa suffisso "Async" per metodi asincroni - - - - Call ThrowIfCancellationRequested() - Chiamare ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Verifica l'annullamento dopo la chiamata di SwitchToMainThreadAsync(CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Verifica annullamento dopo SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ja.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ja.xlf deleted file mode 100644 index 6ef1df85..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ja.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - 代わりに {0} を待機する - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - System.IAsyncDisposable インターフェイスは、Microsoft.Bcl.AsyncInterfaces NuGet パッケージに定義されています。 - - - - Use await instead - 代わりに Await を使用する - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - UI スレッドに切り替えるためには、デッドロックを引き起こす可能性や、優先順位の指定の必要がある API を使用するのではなく、JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 - - - - Avoid legacy thread switching APIs - 従来のスレッド切り替え API を使用しない - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - 代わりに Await を使用する - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - 同期的にタスクまたは awaiter を待機すると、デッドロックが引き起こされる可能性があります。代わりに await または JoinableTaskFactory.Run を使用してください。 - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - 問題のある同期待機を避ける - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - コンテキスト内で開始されなかった作業を表すタスクを待機したり返したりしないでください。これは、デッドロックを生じさせる可能性があります。 -このコンテキスト内で作業を開始するか、代わりに JoinableTaskFactory.RunAsync を使用してタスクを開始し、返される JoinableTask を待機してください。 - - - - Avoid awaiting foreign Tasks - 外部タスクを待機しない - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - JoinableTaskFactory.SwitchToMainThreadAsync() への呼び出しを待機する必要があります。 - - - - Await SwitchToMainThreadAsync - SwitchToMainThreadAsync を待機する - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - "{0}" へのアクセスはメイン スレッドでのみ行う必要があります。まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - "{0}" へのアクセスはメイン スレッドでのみ行う必要があります。まず {1}() を呼び出します。 - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - メイン スレッドでシングルスレッド型を呼び出す - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value はデッドロックすることがあります。 -代わりに AsyncLazy<T> を使用してしてください。 - - - - Use AsyncLazy<T> - AsyncLazy<T> を使用する - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Lazy<T> 値ファクトリ内の非同期コード上での呼び出しまたはブロックは、デッドロックすることがあります。 -代わりにAsyncLazy<T> を使用してください。 - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - この呼び出し (または別のオーバーロード) で JoinableTaskFactory のインスタンスを提供して、メイン スレッドとのデッドロックを回避します。 - - - - Provide JoinableTaskFactory where allowed - 許可されている場合は JoinableTaskFactory を提供する - - - - Change return type to Task - 戻り値の型を Task に変更する - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - "async void" メソッドは使用しないでください。このメソッドで処理されていない例外によりプロセスがクラッシュします。 - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - async void メソッドを使用しない - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - デリゲート型を返す void に非同期ラムダは使用しないでください。このデリゲートで処理されていない例外によりプロセスがクラッシュします。 - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - サポートされていないい非同期デリゲートを使用しない - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - JoinableTaskFactory.Run または Task.Result など、同期的にブロックを行うメソッド呼び出しの使用は、同期が必要な公開エントリポイント メンバーに限定してください。内部メンバーに対して使用すると、非同期フレーム間に同期フレームが不必要に追加され、スレッドプールが消費されます。 - - - - Implement internal logic asynchronously - 内部論理を非同期的に実装する - - - - {0} synchronously blocks. Await {1} instead. - {0} は同期的にブロックを実行します。代わりに {1} を待機してください。 - - - - {0} synchronously blocks. Use await instead. - {0} は同期的にブロックを実行します。代わりに await を使用してください。 - - - - Call async methods when in an async method - 非同期メソッドの場合に非同期メソッドを呼び出す - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - このメソッドの、同期的にブロックしない非同期バージョンを公開してください。次に、このメソッドを単純化し、JoinableTaskFactory.Run デリゲート内でその非同期メソッドを呼び出すようにします。 - - - - Offer async methods - 非同期メソッドを提供する - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - TaskScheduler.Current を仮定するメソッド オーバーロードを使用しないでください。TaskScheduler を受け入れるオーバーロードを使用し、TaskScheduler.Default (または他のプロパティ) を明示的に指定します。 - - - - Avoid method overloads that assume TaskScheduler.Current - TaskScheduler.Current を仮定するメソッド オーバーロードを使用しない - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - AsyncEventHandler デリゲートは、Microsoft.VisualStudio.Threading アセンブリで定義されている拡張メソッド "TplExtensions.InvokeAsync()" で呼び出される必要があります。 - - - - Use InvokeAsync to raise async events - InvokeAsync を使用して非同期イベントを発生させる - - - - Await using expression - using 式を待機する - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - "using" 式に await 演算子がありません。 - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - using 式内の Task を待機する - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - スレッド アフィニティ チェックは、無条件である必要があります。 - - - - Assert thread affinity unconditionally - スレッド アフィニティを無条件でアサートする - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - 非同期メソッドまたはタスクを返すメソッドでは、メイン スレッド上でない限り、スローしないでください。代わりに、必要なスレッドに切り替えてください。 - - - - Switch instead of assert in async methods - 非同期メソッドでアサートの代わりに切り替えを使用する - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - このメソッド呼び出しの待機可能な結果を確認するには、それを待機するか、変数に割り当てるか、別のメソッドに渡します。 - - - - Observe result of async calls - 非同期呼び出しの結果を確認する - - - - Add .ConfigureAwait(false) - .ConfigureAwait(false) を追加する - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - .ConfigureAwait(true) を追加する - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - ConfigureAwait(bool) を Await 式に追加する。 - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - ConfigureAwait(bool) を使用する - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - System.IAsyncDisposable の実装の追加。 - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - 古い Microsoft.VisualStudio.Threading.IAsyncDisposable インターフェイスを実装するときには System.IAsyncDisposable インターフェイスを実装します。 - - - - Implement System.IAsyncDisposable - System.IAsyncDisposable の実装 - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - System.IAsyncDisposable のチェックを、Microsoft.VisualStudio.Threading.IAsyncDisposable (動作が類似しています) のチェックを行うのと同じコード ブロックに追加してください。 - - - - Check for System.IAsyncDisposable - System.IAsyncDisposable のチェック - - - - Use 'Task.CompletedTask' instead - 代わりに 'Task.CompletedTask' を使用する - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - 代わりに 'Task.FromResult' を使用する - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Task を返すメソッドから null を返さないようにします。 - Task is a type name and should not be translated. - - - Avoid returning a null Task - null Task を返さないようにする - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - 待機可能な型を戻すメソッドの名前に "Async" サフィックスを使用します。 - - - - Rename to {0} - {0} に名前を変更する - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - 待機可能な型を戻さないメソッドの名前に "Async" サフィックスを使用しないでください。 - - - - Use "Async" suffix for async methods - 非同期メソッドに "Async" サフィックスを使用する - - - - Call ThrowIfCancellationRequested() - ThrowIfCancellationRequested() の呼び出し - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - SwitchToMainThreadAsync(CancellationToken) を呼び出した後にキャンセルを確認してください。 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - SwitchToMainThreadAsync の後のキャンセルの確認 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ko.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ko.xlf deleted file mode 100644 index b6b3966a..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ko.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - 대신 {0}을(를) 기다립니다. - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - System.IAsyncDisposable 인터페이스는 Microsoft.Bcl.AsyncInterfaces NuGet 패키지에 정의되어 있습니다. - - - - Use await instead - 대신 await를 사용합니다. - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - JoinableTaskFactory.SwitchToMainThreadAsync()가 교착 상태를 일으킬 수 있고 우선 순위를 지정해야 하는 API 대신 UI 스레드로 전환될 때까지 기다립니다. - - - - Avoid legacy thread switching APIs - 레거시 스레드 전환 API 방지 - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - 대신 await를 사용합니다. - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - 작업을 동기적으로 대기합니다. 그러지 않으면 대기자가 교착 상태를 일으킬 수 있습니다. 대신 await나 JoinableTaskFactory.Run을 사용합니다. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - 문제가 있는 동기 대기를 사용하지 않습니다. - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - 교착 상태가 발생할 수 있기 때문에 컨텍스트 내에서 시작되지 않은 작업을 나타내는 작업을 대기하거나 반환하지 않습니다. -대신 이 컨텍스트 내에서 작업을 시작하거나 JoinableTaskFactory.RunAsync를 사용하여 작업을 시작하고 반환된 JoinableTask를 대기하세요. - - - - Avoid awaiting foreign Tasks - 외부 작업을 대기하지 않음 - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - JoinableTaskFactory.SwitchToMainThreadAsync() 호출을 대기해야 합니다. - - - - Await SwitchToMainThreadAsync - Await SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - 주 스레드에서만 "{0}"에 액세스해야 합니다. 우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - 주 스레드에서만 "{0}"에 액세스해야 합니다. 우선 {1}()을(를) 호출합니다. - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - 주 스레드에서 단일 스레드 형식을 호출 - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value는 교착 상태를 초래할 수 있습니다. -대신 AsyncLazy<T>를 사용하세요. - - - - Use AsyncLazy<T> - AsyncLazy<T> 사용 - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Lazy<T> 값 팩터리에서 비동기 코드를 호출하거나 차단하면 교착 상태가 발생할 수 있습니다. -대신 AsyncLazy<T>를 사용하세요. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - 주 스레드에서 교착 상태를 방지하려면 이 호출(또는 다른 오버로드)에서 JoinableTaskFactory의 인스턴스를 제공하세요. - - - - Provide JoinableTaskFactory where allowed - 허용되는 경우 JoinableTaskFactory 제공 - - - - Change return type to Task - 반환 형식을 Task로 변경 - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - 메서드에서 처리하지 않은 예외로 프로세스가 중단될 수 있으므로 "async void" 메서드를 사용하지 마세요. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - async void 메서드를 사용하지 않습니다. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - 대리자에서 처리하지 않은 예외로 프로세스가 중단될 수 있으므로 void 반환 대리자 형식에 대해 비동기 람다를 사용하지 마세요. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - 지원되지 않는 비동기 대리자를 사용하지 않습니다. - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - 동기화되어야 하는 공개 진입점 멤버에 JoinableTaskFactory.Run 또는 Task.Resut처럼 동기적으로 차단하는 메서드 호출 사용을 제한합니다. 내부 멤버에 이러한 매서드 호출을 사용하면 비동기 프레임 사이에 동기 프레임을 불필요하게 추가하여 threadpool이 소모될 수 있습니다. - - - - Implement internal logic asynchronously - 내부 논리를 비동기적으로 구현 - - - - {0} synchronously blocks. Await {1} instead. - {0}이(가) 동기적으로 차단합니다. 대신 {1}을(를) 기다립니다. - - - - {0} synchronously blocks. Use await instead. - {0}이(가) 동기적으로 차단합니다. 대신 await를 사용합니다. - - - - Call async methods when in an async method - 비동기 메서드인 경우 비동기 메서드를 호출합니다. - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - 동기적으로 차단되지 않는 이 메서드의 비동기 버전을 노출하세요. 그런 다음 JoinableTaskFactory.Run 대리자 내의 해당 비동기 메서드를 호출하도록 이 메서드를 단순화하세요. - - - - Offer async methods - 비동기 메서드 제공 - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - TaskScheduler.Current를 가정하는 메서드 오버로드를 사용하지 않습니다. TaskScheduler를 수용하고 TaskScheduler.Default(또는 기타)를 명시적으로 지정하는 오버로드를 사용합니다. - - - - Avoid method overloads that assume TaskScheduler.Current - TaskScheduler.Current를 가정하는 메서드 오버로드를 사용하지 않습니다. - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Microsoft.VisualStudio.Threading 어셈블리에 정의된 "TplExtensions.InvokeAsync()" 확장 메서드를 통해 AsyncEventHandler 대리자를 호출해야 합니다. - - - - Use InvokeAsync to raise async events - 비동기 이벤트를 발생하는 InvokeAsync 사용 - - - - Await using expression - await using 식 - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - "using" 식의 await 연산자 누락 - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - using 식의 await Task - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - 스레드 선호도 검사는 비조건부여야 합니다. - - - - Assert thread affinity unconditionally - 무조건 스레드 선호도 어설션 - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - 비동기 또는 태스크 반환 메서드에서 주 스레드에 있지 않은 경우 throw하지 않습니다. 대신 필수 스레드로 전환합니다. - - - - Switch instead of assert in async methods - 비동기 메서드에서 어설션 대신 전환 - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - 이 메서드 호출을 대기하거나, 변수에 할당하거나, 다른 메서드에 전달함으로써 해당 호출의 대기할 수 있는 결과를 확인합니다. - - - - Observe result of async calls - 비동기 호출의 결과 확인 - - - - Add .ConfigureAwait(false) - .ConfigureAwait(false)를 추가합니다. - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - .ConfigureAwait(true)를 추가합니다. - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - .ConfigureAwait(bool)를 await 식에 추가합니다. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - ConfigureAwait(bool)를 사용합니다. - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - System.IAsyncDisposable의 구현을 추가합니다. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - 사용되지 않는 Microsoft.VisualStudio.Threading.IAsyncDisposable 인터페이스를 구현할 때는 System.IAsyncDisposable 인터페이스를 구현합니다. - - - - Implement System.IAsyncDisposable - System.IAsyncDisposable 구현 - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - 비슷한 동작을 수행하는 Microsoft.VisualStudio.Threading.IAsyncDisposable을 검사하는 코드 블록 안에 System.IAsyncDisposable에 대한 검사를 추가합니다. - - - - Check for System.IAsyncDisposable - System.IAsyncDisposable을 검사합니다. - - - - Use 'Task.CompletedTask' instead - 대신 'Task.CompletedTask' 사용 - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - 대신 'Task.FromResult' 사용 - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Task-returning 메서드에서 null 반환을 방지합니다. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Null 작업 반환 방지 - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - 대기할 수 있는 형식을 반환하는 메서드의 이름에 "Async" 접미사를 사용합니다. - - - - Rename to {0} - {0}(으)로 이름 바꾸기 - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - 대기할 수 있는 형식을 반환하지 않는 메서드의 이름에 "Async" 접미사를 사용하지 않습니다. - - - - Use "Async" suffix for async methods - 비동기 메서드에 "Async" 접미사 사용 - - - - Call ThrowIfCancellationRequested() - ThrowIfCancellationRequested() 호출 - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - SwitchToMainThreadAsync를 호출한 후 취소를 확인합니다(CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - SwitchToMainThreadAsync 후 취소 확인 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pl.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pl.xlf deleted file mode 100644 index c15a1ddf..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pl.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Zamiast tego oczekuj na {0} - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - Interfejs System.IAsyncDisposable jest zdefiniowany w pakiecie NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - Zamiast tego używaj oczekiwania - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Zaczekaj, aż metoda JoinableTaskFactory.SwitchToMainThreadAsync() przełączy się do wątku interfejsu użytkownika zamiast interfejsów API, które mogą ulec zakleszczeniu lub wymagać określenia priorytetu. - - - - Avoid legacy thread switching APIs - Unikaj starszych interfejsów API przełączających wątki - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Zamiast tego używaj oczekiwania - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - Synchroniczne oczekiwanie na zadania lub elementy typu awaiter mogą powodować zakleszczenia. Zamiast tego używaj metody await lub JoinableTaskFactory.Run. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Unikaj problematycznych oczekiwań synchronicznych - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Unikaj oczekiwania na obiekt Task lub zwracania obiektu Task reprezentującego pracę, która nie została uruchomiona w danym kontekście, ponieważ może to prowadzić do zakleszczeń. -Uruchom pracę w tym kontekście lub zamiast tego użyj metody JoinableTaskFactory.RunAsync w celu uruchomienia zadania i oczekuj na zwrócony obiekt JoinableTask. - - - - Avoid awaiting foreign Tasks - Unikaj oczekiwania na obce obiekty Task - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - Należy zaczekać na wywołania metody JoinableTaskFactory.SwitchToMainThreadAsync(). - - - - Await SwitchToMainThreadAsync - Zaczekaj na metodę SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Dostęp do metody „{0}” powinien być uzyskiwany tylko z wątku głównego. Najpierw zaczekaj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - Dostęp do metody „{0}” powinien być uzyskiwany tylko z wątku głównego. Najpierw wywołaj metodę {1}(). - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Wywołuj typy jednowątkowe w wątku głównym - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Element Lazy<Task<T>>.Value może ulec zakleszczeniu. -Zamiast tego używaj klasy AsyncLazy<T>. - - - - Use AsyncLazy<T> - Użyj klasy AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Wywołanie kodu asynchronicznego lub zablokowanie na nim w fabryce wartości Lazy<T> może spowodować zakleszczenie. -Zamiast tego użyj elementu AsyncLazy<T>. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Podaj wystąpienie elementu JoinableTaskFactory w tym wywołaniu (albo innym przeciążeniu), aby uniknąć zakleszczeń w wątku głównym. - - - - Provide JoinableTaskFactory where allowed - Podaj element JoinableTaskFactory w miejscach, gdzie jest to dopuszczalne - - - - Change return type to Task - Zmień zwracany typ na Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Unikaj metod „async void”, ponieważ wszelkie wyjątki, które nie zostaną przez nie obsłużone, spowodują awarię procesu. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Unikaj metod „async void” - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Unikaj używania asynchronicznego wyrażenia lambda dla typu delegata zwracającego „void”, ponieważ wszelkie wyjątki, które nie zostaną obsłużone przez delegata, spowodują awarię procesu. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Unikaj nieobsługiwanych delegatów asynchronicznych - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Ogranicz stosowanie wywołań metod z blokowaniem synchronicznym, takich jak JoinableTaskFactory.Run lub Task.Result, do publicznych elementów członkowskich punktów wyjścia, w przypadku których konieczne jest działanie synchroniczne. Stosowanie tego rozwiązania w przypadku wewnętrznych elementów członkowskich może powodować niepotrzebne dodawanie ramek synchronicznych między ramkami asynchronicznymi, co może prowadzić do wyczerpania puli wątków. - - - - Implement internal logic asynchronously - Logikę wewnętrzną implementuj asynchronicznie - - - - {0} synchronously blocks. Await {1} instead. - Metoda {0} powoduje blokowanie synchroniczne. Zamiast tego oczekuj na {1}. - - - - {0} synchronously blocks. Use await instead. - Metoda {0} powoduje blokowanie synchroniczne. Zamiast tego używaj oczekiwania. - - - - Call async methods when in an async method - W metodach asynchronicznych wywołuj metody asynchroniczne - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Uwidocznij asynchroniczną wersję tej metody, która nie powoduje synchronicznego blokowania. Następnie uprość tę metodę, aby wywołać tę metodę asynchroniczną w ramach delegata JoinableTaskFactory.Run. - - - - Offer async methods - Oferuj metody asynchroniczne - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Unikaj przeciążeń metod zakładających korzystanie z właściwości TaskScheduler.Current. Używaj przeciążenia przyjmującego obiekt TaskScheduler i jawnie określaj właściwość TaskScheduler.Default (lub inną). - - - - Avoid method overloads that assume TaskScheduler.Current - Unikaj przeciążeń metod zakładających korzystanie z właściwości TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Delegatów AsyncEventHandler powinno się wywoływać za pośrednictwem metody rozszerzenia „TplExtensions.InvokeAsync()” zdefiniowanej w zestawie Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Zdarzenia asynchroniczne wywołuj za pomocą metody InvokeAsync - - - - Await using expression - Oczekuj w wyrażeniu using - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Brak operatora await dla wyrażenia „using”. - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Oczekuj na zadanie wewnątrz wyrażenia using - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - Testy koligacji wątku powinny być bezwarunkowe. - - - - Assert thread affinity unconditionally - Bezwarunkowo potwierdź koligację wątku - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Unikaj zgłaszania poza wątkiem głównym w metodzie asynchronicznej lub zwracającej element Task. Zamiast tego przełącz się na wymagany wątek. - - - - Switch instead of assert in async methods - Przełączanie zamiast asercji w metodach asynchronicznych - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Obserwuj wynik typu awaitable wywołania tej metody, oczekując na niego, przypisując go do zmiennej lub przekazując do innej metody. - - - - Observe result of async calls - Obserwuj wynik wywołań asynchronicznych - - - - Add .ConfigureAwait(false) - Dodaj ciąg .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Dodaj ciąg .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Dodaj ciąg.ConfigureAwait(bool) do swojego wyrażenia await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Użyj metody ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Dodaj implementację interfejsu System.IAsyncDisposable. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Zaimplementuj interfejs System.IAsyncDisposable, gdy implementujesz przestarzały interfejs Microsoft.VisualStudio.Threading.IAsyncDisposable. - - - - Implement System.IAsyncDisposable - Zaimplementuj interfejs System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Dodaj sprawdzenie obecności interfejsu System.IAsyncDisposable w tym samym bloku kodu, który sprawdza obecność interfejsu Microsoft.VisualStudio.Threading.IAsyncDisposable zachowującego się podobnie. - - - - Check for System.IAsyncDisposable - Sprawdź obecność interfejsu System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - Zamiast tego użyj właściwości „Task.CompletedTask” - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Zamiast tego użyj metody „Task.FromResult” - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Unikaj zwracania wartości null z metody zwracającej zadanie. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Unikaj zwracania zadania o wartości null - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Używaj sufiksu „Async” w nazwach metod zwracających typ awaitable. - - - - Rename to {0} - Zmień nazwę na: {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Unikaj sufiksu „Async” w nazwach metod nie zwracających typu awaitable. - - - - Use "Async" suffix for async methods - W przypadku metod asynchronicznych używaj sufiksu „Async” - - - - Call ThrowIfCancellationRequested() - Wywoływanie metody ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Sprawdź pod kątem anulowania po wywołaniu metody SwitchToMainThreadAsync(CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Sprawdzanie anulowania po metodzie SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pt-BR.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pt-BR.xlf deleted file mode 100644 index ae70509f..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.pt-BR.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Em vez disso, espere o {0} - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - A interface System.IAsyncDisposable é definida no pacote NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - Em vez disso, use a espera - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Espere que o JoinableTaskFactory.SwitchToMainThreadAsync() mude o thread da IU em vez das APIs que podem realizar deadlock ou requerer a especificação de uma prioridade. - - - - Avoid legacy thread switching APIs - Evitar APIs de troca de treads herdadas - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Em vez disso, use a espera - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - Esperar de forma síncrona por tarefas ou awaiters pode causar deadlocks. Em vez disso, use await ou JoinableTaskFactory.Run. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Evite esperas síncronas problemáticas - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Evite aguardar ou retornar uma Tarefa que representa o trabalho que não foi iniciado em seu contexto, pois isso pode levar a deadlocks. -Inicie o trabalho nesse contexto ou use JoinableTaskFactory.RunAsync para iniciar a tarefa e aguarde o JoinableTask retornado em seu lugar. - - - - Avoid awaiting foreign Tasks - Evite aguardar Tarefas estrangeiras - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - Chamadas a JoinableTaskFactory.SwitchToMainThreadAsync() devem ser aguardadas. - - - - Await SwitchToMainThreadAsync - Aguarde SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - O acesso a "{0}" deve ser realizado somente no thread principal. Aguarde JoinableTaskFactory.SwitchToMainThreadAsync() primeiro. - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - O acesso a "{0}" deve ser realizado somente no thread principal. Chame {1}() primeiro. - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Invoque os tipos single-threaded no thread principal - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - O valor Lazy<Task<T>>. pode causar deadlock. -Nesse caso, use AsyncLazy<T>. - - - - Use AsyncLazy<T> - Usar AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - A invocação ou o bloqueio no código assíncrono em um alocador de valor Lazy<T> pode causar deadlock. -Nesse caso, use AsyncLazy<T>. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Forneça uma instância de JoinableTaskFactory nessa chamada (ou outra sobrecarga) para evitar deadlocks com o thread principal. - - - - Provide JoinableTaskFactory where allowed - Fornecer o JoinableTaskFactory quando permitido - - - - Change return type to Task - Alterar o tipo de retorno para Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Evite métodos "async void”, pois exceções que não são manipuladas pelo método causarão falha no processo. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Evite métodos async void - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Evite usar o lambda async void para um tipo de delegado que é retornado nulo, pois todas as exceções que não são manipuladas pelo delegado causarão falha no processo. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Evite delegados assíncronos sem suporte - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Limite o uso bloqueando sincronicamente chamadas de método como JoinableTaskFactory.Run ou Task.Result para membros de ponto de entrada no qual você deve ser síncrono. Usar isso para membros internos pode adicionar sem necessidade estruturas síncronas entre estruturas assíncronas, levando à exaustão de pool de threads. - - - - Implement internal logic asynchronously - Implementar a lógica interna de forma assíncrona - - - - {0} synchronously blocks. Await {1} instead. - O {0} é bloqueado de forma síncrona. Em vez disso, espere o {1}. - - - - {0} synchronously blocks. Use await instead. - O {0} é bloqueado de forma síncrona. Em vez disso, use await. - - - - Call async methods when in an async method - Chame métodos assíncronos quando estiver em um método assíncrono - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Exporte uma versão assíncrona desse método que não bloqueia de forma síncrona. Em seguida, simplifique esse método para chamar esse método assíncrono em um delegado JoinableTaskFactory.Run. - - - - Offer async methods - Oferecer métodos assíncronos - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Evite sobrecargas de método que assumem TaskScheduler.Current. Use uma sobrecarga que aceita um TaskScheduler e especifique TaskScheduler.Default (ou qualquer outro) explicitamente. - - - - Avoid method overloads that assume TaskScheduler.Current - Evite sobrecargas de método que assumem TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Os delegados do AsyncEventHandler devem ser invocados por meio do método de extensão "TplExtensions.InvokeAsync()" definido no assembly Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Use InvokeAsync para acionar eventos assíncronos - - - - Await using expression - Expressão await using - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Operador await ausente para a expressão “using” - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Await Task em uma expressão using - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - As verificações de afinidade de thread devem ser incondicionais. - - - - Assert thread affinity unconditionally - Declarar a afinidade de thread de forma incondicional - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Evite lançar quando não estiver no thread principal enquanto estiver em um método assíncrono ou de Retorno de tarefa. Mude para o thread necessário em vez disso. - - - - Switch instead of assert in async methods - Mude em vez de declarar em métodos assíncronos - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Observe o resultado esperável dessa chamada de método aguardando-o, atribuindo-o a uma variável ou passando-o a outro método. - - - - Observe result of async calls - Observe o resultado das chamadas assíncronas - - - - Add .ConfigureAwait(false) - Adicione .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Adicione .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Adicione .ConfigureAwait(bool) a sua expressão await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Use ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Adicionar implementação de System.IAsyncDisposable. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Implemente a interface System.IAsyncDisposable ao implementar a interface obsoleta do Microsoft.VisualStudio.Threading.IAsyncDisposable. - - - - Implement System.IAsyncDisposable - Implementar System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Adicione uma verificação para System.IAsyncDisposable no mesmo bloco de código que verifica o Microsoft.VisualStudio.Threading.IAsyncDisposable que se comporta da mesma forma. - - - - Check for System.IAsyncDisposable - Verificar System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - Nesse caso, use 'Task.CompletedTask' - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Nesse caso, use 'Task.FromResult' - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Evite retornar nulo de um método que retorna uma Tarefa. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Evite retornar uma Tarefa nula - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Use o sufixo "Async" em nomes de métodos que retornam um tipo esperável. - - - - Rename to {0} - Renomear para {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Evite o sufixo "Async" em nomes de métodos que não retornam um tipo esperável. - - - - Use "Async" suffix for async methods - Use o sufixo "Async" para métodos assíncronos - - - - Call ThrowIfCancellationRequested() - Chamar ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Verifique o cancelamento após chamar SwitchToMainThreadAsync(CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Verificar o cancelamento após SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ru.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ru.xlf deleted file mode 100644 index 62bb7dc5..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.ru.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Вместо этого используйте Await {0}. - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - Интерфейс System.IAsyncDisposable определен в пакете NuGet Microsoft.Bcl.AsyncInterfaces. - - - - Use await instead - Вместо этого используйте await. - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Дождитесь, когда JoinableTaskFactory.SwitchToMainThreadAsync() переключится на поток пользовательского интерфейса, и не используйте API, которые могут вызывать взаимоблокировки или требуют указания приоритета. - - - - Avoid legacy thread switching APIs - Избегайте использования устаревших API переключения потоков - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Вместо этого используйте await. - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - Синхронное ожидание задач или объектов awaiter может приводить к взаимоблокировкам. Используйте вместо этого await или JoinableTaskFactory.Run. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Избегание проблемных синхронных ожиданий - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Не рекомендуется ожидать или возвращать задачу, представляющую работу, которая не была запущена в вашем контексте, так как это может привести к взаимоблокировке. -Запустите работу в этом контексте или используйте JoinableTaskFactory.RunAsync, чтобы запустить задачу, и ожидайте возвращаемую задачу JoinableTask. - - - - Avoid awaiting foreign Tasks - Не рекомендуется ожидать внешние задачи - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - К вызовам JoinableTaskFactory.SwitchToMainThreadAsync() нужно применять оператор await. - - - - Await SwitchToMainThreadAsync - Применение await к SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Доступ к "{0}" должен осуществляться только в основном потоке. Сначала примените await к JoinableTaskFactory.SwitchToMainThreadAsync(). - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - Доступ к "{0}" должен осуществляться только в основном потоке. Сначала вызовите {1}(). - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Использование однопоточных типов в основном потоке - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value может попадать во взаимоблокировку. -Используйте вместо этого AsyncLazy<T>. - - - - Use AsyncLazy<T> - Использовать AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Вызов и блокировка асинхронного кода в фабрике значений Lazy<T> могут попадать во взаимоблокировку. -Используйте вместо этого AsyncLazy<T>. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Укажите экземпляр JoinableTaskFactory в этом вызове (или другой перегрузке), чтобы избежать взаимоблокировки с основным потоком. - - - - Provide JoinableTaskFactory where allowed - Указывайте JoinableTaskFactory, где это возможно - - - - Change return type to Task - Изменение типа возвращаемого значения на Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - Избегайте методов "async void", так как любые исключения, не обработанные этим методом, вызовут сбой процесса. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Избегание методов async void - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Не используйте лямбда-выражения async в типах делегатов, которые возвращают void, так как исключения, не обработанные делегатом, вызовут сбой процесса. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Избегание неподдерживаемых делегатов async - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Разрешите использовать вызовы методов синхронной блокировки, такие как JoinableTaskFactory.Run или Task.Result, только элементам общедоступных точек входа, где требуется синхронизация. Если их будут использовать внутренние элементы, между асинхронными фреймами могут быть добавлены лишние синхронные фреймы, что приведет к нехватке ресурсов в пуле потока. - - - - Implement internal logic asynchronously - Реализация внутренней логики асинхронно - - - - {0} synchronously blocks. Await {1} instead. - {0} синхронно блокирует. Вместо этого используйте Await {1}. - - - - {0} synchronously blocks. Use await instead. - {0} синхронно блокирует. Вместо этого используйте await. - - - - Call async methods when in an async method - Вызов асинхронных методов в методе async - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Предоставьте асинхронную версию этого метода, которая не использует синхронную блокировку. Затем упростите этот метод, вызывая асинхронную версию внутри делегата JoinableTaskFactory.Run. - - - - Offer async methods - Предоставляйте асинхронные методы - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - Избегайте перегрузок методов, предполагающих TaskScheduler.Current. Используйте перегрузку, которая допускает TaskScheduler, и явно укажите свойство TaskScheduler.Default (или любое другое). - - - - Avoid method overloads that assume TaskScheduler.Current - Избегание перегрузок методов, предполагающих TaskScheduler.Current - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - Делегаты AsyncEventHandler следует вызывать при помощи метода расширения "TplExtensions.InvokeAsync()", определенного в сборке Microsoft.VisualStudio.Threading. - - - - Use InvokeAsync to raise async events - Использование InvokeAsync для вызова асинхронных событий - - - - Await using expression - Выражение "using" в await - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - Отсутствует оператор await для выражения "using". - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - Задача await в выражении "using" - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - Проверки сходства потоков должны быть безусловными. - - - - Assert thread affinity unconditionally - Утверждайте сходства потоков безусловно - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Избегайте возникновения исключений в потоках, кроме основного, в асинхронном методе или методе, возвращающем Task. Вместо этого переключитесь на нужный поток. - - - - Switch instead of assert in async methods - Параметр вместо оператора assert в асинхронных методах - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Чтобы получить результат, поддерживающий await для этого вызова метода, примените к нему оператор await, назначьте его переменной или передайте в другой метод. - - - - Observe result of async calls - Просмотр результатов асинхронных вызовов - - - - Add .ConfigureAwait(false) - Добавьте .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - Добавьте .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - Добавьте .ConfigureAwait(bool) в свое выражение await. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - Используйте ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - Добавление реализации System.IAsyncDisposable. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Реализуйте интерфейс System.IAsyncDisposable при реализации устаревшего интерфейса Microsoft.VisualStudio.Threading.IAsyncDisposable. - - - - Implement System.IAsyncDisposable - Реализация System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Добавьте проверку для System.IAsyncDisposable в том же блоке кода, который проверяет аналогично работающий Microsoft.VisualStudio.Threading.IAsyncDisposable. - - - - Check for System.IAsyncDisposable - Проверка System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - Вместо этого используйте "Task.CompletedTask". - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Вместо этого используйте "Task.FromResult". - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Не возвращайте значение NULL из метода, возвращающего тип Task. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Не возвращайте тип Task со значением NULL - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Используйте суффикс "Async" в именах методов, которые возвращают тип, поддерживающий ожидание. - - - - Rename to {0} - Переименование в {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Старайтесь не использовать суффикс "Async" в именах методов, которые не возвращают тип, поддерживающий ожидание. - - - - Use "Async" suffix for async methods - Использование суффикса "Async" в асинхронных методах - - - - Call ThrowIfCancellationRequested() - Вызов ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - Проверить отмену после вызова SwitchToMainThreadAsync(CancellationToken). - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - Проверить отмену после вызова SwitchToMainThreadAsync - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.tr.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.tr.xlf deleted file mode 100644 index 54f23ecc..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.tr.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - Bunun yerine: Await {0} - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - System.IAsyncDisposable arabirimi Microsoft.Bcl.AsyncInterfaces NuGet paketinde tanımlanmıştır. - - - - Use await instead - Bunun yerine await kullanın - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Kilitlenebilen ya da öncelik belirtilmesini gerektiren API’ler yerine JoinableTaskFactory.SwitchToMainThreadAsync() öğesinin UI iş parçacığına geçmesini bekleyin. - - - - Avoid legacy thread switching APIs - İş parçacıkları arasında geçiş yapan eski API’lerden kaçının - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - Bunun yerine await kullanın - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - Görevlerde veya bekleyen öğelerde zaman uyumlu olarak beklemek kilitlenmelere neden olabilir. Bunun yerine bekleyen veya JoinableTaskFactory.Run kullanın. - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - Sorunlu zaman uyumlu beklemelerden kaçının - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - Çıkmazlara yol açabileceğinden, bağlamınızda başlatılmamış işi temsil eden bir Görevi beklemekten veya döndürmekten kaçının. -İşi bu bağlamda başlatın veya bunun yerine görevi başlatmak için JoinableTaskFactory.RunAsync kullanıp döndürülen JoinableTask öğesini bekleyin. - - - - Avoid awaiting foreign Tasks - Yabancı Görevleri beklemekten kaçının - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - JoinableTaskFactory.SwitchToMainThreadAsync() çağrıları beklenmelidir. - - - - Await SwitchToMainThreadAsync - SwitchToMainThreadAsync bekleyin - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - "{0}" erişimi yalnızca ana iş parçacığı üzerinde gerçekleştirilmelidir. Önce JoinableTaskFactory.SwitchToMainThreadAsync() metodunu bekleyin. - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - "{0}" erişimi yalnızca ana iş parçacığı üzerinde gerçekleştirilmelidir. Önce {1}() çağırın. - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - Ana iş parçacığındaki tek iş parçacıklı türleri çağırın - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Değer kilitlenebilir. -Bunun yerine AsyncLazy<T> kullanın. - - - - Use AsyncLazy<T> - AsyncLazy kullanın<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - Bir Lazy<T> değer fabrikasındaki asenkron kod üzerinde çağrı veya engelleme yapma çıkmaza neden olabilir. -Bunun yerine AsyncLazy<T> kullanın. - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - Ana iş parçacığında kilitlenmeleri önlemek için bu çağrıda (veya başka bir aşırı yüklemede) bir JoinableTaskFactory örneği sağlayın. - - - - Provide JoinableTaskFactory where allowed - İzin veriliyorsa JoinableTaskFactory sağlayın - - - - Change return type to Task - Döndürme türünü Task olarak değiştirin - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - "async void" metotları tarafından işlenmeyen tüm özel durumlar işlemi kilitleyeceğinden bunları kullanmayın. - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - Async void metotları kullanmayın - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - Temsilci tarafından işlenmeyen tüm özel durumlar işlemi kilitleyeceğinden, temsilci türü döndüren bir void için async lambda kullanmayın. - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - Desteklenmeyen async temsilcilerini kullanmayın - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - Zaman uyumlu olmanız gereken genel giriş noktası üyelerinde, JoinableTaskFactory.Run veya Task.Result gibi zaman uyumlu olarak engelleyen metot çağrılarının kullanımını sınırlayın. Bunu iç üyeler için kullanmak, zaman uyumsuz çerçevelerin arasına gereksiz yere zaman uyumlu çerçeveler ekleyerek iş parçacığı havuzunun tükenmesine sebep olabilir. - - - - Implement internal logic asynchronously - İç mantığı zaman uyumsuz olarak uygulayın - - - - {0} synchronously blocks. Await {1} instead. - {0} zaman uyumlu olarak engeller. Bunun yerine {1} bekleyin. - - - - {0} synchronously blocks. Use await instead. - {0} zaman uyumlu olarak engeller. Bunun yerine await kullanın. - - - - Call async methods when in an async method - Zaman uyumsuz metottayken zaman uyumsuz metotlar çağırın - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - Bu metodun zaman uyumlu olarak engellemeyen zaman uyumsuz bir sürümünü sunun. Sonra bir JoinableTaskFactory.Run temsilcisi içinde bu zaman uyumsuz metoda çağrı yapmak için bu metodu basitleştirin. - - - - Offer async methods - Zaman uyumsuz metotlar sunun - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - TaskScheduler.Current varsayan metot aşırı yüklemelerinden kaçının. TaskScheduler kabul eden bir aşırı yükleme kullanın ve TaskScheduler.Default (veya başka birini) açık olarak belirtin. - - - - Avoid method overloads that assume TaskScheduler.Current - TaskScheduler.Current varsayan metot aşırı yüklemelerinden kaçının - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - AsyncEventHandler temsilcileri, Microsoft.VisualStudio.Threading bütünleştirilmiş kodunda tanımlanan "TplExtensions.InvokeAsync()" genişletme metodu aracılığıyla çağrılmalıdır. - - - - Use InvokeAsync to raise async events - Async olayları tetiklemek için InvokeAsync kullanın - - - - Await using expression - Await using ifadesi - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - “using” ifadesi için await işleci eksik. - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - using ifadesi içinde await Task - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - İş parçacığı benzeşim denetimleri koşulsuz olmalıdır. - - - - Assert thread affinity unconditionally - İş parçacığı benzeşimini koşulsuz olarak onayla - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - Ana iş parçacığında değilken, zaman uyumsuz veya Task döndüren metot içinden özel durum oluşturmaktan kaçının. Bunun yerine, gereken iş parçacığına geçin. - - - - Switch instead of assert in async methods - Zaman uyumsuz metotlarda assert yerine switch - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - Bu metot çağrısının beklenebilir sonucunu bekleyerek, bir değişkene atayarak veya bir başka metoda geçirerek gözlemleyin. - - - - Observe result of async calls - Zaman uyumsuz çağrıların sonucunu gözlemleyin - - - - Add .ConfigureAwait(false) - .ConfigureAwait(false) ekleyin - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - .ConfigureAwait(true) ekleyin - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - await ifadenize .ConfigureAwait(bool) ekleyin. - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - ConfigureAwait(bool) kullanın - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - System.IAsyncDisposable uygulamasını ekleyin. - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - Eski Microsoft.VisualStudio.Threading.IAsyncDisposable arabirimini uygularken System.IAsyncDisposable arabirimini uygulayın. - - - - Implement System.IAsyncDisposable - System.IAsyncDisposable arabirimini uygula - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - Microsoft.VisualStudio.Threading.IAsyncDisposable için benzer şekilde davranıp davranmadığını denetleyen aynı kod bloğunda System.IAsyncDisposable için bir denetim ekleyin. - - - - Check for System.IAsyncDisposable - System.IAsyncDisposable olup olmadığını denetle - - - - Use 'Task.CompletedTask' instead - Bunun yerine 'Task.CompletedTask' kullanın - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - Bunun yerine 'Task.FromResult' kullanın - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - Bir Görev döndürme metodundan null döndürmekten kaçının. - Task is a type name and should not be translated. - - - Avoid returning a null Task - Null Görev döndürmekten kaçının - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - Beklenebilir bir tür döndüren metotların adlarında “Async” ekini kullanın. - - - - Rename to {0} - {0} olarak yeniden adlandırın - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - Beklenebilir bir tür döndürmeyen metotların adlarında “Async” ekini kullanmaktan kaçının. - - - - Use "Async" suffix for async methods - Async metotları için "Async" sonekini kullanın - - - - Call ThrowIfCancellationRequested() - ThrowIfCancellationRequested() Çağır - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - SwitchToMainThreadAsync(CancellationToken) metodu çağrıldıktan sonra iptal edilip edilmediğini denetleyin. - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - SwitchToMainThreadAsync metodundan sonra iptal edilip edilmediğini denetle - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hans.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hans.xlf deleted file mode 100644 index bbb64868..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hans.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - 改为 await {0} - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - System.IAsyncDisposable 接口在 Microsoft.Bcl.AsyncInterfaces NuGet 包中进行定义。 - - - - Use await instead - 改用 await - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - 等待 JoinableTaskFactory.SwitchToMainThreadAsync() 切换到 UI 线程,而非切换到可死锁或要求指定优先级的 API。 - - - - Avoid legacy thread switching APIs - 避免旧线程切换 API - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - 改用 await - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - 同步等待任务或 awaiter 可能导致死锁。请等待或改用 JoinableTaskFactory.Run。 - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - 避免有问题的同步等待 - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - 避免等待或返回表示在上下文内未启动的工作的任务,因为可能导致死锁。 -在此上下文内启动工作,或改为使用 JoinableTaskFactory.RunAsync 启动任务,并等待返回的 JoinableTask。 - - - - Avoid awaiting foreign Tasks - 避免等待外部任务 - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - 对 JoinableTaskFactory.SwitchToMainThreadAsync() 的调用必须等待。 - - - - Await SwitchToMainThreadAsync - 等待 SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - 只应在主线程中访问“{0}”。请先等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - 只应在主线程中访问“{0}”。请先调用 {1}()。 - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - 在主线程上调用单线程类型 - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>。值会死锁。 -请改为使用 AsyncLazy<T>。 - - - - Use AsyncLazy<T> - 使用 AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - 在 Lazy<T> 值工厂中调用或阻止异步代码会出现死锁。 -请改为使用 AsyncLazy<T>。 - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - 在此调用中提供 JoinableTaskFactory 的实例(或其他重载)以避免主线程死锁。 - - - - Provide JoinableTaskFactory where allowed - 在允许的地方提供 JoinableTaskFactory - - - - Change return type to Task - 将返回类型更改为 Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - 避免使用“Async Void”方法,因为此方法未处理的任何异常都将导致进程故障。 - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - 避免使用 Async Void 方法 - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - 避免对返回委托类型的 void 使用异步 lambda,因为此委托未处理的任何异常都将导致进程故障。 - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - 避免不支持的异步委托 - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - 当必须为同步时,仅限公共入口点成员使用同步阻止方法调用,如 JoinableTaskFactory.Run 或 Task.Result。将其用于内部成员会在异步框架间添加多余同步框架,进而导致线程池枯竭。 - - - - Implement internal logic asynchronously - 异步实现内部逻辑 - - - - {0} synchronously blocks. Await {1} instead. - {0} 同步阻止。改为 await {1}。 - - - - {0} synchronously blocks. Use await instead. - {0} 同步阻止。改用 await。 - - - - Call async methods when in an async method - 当在异步方法中时,调用异步方法 - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - 公开此方法的异步版(不同步阻止)。然后简化此方法以在 JoinableTaskFactory.Run 委托内调用该异步方法。 - - - - Offer async methods - 提供异步方法 - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - 避免假定 TaskScheduler.Current 的方法重载。使用接受 TaskScheduler 的重载并显式指定 TaskScheduler.Default(或其他方法)。 - - - - Avoid method overloads that assume TaskScheduler.Current - 避免假定 TaskScheduler.Current 的方法重载 - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - 应通过 Microsoft.VisualStudio.Threading 程序集中定义的扩展方法“TplExtensions.InvokeAsync()”调用 AsyncEventHandler 委托。 - - - - Use InvokeAsync to raise async events - 使用 InvokeAsync 引发异步事件 - - - - Await using expression - 等待 using 表达式 - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - "using" 表达式缺少 await 运算符。 - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - using 表达式中的 Await Task - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - 应无条件检查线程关联。 - - - - Assert thread affinity unconditionally - 无条件断言线程关联 - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - 在异步方法或返回任务的方法中,不在主线程上时,避免引发。请切换到要求的线程。 - - - - Switch instead of assert in async methods - 在异步方法中切换而不是断言 - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - 等待以观察此方法调用的可等待结果、将其分配给变量或传递给其他方法。 - - - - Observe result of async calls - 观察异步调用的结果 - - - - Add .ConfigureAwait(false) - 添加 .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - 添加 .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - 向 await 表达式添加 .ConfigureAwait(bool)。 - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - 使用 ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - 添加 System.IAsyncDisposable 的实现。 - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - 实现过时的 Microsoft.VisualStudio.Threading.IAsyncDisposable 接口时实现 System.IAsyncDisposable 接口。 - - - - Implement System.IAsyncDisposable - 实现 System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - 在相同的代码块中添加对 System.IAsyncDisposable 的检查,检查 Microsoft.VisualStudio.Threading.IAsyncDisposable 的行为是否类似。 - - - - Check for System.IAsyncDisposable - 检查 System.IAsyncDisposable - - - - Use 'Task.CompletedTask' instead - 改用 "Task.CompletedTask" - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - 改用 "Task.FromResult" - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - 避免返回 Task 的方法返回 null。 - Task is a type name and should not be translated. - - - Avoid returning a null Task - 避免返回 null Task - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - 如果方法返回可等待的类型,则在其名称中使用 “Async” 语法。 - - - - Rename to {0} - 重命名为 {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - 如果方法不返回可等待的类型,则不要在其名称中使用 “Async” 语法。 - - - - Use "Async" suffix for async methods - 对异步方法使用“Async”后缀 - - - - Call ThrowIfCancellationRequested() - 调用 ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - 请在调用 SwitchToMainThreadAsync(CancellationToken)后检查是否有取消操作。 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - 调用 SwitchToMainThreadAsync 后检查取消操作 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hant.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hant.xlf deleted file mode 100644 index c6ea8f45..00000000 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/xlf/Strings.zh-Hant.xlf +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - Await {0} instead - 改為 await {0} - "await" is a C# keyword and should not be translated. -{0} is a method name. - - - The System.IAsyncDisposable interface is defined in the Microsoft.Bcl.AsyncInterfaces NuGet package. - System.IAsyncDisposable 介面已定義於 Microsoft.Bcl.AsyncInterfaces NuGet 套件中。 - - - - Use await instead - 改用 await - "await" is a C# keyword and should not be translated. - - - Await JoinableTaskFactory.SwitchToMainThreadAsync() to switch to the UI thread instead of APIs that can deadlock or require specifying a priority. - Await JoinableTaskFactory.SwitchToMainThreadAsync() 可切換至 UI 執行緒,而不會切換至可能會造成死結,或必須指定優先順序的 API。 - - - - Avoid legacy thread switching APIs - 避免傳統執行緒切換 API - thread switching APIs refers to Visual Studio SDK or .NET methods that can be used to switch threads, but are obsolete and should be avoided. - - - Use await instead - 改用 await - "await" is a C# keyword and should not be translated. - - - Synchronously waiting on tasks or awaiters may cause deadlocks. Use await or JoinableTaskFactory.Run instead. - 同步等候 task 或 awaiter 可能會造成死結。請改用 await 或 JoinableTaskFactory.Run。 - "await" is a C# keyword and should not be translated. - - - Avoid problematic synchronous waits - 避免有問題的同步等候 - - - - Avoid awaiting or returning a Task representing work that was not started within your context as that can lead to deadlocks. -Start the work within this context, or use JoinableTaskFactory.RunAsync to start the task and await the returned JoinableTask instead. - 如有工作代表您未在內容中開始的任務,請避免等候或傳回該工作,因為這可能會造成死結。 -您可以在此內容中開始該任務,或使用 JoinableTaskFactory.RunAsync 開始工作,並改為等候已傳回的 JoinableTask。 - - - - Avoid awaiting foreign Tasks - 避免等待外部工作 - - - - Calls to JoinableTaskFactory.SwitchToMainThreadAsync() must be awaited. - 必須等候對 JoinableTaskFactory.SwitchToMainThreadAsync() 的呼叫。 - - - - Await SwitchToMainThreadAsync - 等候 SwitchToMainThreadAsync - Do not translate either of these. The first is a keyword, the second is a method name. - - - Accessing "{0}" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - "{0}" 的存取只應在主執行緒完成。請先等候 JoinableTaskFactory.SwitchToMainThreadAsync()。 - {0} is a type or member name. - - - Accessing "{0}" should only be done on the main thread. Call {1}() first. - "{0}" 的存取只應在主執行緒完成。請先呼叫 {1}()。 - {0} is a type or member name and {1} is the name of a method that throws if not called from the main thread. - - - Invoke single-threaded types on Main thread - 在主執行緒叫用單一執行緒類型 - - - - Lazy<Task<T>>.Value can deadlock. -Use AsyncLazy<T> instead. - Lazy<Task<T>>.Value 可能會出現死結。 -請改用 AsyncLazy<T>。 - - - - Use AsyncLazy<T> - 使用 AsyncLazy<T> - - - - Invoking or blocking on async code in a Lazy<T> value factory can deadlock. -Use AsyncLazy<T> instead. - 在非同步程式碼上叫用或封鎖 Lazy<T> 值,Factory 可能會出現死結。 -請改用 AsyncLazy<T>。 - - - - Provide an instance of JoinableTaskFactory in this call (or another overload) to avoid deadlocks with the main thread. - 在此呼叫 (或其他多載) 中提供 JoinableTaskFactory 執行個體,以避免主執行緒發生死結。 - - - - Provide JoinableTaskFactory where allowed - 在允許的情況下提供 JoinableTaskFactory - - - - Change return type to Task - 將傳回類型變更為 Task - Task is a type name and should not be translated. - - - Avoid "async void" methods, because any exceptions not handled by the method will crash the process. - 因為任何不是由 "async void" 方法處理的例外狀況都會使處理序損毀,所以請避免該方法。 - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid async void methods - 避免 async void 方法 - "async void" is a pair of C# keywords. Do not translate them. - - - Avoid using async lambda for a void returning delegate type, because any exceptions not handled by the delegate will crash the process. - 因為任何不是由 void 傳回委派類型處理的例外狀況都會使處理序損毀,所以請避免對該類型使用非同步 lambda。 - "void" is a C# keyword and should not be translated. - - - Avoid unsupported async delegates - 避免不支援的非同步委派 - - - - Limit use of synchronously blocking method calls such as JoinableTaskFactory.Run or Task.Result to public entrypoint members where you must be synchronous. Using it for internal members can needlessly add synchronous frames between asynchronous frames, leading to threadpool exhaustion. - 在必須同步時,請限制對公開輸入點成員使用 JoinableTaskFactory.Run 或 Task.Result 這類同步封鎖方法呼叫。對內部成員使用這種方法,可能會在非同步框架之間新增不必要的同步框架,而消耗執行緒集區。 - - - - Implement internal logic asynchronously - 以非同步方式實作內部邏輯 - - - - {0} synchronously blocks. Await {1} instead. - {0} 會同步封鎖。請改用 await {1}。 - - - - {0} synchronously blocks. Use await instead. - {0} 會同步封鎖。請改用 await。 - - - - Call async methods when in an async method - 在使用非同步方法時呼叫非同步方法 - - - - Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate. - 提供此方法不會同步封鎖的非同步版本,讓此方法在 JoinableTaskFactory.Run 委派中只呼叫該非同步方法。 - - - - Offer async methods - 提供非同步方法 - - - - Avoid method overloads that assume TaskScheduler.Current. Use an overload that accepts a TaskScheduler and specify TaskScheduler.Default (or any other) explicitly. - 請避免會假設 TaskScheduler.Current 的方法多載。請使用接受 TaskScheduler 的多載,並明確指定 TaskScheduler.Default (或其他任一項)。 - - - - Avoid method overloads that assume TaskScheduler.Current - 避免假設 TaskScheduler.Current 的方法多載 - - - - AsyncEventHandler delegates should be invoked via the extension method "TplExtensions.InvokeAsync()" defined in Microsoft.VisualStudio.Threading assembly. - AsyncEventHandler 委派應透過在 Microsoft.VisualStudio.Threading 組件中定義的延伸模組方法 "TplExtensions.InvokeAsync()" 叫用。 - - - - Use InvokeAsync to raise async events - 使用 InvokeAsync 引發非同步事件 - - - - Await using expression - Await using 運算式 - "await" and "using" are C# keywords and should not be translated. - - - Missing await operator for "using" expression. - "using" 運算式缺少 await 運算子。 - "await" and "using" are C# keywords and should not be translated. - - - Await Task within using expression - using 運算式中的 Await Task - "await Task" is a C# compound term, and "using" is a C# keyword. These should not be translated. - - - Thread affinity checks should be unconditional. - 執行緒親和性檢查應該無條件。 - - - - Assert thread affinity unconditionally - 無條件判斷提示執行緒親和性 - - - - Avoid throwing when not on the main thread while in an async or Task-returning method. Switch to the thread required instead. - 使用非同步或 Task-returning 方法時,若不在主執行緒,則請避免擲回。請改為切換到需要的執行緒。 - - - - Switch instead of assert in async methods - 使用非同步方法時請切換而非判斷提示 - - - - Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method. - 觀察此方法呼叫的可等候結果,方法是加以等候、指派至變數,或傳遞至另一個方法。 - - - - Observe result of async calls - 觀察非同步呼叫的結果 - - - - Add .ConfigureAwait(false) - 新增 .ConfigureAwait(false) - ".ConfigureAwait(false)" should not be translated. - - - Add .ConfigureAwait(true) - 新增 .ConfigureAwait(true) - ".ConfigureAwait(true)" should not be translated. - - - Add .ConfigureAwait(bool) to your await expression. - 將 .ConfigureAwait(bool) 新增至您的 await 運算式。 - ".ConfigureAwait(bool)" and "await" should NOT be translated. - - - Use ConfigureAwait(bool) - 使用 ConfigureAwait(bool) - "ConfigureAwait(bool)" is a reference and should NOT be translated. - - - Add implementation of System.IAsyncDisposable. - 新增 System.IAsyncDisposable 的實作。 - - - - Implement the System.IAsyncDisposable interface when implementing the obsolete Microsoft.VisualStudio.Threading.IAsyncDisposable interface. - 實作已淘汰的 Microsoft.VisualStudio.Threading.IAsyncDisposable 介面時,請實作 System.IAsyncDisposable 介面。 - - - - Implement System.IAsyncDisposable - 實作 System.IAsyncDisposable - - - - Add a check for System.IAsyncDisposable in the same code block that checks for Microsoft.VisualStudio.Threading.IAsyncDisposable that behaves similarly. - 在檢查具有類似行為之 Microsoft.VisualStudio.Threading.IAsyncDisposable 的相同程式碼區塊中,新增 System.IAsyncDisposable 的檢查。 - - - - Check for System.IAsyncDisposable - System.IAsyncDisposable 的檢查 - - - - Use 'Task.CompletedTask' instead - 請改為使用 'Task.CompletedTask' - "Task.CompletedTask" should not be translated. - - - Use 'Task.FromResult' instead - 請改為使用 'Task.FromResult' - "Task.FromResult" should not be translated. - - - Avoid returning null from a Task-returning method. - 避免從工作傳回方法傳回 null。 - Task is a type name and should not be translated. - - - Avoid returning a null Task - 避免傳回 null 工作 - Task is a type name and should not be translated. - - - Use "Async" suffix in names of methods that return an awaitable type. - 請在傳回可等候類型的方法名稱中使用 "Async" 後置詞。 - - - - Rename to {0} - 重新命名為 {0} - {0} is a method name. - - - Avoid "Async" suffix in names of methods that do not return an awaitable type. - 請避免在不傳回可等候類型的方法名稱中使用 "Async" 後置詞。 - - - - Use "Async" suffix for async methods - 對非同步方法使用 "Async" 尾碼 - - - - Call ThrowIfCancellationRequested() - 呼叫 ThrowIfCancellationRequested() - "ThrowIfCancellationRequested" is a method name and should not be translated. - - - Check for cancellation after calling SwitchToMainThreadAsync(CancellationToken). - 呼叫 SwitchToMainThreadAsync(CancellationToken) 之後,檢查是否取消。 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - Check cancellation after SwitchToMainThreadAsync - SwitchToMainThreadAsync 後檢查是否取消 - "SwitchToMainThreadAsync" is a method name and should not be translated. - - - - \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading/Microsoft.VisualStudio.Threading.csproj b/src/Microsoft.VisualStudio.Threading/Microsoft.VisualStudio.Threading.csproj index 6676ce46..7aeb708f 100644 --- a/src/Microsoft.VisualStudio.Threading/Microsoft.VisualStudio.Threading.csproj +++ b/src/Microsoft.VisualStudio.Threading/Microsoft.VisualStudio.Threading.csproj @@ -45,7 +45,6 @@ -