Extend auto build process to

* pull language (.po) files from Transifex server
* execute msgfmt.exe per language
* assemble .mo files into compiled heidisql.exe
This commit is contained in:
Ansgar Becker
2012-11-12 17:01:51 +00:00
parent 14e197dc31
commit 65ebc3dccb
6 changed files with 3836 additions and 1 deletions

9
.tx/config Normal file
View File

@@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com
[heidisql.ui]
file_filter = out/locale/<lang>/LC_MESSAGES/default.po
source_file = out/locale/en/LC_MESSAGES/default.po
source_lang = en
type = PO
minimum_perc = 10

View File

@@ -150,10 +150,15 @@ brcc32 ..\..\res\updater.rc
"%compiler%" %params% -e"%base_dir%\out" heidisql.dpr
if not %errorlevel% == 0 goto end
rem Get translation files from Transifex server
cd /d "%base_dir%"
extra\internationalization\tx.exe pull -a
rem Compile .po translation files
for /f %%p IN ('dir /S /B out\locale\*.po') do extra\internationalization\msgfmt.exe -o %%~dpp\%%~np.mo %%p
rem Patch executable with .mo files
rem Must be done before madExcept writes a new crc header, otherwise it will complain about a corrupt .exe
rem See http://tech.dir.groups.yahoo.com/group/dxgettext/message/3623
..\..\extra\dxgettext_assemble.exe "%base_dir%\out\heidisql.exe" --dxgettext
extra\internationalization\assemble.exe out\heidisql.exe --dxgettext
rem Patch executable with exception handler
"%mad_dir%\madExcept\Tools\madExceptPatch.exe" "%base_dir%\out\heidisql.exe" heidisql.mes

View File

File diff suppressed because it is too large Load Diff

View File

Binary file not shown.

View File

Binary file not shown.