summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-02-20 17:21:26 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-02-20 17:25:37 (GMT)
commitf7b43132e3602b4f15000191ea5f8e4aefbb8245 (patch)
tree677725d7c216df65553a30718e9a24349696db57 /Swift/Packaging
parenta8374bb64e4deb79e061fcce51b5dd0426b5b517 (diff)
downloadswift-contrib-f7b43132e3602b4f15000191ea5f8e4aefbb8245.zip
swift-contrib-f7b43132e3602b4f15000191ea5f8e4aefbb8245.tar.bz2
Adding translation to Windows installer
Diffstat (limited to 'Swift/Packaging')
-rw-r--r--Swift/Packaging/nsis/swift.nsi5
-rw-r--r--Swift/Packaging/nsis/translations-install.nsh1
-rw-r--r--Swift/Packaging/nsis/translations-uninstall.nsh1
3 files changed, 7 insertions, 0 deletions
diff --git a/Swift/Packaging/nsis/swift.nsi b/Swift/Packaging/nsis/swift.nsi
index f8e592d..a5cc71a 100644
--- a/Swift/Packaging/nsis/swift.nsi
+++ b/Swift/Packaging/nsis/swift.nsi
@@ -82,6 +82,9 @@ File "..\..\QtUI\Swift\sounds\message-received.wav"
SetOutPath $INSTDIR\images
File "..\..\QtUI\Swift\images\logo-icon-32.png"
+SetOutPath $INSTDIR\translations
+!include translations-install.nsh
+
# create start menu item
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
@@ -152,7 +155,9 @@ section "Uninstall"
delete $INSTDIR\imageformats\qtiff4.dll
delete $INSTDIR\sounds\message-received.wav
delete $INSTDIR\images\logo-icon-32.png"
+ !include translations-uninstall.nsh
+ RmDir $INSTDIR\translations
RmDir $INSTDIR\Prerequisites
RmDir $INSTDIR\imageformats
RmDir $INSTDIR\images
diff --git a/Swift/Packaging/nsis/translations-install.nsh b/Swift/Packaging/nsis/translations-install.nsh
new file mode 100644
index 0000000..7e6a085
--- /dev/null
+++ b/Swift/Packaging/nsis/translations-install.nsh
@@ -0,0 +1 @@
+File "..\..\QtUI\Swift\translations\swift_nl.qm"
diff --git a/Swift/Packaging/nsis/translations-uninstall.nsh b/Swift/Packaging/nsis/translations-uninstall.nsh
new file mode 100644
index 0000000..bfb0388
--- /dev/null
+++ b/Swift/Packaging/nsis/translations-uninstall.nsh
@@ -0,0 +1 @@
+delete $INSTDIR\translations\swift_nl.qm