grim/guifications2

Parents 6cb06303dd22
Children d502ad4fc2f1
Add french installer translation from Yannick LE NY. Update installer to support language selection. Fixes #331.
--- a/guifications-installer.nsi Thu Jul 26 01:04:24 2007 -0400
+++ b/guifications-installer.nsi Thu Jul 26 01:19:28 2007 -0400
@@ -7,6 +7,11 @@
;Include Modern UI
!include "MUI.nsh"
+!include "FileFunc.nsh"
+!insertmacro GetParameters
+!insertmacro GetOptions
+
+
;--------------------------------
;General
Name "Pidgin Guifications ${GUIFICATIONS_VERSION}"
@@ -25,11 +30,13 @@
ShowUnInstDetails show
SetCompressor /SOLID lzma
+;Reserve files used in .onInit for faster start-up
+!insertmacro MUI_RESERVEFILE_LANGDLL
+
!define GUIFICATIONS_UNINST_EXE "pidgin-guifications-uninst.exe"
!define GUIFICATIONS_DLL "guifications.dll"
!define GUIFICATIONS_UNINSTALL_LNK "Guifications Uninstall.lnk"
-
;--------------------------------
; Registry keys:
!define GUIFICATIONS_REG_KEY "SOFTWARE\pidgin-guifications"
@@ -47,8 +54,11 @@
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "nsis\header.bmp"
!define MUI_CUSTOMFUNCTION_GUIINIT gf_checkPidginVersion
- !define MUI_ABORTWARNING
+ !define MUI_ABORTWARNING
+ !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
+ !define MUI_LANGDLL_REGISTRY_KEY ${GUIFICATIONS_REG_KEY}
+ !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
;--------------------------------
; Pages
@@ -78,11 +88,13 @@
;--------------------------------
; Languages
!insertmacro MUI_LANGUAGE "English"
+ !insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Spanish"
;Translations
!include "nsis\translations\english.nsh"
+ !include "nsis\translations\french.nsh"
!include "nsis\translations\italian.nsh"
!include "nsis\translations\spanish.nsh"
@@ -227,8 +239,8 @@
File /oname=guifications.mo po\no.gmo
SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES"
File /oname=guifications.mo po\pt.gmo
- SetOutPath "$INSTDIR\locale\sk\LC_MESSAGES"
- file /oname=guifications.mo po\sk.gmo
+ SetOutPath "$INSTDIR\locale\sk\LC_MESSAGES"
+ File /oname=guifications.mo po\sk.gmo
SetOutPath "$INSTDIR\locale\sv\LC_MESSAGES"
File /oname=guifications.mo po\sv.gmo
SetOutPath "$INSTDIR\locale\zh_CN\LC_MESSAGES"
@@ -319,6 +331,28 @@
done:
SectionEnd
+Function .onInit