Skip to content

Commit 16738da

Browse files
committed
Fix translationStringsUpdate to work with the number of files we now have
1 parent bbd2ba5 commit 16738da

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

translationStringsUpdate.bat

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
@ECHO off
22
SETLOCAL enabledelayedexpansion
33

4-
SET py_files = ""
4+
TYPE NUL >pyfiles.txt
5+
56
FOR /r %%f IN (*.py) DO (
6-
SET py_files=!py_files! "!%%f!"
7+
ECHO | SET /p=%%f>>pyfiles.txt
8+
ECHO | SET /p= >>pyfiles.txt
79
)
810

911
FOR %%f IN (./languages/src/*.ts) DO (
1012
ECHO Updating %%f...
11-
pylupdate5 %py_files% -ts ./languages/src/%%f
13+
pylupdate5 <pyfiles.txt -ts ./languages/src/%%f
1214
)
15+
16+
DEL pyfiles.txt

0 commit comments

Comments
 (0)