1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-04-21 21:52:03 +02:00
jami-client-qt/update-translations.ps1
Ming Rui Zhang 0445e091b0 i18n: change the harvest path and add an extra option in ts update script
Change-Id: Ic1b7518862aa8eced46eaa7e0f2b70ab11bab799
2020-09-09 14:10:12 -04:00

14 lines
439 B
PowerShell

[cmdletbinding()]
param (
[string]$qtver
);
$clientDir = split-path -parent $MyInvocation.MyCommand.Definition
$qtver = If ($qtver) { $qtver } Else { "5.15.0" }
$qtMsvcDir = "msvc2019_64"
$QtDir = "C:\Qt\$qtver\$qtMsvcDir"
$tsFileNames = Get-ChildItem -Path "$clientDir\translations" -Recurse -Include *.ts
$lupdate = "$QtDir\bin\lupdate.exe"
Invoke-Expression("$lupdate $clientDir\src -ts $tsFileNames -no-obsolete")