Update translate-file.ps1

This commit is contained in:
Markus Fleschutz 2020-12-12 16:57:18 +01:00
parent 01bf4879db
commit 7709dc0ae1

View File

@ -18,7 +18,8 @@ if ($TargetLanguage -eq "" ) {
}
try {
./trans -i $SourceFile -s $SourceLanguage -t $TargetLanguage -e google -brief
$ScriptPath=$MyInvocation.MyCommand.Path
$ScriptPath/trans -i $SourceFile -s $SourceLanguage -t $TargetLanguage -e google -brief
exit 0
} catch {
Write-Error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"