mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Nsis Installers : add French and English translation for MessageBox, Translators you could translate
LangString.txt files now. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4122 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
14
packaging/windows/LangString.txt
Normal file
14
packaging/windows/LangString.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
LangString wrongArch ${LANG_ENGLISH} "This distribution is for 64 bits computers only."
|
||||||
|
LangString wrongArch ${LANG_FRENCH} "Ce programme est pour Windows 64 bits seulement."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
LangString installed ${LANG_ENGLISH} "${SOFT_NAME} is already installed. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade."
|
||||||
|
LangString installed ${LANG_FRENCH} "${SOFT_NAME} est deja installé. $\n$\nCliquer sur `OK` pour desinstaller l'ancienne version `Annuler` pour annuler cet upgrade."
|
||||||
@@ -6,7 +6,6 @@
|
|||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Include Modern UI
|
;Include Modern UI
|
||||||
|
|
||||||
;!include "UMUI.nsh"
|
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
!insertmacro Locate
|
!insertmacro Locate
|
||||||
@@ -143,6 +142,9 @@
|
|||||||
!insertmacro MUI_LANGUAGE "Estonian"
|
!insertmacro MUI_LANGUAGE "Estonian"
|
||||||
|
|
||||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
|
|
||||||
|
LangString installed ${LANG_ENGLISH} "${SOFT_NAME} is already installed. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade."
|
||||||
|
LangString installed ${LANG_FRENCH} "${SOFT_NAME} est deja installé. $\n$\nCliquer sur `OK` pour desinstaller l'ancienne version `Annuler` pour annuler cet upgrade."
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
|
|
||||||
@@ -281,12 +283,12 @@ Function .onInit
|
|||||||
"UninstallString"
|
"UninstallString"
|
||||||
StrCmp $R0 "" done
|
StrCmp $R0 "" done
|
||||||
|
|
||||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
||||||
"${SOFT_NAME} is already installed. $\n$\nClick `OK` to remove the \
|
"$(installed)" \
|
||||||
previous version or `Cancel` to cancel this upgrade." \
|
|
||||||
IDOK uninst
|
IDOK uninst
|
||||||
Abort
|
Abort
|
||||||
|
|
||||||
|
|
||||||
;Run the uninstaller
|
;Run the uninstaller
|
||||||
uninst:
|
uninst:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
|
|||||||
@@ -9,11 +9,17 @@
|
|||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
!insertmacro Locate
|
!insertmacro Locate
|
||||||
|
!include FileFunc.nsh
|
||||||
|
!insertmacro GetParameters
|
||||||
|
!insertmacro GetOptions
|
||||||
|
|
||||||
|
|
||||||
!ifndef PROC
|
!ifndef PROC
|
||||||
!define PROC 32 ;
|
!define PROC 32 ;
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; MUI Settings
|
; MUI Settings
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;General
|
;General
|
||||||
@@ -139,8 +145,14 @@
|
|||||||
!insertmacro MUI_LANGUAGE "Bosnian"
|
!insertmacro MUI_LANGUAGE "Bosnian"
|
||||||
!insertmacro MUI_LANGUAGE "Mongolian"
|
!insertmacro MUI_LANGUAGE "Mongolian"
|
||||||
!insertmacro MUI_LANGUAGE "Estonian"
|
!insertmacro MUI_LANGUAGE "Estonian"
|
||||||
|
|
||||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
|
|
||||||
|
LangString wrongArch ${LANG_ENGLISH} "This distribution is for 64 bits computers only."
|
||||||
|
LangString wrongArch ${LANG_FRENCH} "Ce programme est pour Windows 64 bits seulement."
|
||||||
|
|
||||||
|
LangString installed ${LANG_ENGLISH} "${SOFT_NAME} is already installed. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade."
|
||||||
|
LangString installed ${LANG_FRENCH} "${SOFT_NAME} est deja installé. $\n$\nCliquer sur `OK` pour desinstaller l'ancienne version `Annuler` pour annuler cet upgrade."
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Components
|
;Components
|
||||||
|
|
||||||
@@ -166,7 +178,6 @@ File /r "./files/ico"
|
|||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
File /r "./files/conf"
|
File /r "./files/conf"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
@@ -279,14 +290,14 @@ FunctionEnd
|
|||||||
;Installer Functions
|
;Installer Functions
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
|
|
||||||
${If} ${RunningX64}
|
${If} ${RunningX64}
|
||||||
${Else}
|
${Else}
|
||||||
MessageBox MB_OK|MB_ICONSTOP \
|
|
||||||
"This version is only for Windows 64 bits computers."
|
MessageBox MB_OK|MB_ICONSTOP $(wrongArch)
|
||||||
Abort
|
Abort $(wrongArch)
|
||||||
${EndIf}
|
${EndIf}
|
||||||
!insertmacro MUI_LANGDLL_DISPLAY
|
|
||||||
|
|
||||||
;Auto-uninstall old before installing new
|
;Auto-uninstall old before installing new
|
||||||
ReadRegStr $R0 HKLM \
|
ReadRegStr $R0 HKLM \
|
||||||
@@ -294,9 +305,8 @@ ${EndIf}
|
|||||||
"UninstallString"
|
"UninstallString"
|
||||||
StrCmp $R0 "" done
|
StrCmp $R0 "" done
|
||||||
|
|
||||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
||||||
"${SOFT_NAME} is already installed. $\n$\nClick `OK` to remove the \
|
"$(installed)" \
|
||||||
previous version or `Cancel` to cancel this upgrade." \
|
|
||||||
IDOK uninst
|
IDOK uninst
|
||||||
Abort
|
Abort
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user