mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-03 07:05:26 +02:00

+ Only look for translations in valid files. Change-Id: I350478d050118c8b5d6bd127aaeed6c3965fe05f GitLab: #1266
13 lines
464 B
PowerShell
13 lines
464 B
PowerShell
[cmdletbinding()]
|
|
param ([string]$qtver);
|
|
|
|
$clientDir = Get-Location
|
|
$qtver = If ($qtver) { $qtver } Else { "5.15.0" }
|
|
$QtDir = "C:\Qt\$qtver\msvc2019_64"
|
|
if (-not(Test-Path -Path $QtDir)) {
|
|
$QtDir = "C:\Qt\$qtver\msvc2017_64"
|
|
}
|
|
$lupdate = "$QtDir\bin\lupdate.exe"
|
|
|
|
$tsFileNames = Get-ChildItem -Path "$clientDir\translations" -Recurse -Include *.ts
|
|
Invoke-Expression("$lupdate -extensions cpp,h,qml $clientDir\src -ts $tsFileNames -no-obsolete")
|