mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 18:15:27 -04:00
15 lines
955 B
Batchfile
15 lines
955 B
Batchfile
@echo off
|
|
echo Listing all GDCore, GDCpp, GDJS and Extensions sources files to translate...
|
|
|
|
dir ..\GDJS\GDJS\*.cpp /L /B /S |find /v /i "\Dialogs\" > %TEMP%\listfile.txt
|
|
dir ..\GDJS\GDJS\*.h /L /B /S |find /v /i "\Dialogs\" >> %TEMP%\listfile.txt
|
|
dir ..\Extensions\*.cpp /L /B /S |find /v /i "\Dialogs\" |find /v /i "\AdvancedXML\" >> %TEMP%\listfile.txt
|
|
dir ..\Extensions\*.h /L /B /S |find /v /i "\Dialogs\" |find /v /i "\AdvancedXML\" >> %TEMP%\listfile.txt
|
|
dir ..\Core\GDCore\*.cpp /L /B /S |find /v /i "\Dialogs\" >> %TEMP%\listfile.txt
|
|
dir ..\Core\GDCore\*.h /L /B /S |find /v /i "\Dialogs\" >> %TEMP%\listfile.txt
|
|
|
|
echo Generating .POT file...
|
|
xgettext --from-code utf-8 -o gdcore-gdcpp-gdjs-extensions-messages.pot --c++ --keyword=GD_T --no-wrap -f %TEMP%\listfile.txt -k_
|
|
|
|
echo Translation file 'gdcore-gdcpp-gdjs-extensions-messages.pot' generated and ready to be sent to Crowdin or used in a translation software like PoEdit.
|