From d725bfcfce7d49fdad6e6397e55f7ed152564e70 Mon Sep 17 00:00:00 2001 From: Tanaka Zakku <71482215+YamatoSecurity@users.noreply.github.com> Date: Fri, 15 Oct 2021 17:57:59 +0900 Subject: [PATCH] =?UTF-8?q?-English=20switch=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Language/en.ps1 | 3 +++ Config/Language/ja.ps1 | 3 +++ WELA.ps1 | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Config/Language/en.ps1 b/Config/Language/en.ps1 index 67389914..3128ce14 100644 --- a/Config/Language/en.ps1 +++ b/Config/Language/en.ps1 @@ -418,6 +418,9 @@ function Show-Help { Write-Host " -UTC" -NoNewline -ForegroundColor Green Write-Host " : Output in UTC time (default is the local timezone)" + Write-Host " -English" -NoNewline -ForegroundColor Green + Write-Host " : Output in English" + Write-Host " -Japanese" -NoNewline -ForegroundColor Green Write-Host " : Output in Japanese" diff --git a/Config/Language/ja.ps1 b/Config/Language/ja.ps1 index 63f72770..db147cc7 100644 --- a/Config/Language/ja.ps1 +++ b/Config/Language/ja.ps1 @@ -416,6 +416,9 @@ function Show-Help { Write-Host " -UTC" -NoNewline -ForegroundColor Green Write-Host " : 時間をUTC形式で出力する。(デフォルトはローカルタイムゾーン)" + Write-Host " -English" -NoNewline -ForegroundColor Green + Write-Host " : 英語で出力する" + Write-Host " -Japanese" -NoNewline -ForegroundColor Green Write-Host " : 日本語で出力する" diff --git a/WELA.ps1 b/WELA.ps1 index b4b8db9b..0ebc6685 100755 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -82,6 +82,7 @@ param ( [switch]$Japanese, + [switch]$English, [switch]$USDateFormat, [switch]$EuropeDateFormat, [string]$SaveOutput = "", @@ -227,7 +228,10 @@ $TotalLogs = 0 $HostLanguage = Get-WinSystemLocale | Select-Object Name # en-US, ja-JP, etc.. -if ( $HostLanguage.Name -eq "ja-JP" -or $Japanese -eq $true ) { +if ( $HostLanguage.Name -eq "ja-JP" -and $English -eq $true ){ + Import-Module './Config/Language/en.ps1' -Force; +} +elseif ( $HostLanguage.Name -eq "ja-JP" -or $Japanese -eq $true ) { Import-Module './Config/Language/ja.ps1' -Force; } else {