Files
jami-client-qt/extras/scripts/update-translations.ps1
Andreas Traczyk 6e147ddda3 i18n: use path in powershell lupdate script
Change-Id: Ieeb709c88f4a3d229856664bbddb16e5ab808c42
2025-11-03 13:45:47 -05:00

17 lines
574 B
PowerShell

[cmdletbinding()]
param ([string]$QtDir);
$clientDir = Get-Location
if (-not $QtDir) {
Write-Error "Qt directory path is required. Usage: .\update-translations.ps1 -QtDir 'C:\Qt\6.x.x\msvc2019_64'"
exit 1
}
$lupdate = Join-Path -Path $QtDir -ChildPath "bin\lupdate.exe"
if (-not(Test-Path -Path $lupdate)) {
Write-Error "lupdate not found: $lupdate"
exit 1
}
$tsFileNames = Get-ChildItem -Path "$clientDir\translations" -Recurse -Include *.ts
Invoke-Expression("$lupdate -extensions cpp,h,qml $clientDir\src -ts $tsFileNames -no-obsolete")