Extract installer strings for translation

This commit is contained in:
Thomas Goyne 2014-05-15 09:43:09 -07:00
parent 0a1660c03b
commit d741c55725
7 changed files with 27 additions and 5 deletions

View File

@ -37,6 +37,7 @@
#endif
#include "fragment_setupbase.iss"
#include "fragment_strings.iss"
[Setup]
AppID={{24BC8B57-716C-444F-B46B-A3349B9164C5}

View File

@ -43,5 +43,5 @@
DestDir: {tmp}; Source: src\vcredist_{#SUFFIX}.exe; Flags: nocompression deleteafterinstall
[Run]
Filename: {tmp}\vcredist_{#SUFFIX}.exe; StatusMsg: Installing runtime libraries...; Parameters: "/q"
Filename: {tmp}\vcredist_{#SUFFIX}.exe; StatusMsg: {cm:InstallRuntime}; Parameters: "/q"

View File

@ -93,10 +93,6 @@ Name: "sr_RS_latin"; MessagesFile: "compiler:Languages\SerbianLatin.isl"
Name: "zh_CN"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
Name: "zh_TW"; MessagesFile: "compiler:Languages\ChineseTraditional.isl"
[Messages]
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
WelcomeLabel2=This will install Aegisub {#BUILD_GIT_VERSION_STRING} on your computer.%n%nAegisub is covered by the GNU General Public License version 2. This means you may use the application for any purpose without charge, but that no warranties of any kind are given either.%n%nSee the Aegisub website for information on obtaining the source code.
[Files]
; small bitmaps (used by beautify code)
DestDir: {tmp}; Flags: dontcopy; Source: welcome.bmp

View File

@ -0,0 +1,6 @@
[CustomMessages]
InstallRuntime=Installing runtime libraries...
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
[Messages]
WelcomeLabel2=This will install Aegisub {#BUILD_GIT_VERSION_STRING} on your computer.%n%nAegisub is covered by the GNU General Public License version 2. This means you may use the application for any purpose without charge, but that no warranties of any kind are given either.%n%nSee the Aegisub website for information on obtaining the source code.

View File

@ -0,0 +1,6 @@
[CustomMessages]
_InstallRuntime=Installing runtime libraries...
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
[Messages]
_WelcomeLabel2=This will install Aegisub {#BUILD_GIT_VERSION_STRING} on your computer.%n%nAegisub is covered by the GNU General Public License version 2. This means you may use the application for any purpose without charge, but that no warranties of any kind are given either.%n%nSee the Aegisub website for information on obtaining the source code.

View File

@ -0,0 +1,6 @@
#!/bin/sh
intltool-merge --quiet --keys-style ../../po fragment_strings.iss.in fragment_strings.iss
# None of the intltool formats quite match InnoSetup's, so munge one that's close
sed -i '' 's/^\[\(.*\)\]\(.\)/\1.\2/' fragment_strings.iss

View File

@ -45,3 +45,10 @@ do
| sed 's/\([0-9]\+\):[^=]\+=\(.*\)$/aegisub.desktop|\1|"\2"/' \
| maybe_append
done
grep '^[A-Za-z0-9]*=.*' ../packages/win_installer/fragment_strings.iss | while read line
do
echo "$line" \
| sed 's/[^=]*=\(.*\)/packages\/win_installer\/fragment_strings.iss|1|"\1"/' \
| maybe_append
done