2020-09-08 16:34:34 -04:00
|
|
|
[cmdletbinding()]
|
2022-08-01 17:40:55 -04:00
|
|
|
param ([string]$qtver);
|
2020-09-08 16:34:34 -04:00
|
|
|
|
2022-10-17 22:05:45 -04:00
|
|
|
$clientDir = Get-Location
|
2020-09-08 16:34:34 -04:00
|
|
|
$qtver = If ($qtver) { $qtver } Else { "5.15.0" }
|
2022-08-01 17:40:55 -04:00
|
|
|
$QtDir = "C:\Qt\$qtver\msvc2019_64"
|
|
|
|
if (-not(Test-Path -Path $QtDir)) {
|
|
|
|
$QtDir = "C:\Qt\$qtver\msvc2017_64"
|
|
|
|
}
|
2020-09-08 16:34:34 -04:00
|
|
|
$lupdate = "$QtDir\bin\lupdate.exe"
|
|
|
|
|
2022-08-01 17:40:55 -04:00
|
|
|
$tsFileNames = Get-ChildItem -Path "$clientDir\translations" -Recurse -Include *.ts
|
2020-09-09 13:45:53 -04:00
|
|
|
Invoke-Expression("$lupdate $clientDir\src -ts $tsFileNames -no-obsolete")
|