mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
9
.tx/config
Normal file
9
.tx/config
Normal 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
|
||||
@@ -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
|
||||
|
||||
3821
extra/internationalization/default.po
Normal file
3821
extra/internationalization/default.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
extra/internationalization/msgfmt.exe
Normal file
BIN
extra/internationalization/msgfmt.exe
Normal file
Binary file not shown.
BIN
extra/internationalization/tx.exe
Normal file
BIN
extra/internationalization/tx.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user