1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-06-05 08:46:03 +02:00
jami-client-qt/extras/scripts/update-translations.ps1
Amin Bandali bb7b5b62c2 i18n: fix repo root path in update-translations.ps1
GitLab: #852
Change-Id: I1ff3099abdb539efb4761b5e0108779a71f701ec
2022-10-17 22:21:46 -04:00

13 lines
442 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 $clientDir\src -ts $tsFileNames -no-obsolete")