Update translate-file.ps1

This commit is contained in:
Markus Fleschutz 2021-02-12 12:24:41 +01:00 committed by GitHub
parent 4118bd7142
commit 75924194bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,11 @@
.NOTES Author: Markus Fleschutz / License: CC0 .NOTES Author: Markus Fleschutz / License: CC0
#> #>
param([string]$SourceFile = "", [string]$SourceLanguage = "", [string]$TargetLanguage = "") param($SourceFile = "", $SourceLanguage = "", $TargetLanguage = "")
$PathToRepo = "$PSScriptRoot/.."
try { try {
$PathToRepo = "$PSScriptRoot/.."
if ($SourceFile -eq "" ) { if ($SourceFile -eq "" ) {
$SourceFile = read-host "Enter path to file" $SourceFile = read-host "Enter path to file"
} }