Add Italian. Recognise Swedish. Output summary in Uwe's style.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10071 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-06-16 10:51:57 +00:00
parent 4427a06a82
commit 65f9aa8a0b
4 changed files with 131 additions and 20 deletions

View File

@ -6,4 +6,4 @@ Type=Label
Left=5
Right=-1
Top=0
Bottom=60
Bottom=140

View File

@ -7,6 +7,7 @@
; http://www.lyx.org/about/license.php3
; Author Angus Leeming
; Author Uwe Stöhr
; Full author contact details are available in file CREDITS or copy at
; http://www.lyx.org/about/credits.php
@ -58,7 +59,19 @@ InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
!include "download.nsh"
!include "lyx_utils.nsh"
; Grabbed from
; http://nsis.sourceforge.net/archive/viewpage.php?pageid=275
!include "is_user_admin.nsh"
; Grabbed from
; http://abiword.pchasm.org/source/cvs/abiword-cvs/abi/src/pkg/win/setup/NSISv2/abi_util_fileassoc.nsh
; Use the Abiword macros to help set up associations with the file extension.
; in the Registry.
!include "abi_util_fileassoc.nsh"
;--------------------------------
; Declare used functions
${StrLoc}
${StrNSISToIO}
${StrRep}
@ -72,16 +85,6 @@ ${SearchRegistry}
${DownloadEnter}
${DownloadLeave}
; Grabbed from
; http://nsis.sourceforge.net/archive/viewpage.php?pageid=275
!include "is_user_admin.nsh"
; Grabbed from
; http://abiword.pchasm.org/source/cvs/abiword-cvs/abi/src/pkg/win/setup/NSISv2/abi_util_fileassoc.nsh
; Use the Abiword macros to help set up associations with the file extension.
; in the Registry.
!include "abi_util_fileassoc.nsh"
;--------------------------------
; Variables
@ -178,6 +181,7 @@ Page custom SelectMenuLanguage SelectMenuLanguage_LeaveFunction
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Dutch"
!insertmacro MUI_LANGUAGE "Swedish"
@ -186,6 +190,7 @@ Page custom SelectMenuLanguage SelectMenuLanguage_LeaveFunction
!include "lyx_languages\dutch.nsh"
!include "lyx_languages\french.nsh"
!include "lyx_languages\german.nsh"
!include "lyx_languages\italian.nsh"
!include "lyx_languages\spanish.nsh"
!include "lyx_languages\swedish.nsh"
@ -204,7 +209,6 @@ ReserveFile "io_summary.ini"
ReserveFile "io_ui_language.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
;--------------------------------
Section "!${PRODUCT_NAME}" SecCore
@ -623,25 +627,25 @@ Function SummariseDownloads
StrCpy $PathPrefix ""
${if} $MinSYSPath != ""
StrCpy $PathPrefix "$PathPrefix;$MinSYSPath"
StrCpy $PathPrefix "$\r$\n$MinSYSPath"
${endif}
${if} $PythonPath != ""
StrCpy $PathPrefix "$PathPrefix;$PythonPath"
StrCpy $PathPrefix "$PathPrefix$\r$\n$PythonPath"
${endif}
${if} $MiKTeXPath != ""
StrCpy $PathPrefix "$PathPrefix;$MiKTeXPath"
StrCpy $PathPrefix "$PathPrefix$\r$\n$MiKTeXPath"
${endif}
${if} $PerlPath != ""
StrCpy $PathPrefix "$PathPrefix;$PerlPath"
StrCpy $PathPrefix "$PathPrefix$\r$\n$PerlPath"
${endif}
${if} $GhostscriptPath != ""
StrCpy $PathPrefix "$PathPrefix;$GhostscriptPath"
StrCpy $PathPrefix "$PathPrefix$\r$\n$GhostscriptPath"
${endif}
${if} $ImageMagickPath != ""
StrCpy $PathPrefix "$PathPrefix;$ImageMagickPath"
StrCpy $PathPrefix "$PathPrefix$\r$\n$ImageMagickPath"
${endif}
; Remove the leading ';'
StrCpy $PathPrefix "$PathPrefix" "" 1
; Remove the leading '\r\n'
${StrLTrim} $PathPrefix "$PathPrefix"
IntOp $DoNotInstallLyX $DownloadMinSYS + $DownloadPython
IntOp $DoNotInstallLyX $DoNotInstallLyX + $DownloadMiKTeX

View File

@ -0,0 +1,81 @@
!ifndef _LYX_LANGUAGES_ITALIAN_NSH_
!define _LYX_LANGUAGES_ITALIAN_NSH_
!ifdef LYX_LANG
!undef LYX_LANG
!endif
!define LYX_LANG ${LANG_ITALIAN}
LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}"
LangString SecAllUsersTitle "${LYX_LANG}" "Installazione per tutti gli utenti?"
LangString SecFileAssocTitle "${LYX_LANG}" "Associazioni dei file"
LangString SecDesktopTitle "${LYX_LANG}" "Icona sul Desktop"
LangString SecCoreDescription "${LYX_LANG}" "I file di ${PRODUCT_NAME}."
LangString SecAllUsersDescription "${LYX_LANG}" "Installazione per tutti gli utenti o solo per l'utente attuale. (Sono richiesti privilegi da amministratore.)"
LangString SecFileAssocDescription "${LYX_LANG}" "Crea le associazioni tra il programma e le estensioni .lyx."
LangString SecDesktopDescription "${LYX_LANG}" "Icona ${PRODUCT_NAME} sul desktop."
LangString ModifyingConfigureFailed "${LYX_LANG}" "Fallito tentativo di aggiornare 'path_prefix' nello script di configurazione"
LangString RunConfigureFailed "${LYX_LANG}" "Fallito tentativo di eseguire lo script di configurazione"
LangString FinishPageMessage "${LYX_LANG}" "Congratulazioni! LyX è stato installato con successo."
LangString FinishPageRun "${LYX_LANG}" "Lancia LyX"
LangString DownloadPageField2 "${LYX_LANG}" "&Non installare"
LangString MinSYSHeader "${LYX_LANG}" "MinSYS"
LangString MinSYSDescription "${LYX_LANG}" "MinSYS fornisce un ambiente unix minimale (www.mingw.org/msys.shtml) richiesto da ${PRODUCT_NAME} per far girare un certo numero di file script."
LangString EnterMinSYSFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente sh.exe"
LangString InvalidMinSYSFolder "${LYX_LANG}" "Non riesco a trovare sh.exe"
LangString MinSYSDownloadLabel "${LYX_LANG}" "&Scarica MinSYS"
LangString MinSYSFolderLabel "${LYX_LANG}" "&Cartella contenente sh.exe"
LangString PythonHeader "${LYX_LANG}" "Python"
LangString PythonDescription "${LYX_LANG}" "L'interprete Python (www.python.org) deve essere installato, altrimenti ${PRODUCT_NAME} non sarà in grado di far girare un certo numero di file script."
LangString EnterPythonFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente Python.exe"
LangString InvalidPythonFolder "${LYX_LANG}" "Non riesco a trovare Python.exe"
LangString PythonDownloadLabel "${LYX_LANG}" "&carica Python"
LangString PythonFolderLabel "${LYX_LANG}" "&Cartella contenente Python.exe"
LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX"
LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) è un'aggiornata implementazione di TeX per Windows."
LangString EnterMiKTeXFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente latex.exe"
LangString InvalidMiKTeXFolder "${LYX_LANG}" "Non riesco a trovare latex.exe"
LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Scarica MiKTeX"
LangString MiKTeXFolderLabel "${LYX_LANG}" "&Cartella contenente latex.exe"
LangString PerlHeader "${LYX_LANG}" "Perl"
LangString PerlDescription "${LYX_LANG}" "Se volete usare reLyX per convertire documenti LaTeX nel formato LyX, dovete installare Perl (www.perl.com)."
LangString EnterPerlFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente Perl.exe"
LangString InvalidPerlFolder "${LYX_LANG}" "Non riesco a trovare Perl.exe"
LangString PerlDownloadLabel "${LYX_LANG}" "&Scarica Perl"
LangString PerlFolderLabel "${LYX_LANG}" "&Cartella contenente perl.exe"
LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick"
LangString ImageMagickDescription "${LYX_LANG}" "I programmi forniti da ImageMagick (www.imagemagick.org/script/index.php) vengono usati per convertire file grafici da un certo formato ad un qualsiasi altro formato."
LangString EnterImageMagickFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente convert.exe"
LangString InvalidImageMagickFolder "${LYX_LANG}" "Non riesco a trovare convert.exe"
LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Scarica ImageMagick"
LangString ImageMagickFolderLabel "${LYX_LANG}" "&Cartella contenente convert.exe"
LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript"
LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) viene usato per convertire immagini in/da PostScript."
LangString EnterGhostscriptFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente gswin32c.exe"
LangString InvalidGhostscriptFolder "${LYX_LANG}" "Non riesco a trovare gswin32c.exe"
LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Scarica Ghostscript"
LangString GhostscriptFolderLabel "${LYX_LANG}" "&Cartella contenente gswin32c.exe"
LangString SummaryTitle "${LYX_LANG}" "Sommario del software"
LangString SummaryPleaseInstall "${LYX_LANG}" "Siete pregati di installare i pacchetti scaricati e quindi lanciare nuovamente l'installazione di LyX."
LangString SummaryPathPrefix "${LYX_LANG}" "Verrà aggiunta una stringa 'path_prefix' al file 'lyxrc.defaults' contenente:"
LangString UnNotInRegistryLabel "${LYX_LANG}" "Non riesco a trovare $(^Name) nel registro$\r$\nI collegamenti sul desktop e nel menu Start non saranno rimossi."
LangString UnNotAdminLabel "${LYX_LANG}" "Spiacente! Occorrono privilegi da amministratore$\r$\nper disinstallare $(^Name)."
LangString UnReallyRemoveLabel "${LYX_LANG}" "Siete sicuri di voler rimuovere completamente $(^Name) e tutti i suoi componenti?"
LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) è stato rimosso con successo dal computer."
!undef LYX_LANG
!endif ; _LYX_LANGUAGES_ITALIAN_NSH_

View File

@ -1,3 +1,21 @@
;--------------------------------
!macro GetFileExtProg ProgPath AppExe Extension
ReadRegStr ${AppExe} HKCU \
"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${Extension}\OpenWithList" \
"a"
${if} ${AppExe} != ""
ReadRegStr ${ProgPath} HKLM \
"Software\Microsoft\Windows\CurrentVersion\App Paths\${AppExe}" "Path"
;remove the "\" at the end
StrCpy ${ProgPath} ${ProgPath} -1
${endif}
!macroend
;--------------------------------
!macro FileCheck Result FileName FilePath
Push $0
Push $1
@ -42,10 +60,18 @@
StrCpy ${LangNme} "Français"
${endif}
${if} ${LangISOCode} = 1040
StrCpy ${LangNme} "Italiano"
${endif}
${if} ${LangISOCode} = 1043
StrCpy ${LangNme} "Nederlands"
${endif}
${if} ${LangISOCode} = 1053
StrCpy ${LangNme} "Svenska"
${endif}
!macroend