mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 01:43:37 +01:00
Update translate-file.ps1
This commit is contained in:
parent
01bf4879db
commit
7709dc0ae1
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user