Commit b75b548f authored by Pauline Castets's avatar Pauline Castets Committed by Christophe Mutricy

Add translations for Win32 installer (fix #1044)

Enable translation for Win32 installer. French translation is provided.
New translation files need to be created in order to translate other
languages.
Translated strings are:
- strings displayed in installer pages, other than the NSI standard ones
(section names, section descriptions, installation types, VLC already
installed massage)
- context menu entries (Open With VLC, Add to VLC's playlist)
- name of actions displayed in Windows autorun dialog, for DVD and CD
(Play With VLC)

Add translation files for english and french (english.nsh and
french.nsh)
Add header file to declare translation variables (declaration.nsh)
Include declaration.nsh in NSI file
Replace every displayed string in installer by the variable defined in
language file.
Modify Makefile to copy translation files for Win32 installer

Language is chosen by NSI, with a dialog at the beginning of the
installer (which was already there).
Translated string are copied into the variables according to which
language was chosen. Default is English.
Signed-off-by: default avatarChristophe Mutricy <xtophe@videolan.org>
parent 9f177880
......@@ -39,7 +39,10 @@ EXTRA_DIST = \
extras/package/rpm/vlc.fedora.spec \
extras/package/rpm/vlc.mandriva.spec \
extras/package/rpm/vlc.altlinux.spec \
extras/package/win32/vlc.win32.nsi.in
extras/package/win32/vlc.win32.nsi.in \
extras/package/win32/languages/declaration.nsh \
extras/package/win32/languages/english.nsh \
extras/package/win32/languages/french.nsh
dist_noinst_SCRIPTS = bootstrap toolbox
......@@ -725,6 +728,8 @@ package-win32-base-debug: package-win-common
# Copy relevant files
# Script installer
cp "$(top_builddir)/extras/package/win32/vlc.win32.nsi" "$(win32_destdir)/"
mkdir "$(win32_destdir)/languages"
cp $(srcdir)/extras/package/win32/languages/*.nsh "$(win32_destdir)/languages/"
# Plugins
mkdir -p "$(win32_destdir)/plugins"
......
Var Name_Section01
Var Name_Section02a
Var Name_Section02b
Var Name_Section03
Var Name_Section04
Var Name_Section05
Var Name_Section06
Var Name_SectionGroupAudio
Var Name_SectionGroupVideo
Var Name_SectionGroupOther
Var Name_Section07
Var Name_Section08
Var Desc_Section01
Var Desc_Section02a
Var Desc_Section02b
Var Desc_Section03
Var Desc_Section04
Var Desc_Section05
Var Desc_Section06
Var Desc_Section07
Var Desc_Section08
Var Message_AlreadyInstalled
Var Name_Section91
Var Name_Section92
Var Desc_Section91
Var Desc_Section92
Var ShellAssociation_Play
Var ContextMenuEntry_PlayWith
Var ContextMenuEntry_AddToPlaylist
Var Link_VisitWebsite
Var Name_InstTypeRecommended
Var Name_InstTypeMinimum
Var Name_InstTypeFull
Var Action_OnArrivalDVD
Var Action_OnArrivalAudioCD
StrCpy $Name_Section01 "Media Player (required)"
StrCpy $Name_Section02a "Start Menu Shortcut"
StrCpy $Name_Section02b "Desktop Shortcut"
StrCpy $Name_Section03 "Mozilla plugin"
StrCpy $Name_Section04 "ActiveX plugin"
StrCpy $Name_Section05 "Discs Playback"
StrCpy $Name_Section06 "File type associations"
StrCpy $Name_SectionGroupAudio "Audio Files"
StrCpy $Name_SectionGroupVideo "Video Files"
StrCpy $Name_SectionGroupOther "Other"
StrCpy $Name_Section07 "Context Menus"
StrCpy $Name_Section08 "Delete preferences and cache"
StrCpy $Desc_Section01 \
"The media player itself"
StrCpy $Desc_Section02a \
"Adds icons to your start menu for easy access"
StrCpy $Desc_Section02b \
"Adds icon to your desktop for easy access"
StrCpy $Desc_Section03 \
"The VLC Mozilla and Mozilla Firefox plugin"
StrCpy $Desc_Section04 \
"The VLC ActiveX plugin"
StrCpy $Desc_Section05 \
"DVD and CD playback registration"
StrCpy $Desc_Section06 \
"Sets VLC media player as the default application for the specified file type"
StrCpy $Desc_Section07 \
"Add context menu items ('Play With VLC' and 'Add To VLC's Playlist')"
StrCpy $Desc_Section08 \
"Deletes VLC media player preferences and cache files leftover from previous installations"
StrCpy $Message_AlreadyInstalled \
"VLC media player has already been installed. $\nDo you want to remove \
the previous version before installing $(^Name) ?"
StrCpy $Name_Section91 "Uninstall"
StrCpy $Name_Section92 "Delete preferences and cache"
StrCpy $Desc_Section91 \
"Uninstall VLC media player and all its components"
StrCpy $Desc_Section92 \
"Deletes VLC media player preferences and cache files"
StrCpy $ShellAssociation_Play "Play"
StrCpy $ContextMenuEntry_PlayWith "Play with VLC media player"
StrCpy $ContextMenuEntry_AddToPlaylist "Add to VLC media player's Playlist"
StrCpy $Link_VisitWebsite "Visit the VideoLAN VLC media player Website"
StrCpy $Name_InstTypeRecommended "Recommended"
StrCpy $Name_InstTypeMinimum "Minimum"
StrCpy $Name_InstTypeFull "Full"
StrCpy $Action_OnArrivalDVD "Play DVD movie"
StrCpy $Action_OnArrivalAudioCD "Play audio CD"
StrCpy $Name_Section01 "Lecteur Media (requis)"
StrCpy $Name_Section02a "Ajouter au menu Démarrer"
StrCpy $Name_Section02b "Placer un raccourci sur le bureau"
StrCpy $Name_Section03 "Plugin Mozilla"
StrCpy $Name_Section04 "Plugin ActiveX"
StrCpy $Name_Section05 "Lecture de disques"
StrCpy $Name_Section06 "Types de fichiers"
StrCpy $Name_SectionGroupAudio "Fichiers Audio"
StrCpy $Name_SectionGroupVideo "Fichiers Video"
StrCpy $Name_SectionGroupOther "Autres"
StrCpy $Name_Section07 "Menus contextuels"
StrCpy $Name_Section08 "Effacer les preferences et le cache"
StrCpy $Desc_Section01 \
"Le lecteur multimedia"
StrCpy $Desc_Section02a \
"Ajoute des icônes au menu Démarrer pour un accès facile"
StrCpy $Desc_Section02b \
"Place un icône sur le bureau pour un accès facile"
StrCpy $Desc_Section03 \
"Le plugin VLC Mozilla et Mozilla Firefox"
StrCpy $Desc_Section04 \
"Le plugin VLC ActiveX"
StrCpy $Desc_Section05 \
"Lecture des CD et DVD"
StrCpy $Desc_Section06 \
"Définit le lecteur media VLC comme application par défaut pour les fichiers du type spécifié"
StrCpy $Desc_Section07 \
"Ajoute des entrées de menu contextuel ('Lire avec VLC' et 'Ajouter à la liste de lecture de VLC')"
StrCpy $Desc_Section08 \
"Efface les préférences de VLC et les fichiers cache laissés par une précédente installation"
StrCpy $Message_AlreadyInstalled \
"Le lecteur multimedia VLC est déjà installé. $\nSouhaitez-vous désinstaller \
l'ancienne version avant d'installer $(^Name) ?"
StrCpy $Name_Section91 "Désinstaller"
StrCpy $Name_Section92 "Effacer les préférences et les fichiers cache"
StrCpy $Desc_Section91 \
"Désinstalle VLC et tous ses composants"
StrCpy $Desc_Section92 \
"Efface les préférences de VLC et les fichiers cache"
StrCpy $ShellAssociation_Play "Lire"
StrCpy $ContextMenuEntry_PlayWith "Lire avec VLC"
StrCpy $ContextMenuEntry_AddToPlaylist "Ajouter à la liste de lecture de VLC"
StrCpy $Link_VisitWebsite "Visitez le site de VideoLAN"
StrCpy $Name_InstTypeRecommended "Recommandée"
StrCpy $Name_InstTypeMinimum "Minimale"
StrCpy $Name_InstTypeFull "Complète"
StrCpy $Action_OnArrivalDVD "Lecture DVD"
StrCpy $Action_OnArrivalAudioCD "Lecture CD Audio"
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment