Modified translation script. Now uses xGettext

This commit is contained in:
Manuel Cortez 2016-06-29 10:00:13 -05:00
parent d00e8cf64f
commit f5608576c9

View File

@ -1,3 +1,7 @@
@echo off @echo off
echo Generating application translation strings... echo Generating file list..
C:\python27x86\python.exe pygettext.py -v -d socializer ../src/*.pyw ../src/*.py ../src/*/*.py ../src/*/*.pyw ../src/*/*/*.py ../src/*/*/*.pyw ../src/*/*/*/*.py ../src/*/*/*/*.pyw ../src/*/*/*/*/*.py ../src/*/*/*/*/*.pyw dir ..\src\*.py /L /B /S > %TEMP%\listfile.txt
echo Generating .POT file...
xgettext --language=Python -o socializer.pot --keyword=_ -d socializer -f %TEMP%\listfile.txt -c --no-location --no-wrap
del %TEMP%\listfile.txt
echo Done.