mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-05 06:48:25 +02:00
Update translate-file.ps1
This commit is contained in:
parent
01bf4879db
commit
7709dc0ae1
@ -18,7 +18,8 @@ if ($TargetLanguage -eq "" ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
Write-Error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
Write-Error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user