From f5608576c9d6646e5144236cf5b0064974c237d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 29 Jun 2016 10:00:13 -0500 Subject: [PATCH] Modified translation script. Now uses xGettext --- scripts/genpot.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/genpot.bat b/scripts/genpot.bat index 1e7e8d5..ff8f241 100644 --- a/scripts/genpot.bat +++ b/scripts/genpot.bat @@ -1,3 +1,7 @@ @echo off -echo Generating application translation strings... -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 +echo Generating file list.. +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.