From f7b43132e3602b4f15000191ea5f8e4aefbb8245 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sun, 20 Feb 2011 17:21:26 +0000
Subject: Adding translation to Windows installer


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
-- 
cgit v0.10.2-6-g49f6