summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2012-02-16 11:06:56 +0100
committerAlessio Treglia <alessio@debian.org>2012-02-16 11:06:56 +0100
commit1d323e54ee434609cf035598486075c9a918a2d3 (patch)
tree929ad92f19dfbb5492471449f1a6a918ea99c6b8 /setup
parent99b53d44a60e3e934fc664152c115ae0d6e19920 (diff)
Imported Upstream version 0.6.10
Diffstat (limited to 'setup')
-rw-r--r--setup/Readme.txt27
-rw-r--r--setup/create_portablepkg.cmd84
-rw-r--r--setup/create_smplayer_wo_mplayerpkg.cmd21
-rw-r--r--setup/install_smplayer.cmd83
-rw-r--r--setup/mplayer.codecs.win32.nsi145
-rw-r--r--setup/smplayer-installer.nsi959
-rw-r--r--setup/smplayer-orange-installer.icobin0 -> 138669 bytes
-rw-r--r--setup/smplayer-orange-uninstaller.icobin0 -> 138328 bytes
-rw-r--r--setup/smplayer-orange-wizard-un.bmpbin0 -> 154544 bytes
-rw-r--r--setup/smplayer-orange-wizard.bmpbin0 -> 154544 bytes
-rw-r--r--setup/smplayer.win32.nsi1182
-rw-r--r--setup/translations/basque.nsh96
-rw-r--r--setup/translations/catalan.nsh96
-rw-r--r--setup/translations/czech.nsh96
-rw-r--r--setup/translations/danish.nsh96
-rw-r--r--setup/translations/dutch.nsh96
-rw-r--r--setup/translations/english.nsh96
-rw-r--r--setup/translations/finnish.nsh96
-rw-r--r--setup/translations/french.nsh96
-rw-r--r--setup/translations/german.nsh96
-rw-r--r--setup/translations/hebrew.nsh96
-rw-r--r--setup/translations/hungarian.nsh96
-rw-r--r--setup/translations/italian.nsh96
-rw-r--r--setup/translations/japanese.nsh98
-rw-r--r--setup/translations/korean.nsh98
-rw-r--r--setup/translations/norwegian.nsh96
-rw-r--r--setup/translations/polish.nsh96
-rw-r--r--setup/translations/portuguese.nsh96
-rw-r--r--setup/translations/russian.nsh96
-rw-r--r--setup/translations/simpchinese.nsh98
-rw-r--r--setup/translations/slovak.nsh96
-rw-r--r--setup/translations/slovenian.nsh96
-rw-r--r--setup/translations/spanish.nsh98
-rw-r--r--setup/translations/tradchinese.nsh98
34 files changed, 3226 insertions, 1493 deletions
diff --git a/setup/Readme.txt b/setup/Readme.txt
deleted file mode 100644
index bee160f..0000000
--- a/setup/Readme.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-smplayer-installer.nsi is the script for NSIS (Nullsoft Scriptable Install System), which allows to create
-the installer for Windows. This script requires requires NSIS Unicode 2.45 available freely from http://www.scratchpaper.com/home/downloads.
-It is intended to be ran one directory up from 'smplayer-build'.
-
-The SMPlayer NSIS script is set up to compile two different setups:
-- SMPlayer including MPlayer files
-- SMPlayer that downloads MPlayer from a remote server
-
-Downloading MPlayer during install is the default mode. To create an installer with the MPlayer
-files you need to define WITH_MPLAYER in the compiler. You need to have the smplayer-build\mplayer files present (not included in SVN):
-makensis.exe /DWITH_MPLAYER smplayer-installer.nsi
-
-MakeNSISW (GUI Compiler): Tools -> Settings. Add WITH_MPLAYER in Symbol Name and add to the list. Leave the Value field blank.
-
-Other required files:
-- 7za.exe (http://www.7zip.org)
-- Unicode inetc plugin (http://nsis.sourceforge.net/Inetc_plug-in)
-Also available in: ftp://ftp.berlios.de/pub/smplayer/tools/nsis/
-
-Other required defines w/ values:
-VER_MAJOR
-VER_MINOR
-VER_BUILD
-VER_REVISION (only if non-zero)
-
-To build v0.6.8 that includes MPlayer files:
-C:\Program Files\NSIS\Unicode\makensis.exe /DWITH_MPLAYER /DVER_MAJOR=0 /DVER_MINOR=6 /DVER_BUILD=8 smplayer-installer.nsi \ No newline at end of file
diff --git a/setup/create_portablepkg.cmd b/setup/create_portablepkg.cmd
new file mode 100644
index 0000000..b7770b6
--- /dev/null
+++ b/setup/create_portablepkg.cmd
@@ -0,0 +1,84 @@
+@echo off
+echo This batch file can help you to create a package for SMPlayer Portable
+echo Just change the variables at the beginning
+echo.
+echo Note: It will temporarily rename the smplayer-build directory.
+echo Be sure to have a compiled portable smplayer.exe, renamed as
+echo `smplayer-portable.exe` in the same directory as this script.
+echo.
+echo 7zip command-line (http://7zip.org) is required by this script.
+echo.
+
+set /P SMPLAYER_VER="SMPlayer Version: "
+if "%SMPLAYER_VER%"=="" exit
+
+set SMPLAYER_DIR=smplayer-build
+
+ren %SMPLAYER_DIR% smplayer-portable-%SMPLAYER_VER%
+set SMPLAYER_DIR=smplayer-portable-%SMPLAYER_VER%
+
+echo.
+echo ###### Backing up files #######
+echo.
+
+ren %SMPLAYER_DIR%\smplayer.exe smplayer.bak
+ren %SMPLAYER_DIR%\mplayer\mplayer\config config.bak
+
+echo.
+echo ###### Create screenshots dir. #######
+echo.
+
+mkdir %SMPLAYER_DIR%\screenshots
+
+echo.
+echo ###### Create smplayer.ini #######
+echo.
+
+echo [%%General]>> %SMPLAYER_DIR%\smplayer.ini
+echo screenshot_directory=.\\screenshots>> %SMPLAYER_DIR%\smplayer.ini
+echo.>> %SMPLAYER_DIR%\smplayer.ini
+echo [advanced]>> %SMPLAYER_DIR%\smplayer.ini
+echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_DIR%\smplayer.ini
+
+echo.
+echo ###### Create smplayer_orig.ini #######
+echo.
+
+echo [%%General]>> %SMPLAYER_DIR%\smplayer_orig.ini
+echo screenshot_directory=.\\screenshots>> %SMPLAYER_DIR%\smplayer_orig.ini
+echo.>> %SMPLAYER_DIR%\smplayer_orig.ini
+echo [advanced]>> %SMPLAYER_DIR%\smplayer_orig.ini
+echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_DIR%\smplayer_orig.ini
+
+echo.
+echo ###### Create mplayer config #######
+echo.
+
+echo ## MPlayer Windows configuration>> %SMPLAYER_DIR%\mplayer\mplayer\config
+echo.>> %SMPLAYER_DIR%\mplayer\mplayer\config
+echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_DIR%\mplayer\mplayer\config
+echo ^<cachedir^>../fontconfig^</cachedir^>> %SMPLAYER_DIR%\mplayer\fonts\local.conf
+
+echo.
+echo ###### Copying portable .exe #######
+echo.
+
+copy /y .\smplayer-portable.exe %SMPLAYER_DIR%\smplayer.exe
+
+echo.
+echo ###### Creating portable package #######
+echo.
+7za a -t7z smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_DIR% -xr!*.bak -xr!qxtcore.dll -mx7
+
+echo.
+echo ###### Cleanup and restoration #######
+echo.
+rmdir %SMPLAYER_DIR%\screenshots
+del %SMPLAYER_DIR%\smplayer.ini
+del %SMPLAYER_DIR%\smplayer_orig.ini
+del %SMPLAYER_DIR%\smplayer.exe
+del %SMPLAYER_DIR%\mplayer\mplayer\config
+del %SMPLAYER_DIR%\mplayer\fonts\local.conf
+ren %SMPLAYER_DIR%\smplayer.bak smplayer.exe
+ren %SMPLAYER_DIR%\mplayer\mplayer\config.bak config
+ren %SMPLAYER_DIR% smplayer-build
diff --git a/setup/create_smplayer_wo_mplayerpkg.cmd b/setup/create_smplayer_wo_mplayerpkg.cmd
new file mode 100644
index 0000000..a04306b
--- /dev/null
+++ b/setup/create_smplayer_wo_mplayerpkg.cmd
@@ -0,0 +1,21 @@
+@echo off
+echo This batch file can help you to create a package for SMPlayer without MPlayer
+echo Just change the variables at the beginning
+echo.
+echo Note: It will temporarily rename the smplayer-build directory.
+echo Even if the MPlayer files are present they will be excluded.
+echo.
+echo 7zip command-line (http://7zip.org) is required by this script.
+echo.
+
+set /P SMPLAYER_VER="SMPlayer Version: "
+if "%SMPLAYER_VER%"=="" exit
+
+set SMPLAYER_DIR=smplayer-build
+
+ren %SMPLAYER_DIR% smplayer-%SMPLAYER_VER%
+set SMPLAYER_DIR=smplayer-%SMPLAYER_VER%
+
+7za a -t7z smplayer-%SMPLAYER_VER%_without_mplayer.7z %SMPLAYER_DIR% -xr!mplayer -mx7
+
+ren %SMPLAYER_DIR% smplayer-build
diff --git a/setup/install_smplayer.cmd b/setup/install_smplayer.cmd
new file mode 100644
index 0000000..b21373d
--- /dev/null
+++ b/setup/install_smplayer.cmd
@@ -0,0 +1,83 @@
+@echo off
+echo This batch file can help you to create a directory with all required files
+echo Just change the variables at the beginning
+echo.
+echo Warning: it will only work with sources from the SVN and the command svn has to be in the path
+echo.
+
+set /P QTVER="Qt Version (Default: 4.5.1): "
+if "%QTVER%"=="" set QTVER=4.5.1
+
+set OUTPUT_DIR=smplayer-build
+
+set SMPLAYER_DIR=svn\smplayer
+set SMPLAYER_THEMES_DIR=svn\smplayer-themes
+set MINGW_DIR=C:\MinGW
+set MPLAYER_DIR=mplayer
+set QT_DIR=C:\Qt\%QTVER%
+set QXT_DIR=C:\development\libqxt
+
+echo.
+echo ###### SMPlayer, QT libs #######
+echo.
+
+mkdir %OUTPUT_DIR%
+copy %SMPLAYER_DIR%\src\release\smplayer.exe %OUTPUT_DIR%
+copy %SMPLAYER_DIR%\dxlist\release\dxlist.exe %OUTPUT_DIR%
+copy %SMPLAYER_DIR%\*.txt %OUTPUT_DIR%
+copy %QT_DIR%\bin\QtCore4.dll %OUTPUT_DIR%
+copy %QT_DIR%\bin\QtGui4.dll %OUTPUT_DIR%
+copy %QT_DIR%\bin\QtNetwork4.dll %OUTPUT_DIR%
+copy %QT_DIR%\bin\QtXml4.dll %OUTPUT_DIR%
+copy %MINGW_DIR%\bin\mingwm10.dll %OUTPUT_DIR%
+if %QTVER% geq 4.6.0 (
+copy %MINGW_DIR%\bin\libgcc_s_dw2-1.dll %OUTPUT_DIR%
+)
+
+mkdir %OUTPUT_DIR%\imageformats
+copy %QT_DIR%\plugins\imageformats\qjpeg4.dll %OUTPUT_DIR%\imageformats\
+
+echo.
+echo ###### Libqxt #######
+echo.
+copy %QXT_DIR%\lib\QxtCore.dll %OUTPUT_DIR%
+
+echo.
+echo ###### Translations #######
+echo.
+
+mkdir %OUTPUT_DIR%\translations
+copy %SMPLAYER_DIR%\src\translations\*.qm %OUTPUT_DIR%\translations
+
+echo.
+echo ###### Qt Translations #######
+echo.
+copy %QT_DIR%\translations\qt_de.qm %OUTPUT_DIR%\translations
+copy %QT_DIR%\translations\qt_es.qm %OUTPUT_DIR%\translations
+copy %QT_DIR%\translations\qt_ru.qm %OUTPUT_DIR%\translations
+copy %QT_DIR%\translations\qt_sk.qm %OUTPUT_DIR%\translations
+copy %QT_DIR%\translations\qt_sv.qm %OUTPUT_DIR%\translations
+copy %QT_DIR%\translations\qt_zh_CN.qm %OUTPUT_DIR%\translations
+
+echo.
+echo ###### Shortcuts #######
+echo.
+mkdir %OUTPUT_DIR%\shortcuts
+copy %SMPLAYER_DIR%\src\shortcuts\*.keys %OUTPUT_DIR%\shortcuts
+
+echo.
+echo ###### Documentation #######
+echo.
+svn export --force %SMPLAYER_DIR%\docs %OUTPUT_DIR%\docs
+
+echo.
+echo ###### Icon Themes #######
+echo.
+svn export --force %SMPLAYER_THEMES_DIR%\themes %OUTPUT_DIR%\themes
+
+echo.
+echo ###### MPlayer #######
+echo.
+xcopy %MPLAYER_DIR% %OUTPUT_DIR%\mplayer\ /E
+
+echo.
diff --git a/setup/mplayer.codecs.win32.nsi b/setup/mplayer.codecs.win32.nsi
deleted file mode 100644
index b469f1f..0000000
--- a/setup/mplayer.codecs.win32.nsi
+++ /dev/null
@@ -1,145 +0,0 @@
-; Written by redxii <redxii1234@hotmail.com>
-; Codecs installer for SMPlayer
-
-;--------------------------------
-;Compressor
-
- SetCompressor /SOLID lzma
- SetCompressorDictSize 32
-
-;--------------------------------
-;Defines
-
- !define PRODUCT_VERSION "20071007"
-
-;--------------------------------
-;Include Modern UI and functions
-
- !include MUI2.nsh
-
-;--------------------------------
-;General
-
- ;Name and file
- Name "MPlayer Binary Codecs ${PRODUCT_VERSION}"
- OutFile "smplayer_codecs_${PRODUCT_VERSION}.exe"
-
- ;Show details
- ShowInstDetails show
-
- ;Get installation folder from registry if available
- InstallDirRegKey HKLM "Software\SMPlayer" "Path"
-
- ;Vista+ XML manifest, does not affect older OSes
- RequestExecutionLevel admin
-
-;--------------------------------
-;Variables
-
- Var IS_ADMIN
- Var USERNAME
-
-;--------------------------------
-;Interface Settings
-
- !define MUI_ABORTWARNING
- !define MUI_FINISHPAGE_NOREBOOTSUPPORT
- !define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp"
-
- ;Installer/Uninstaller icons
- !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
-
-;--------------------------------
-;Pages
-
- ;Install pages
- !insertmacro MUI_PAGE_WELCOME
- !insertmacro MUI_PAGE_DIRECTORY
- !insertmacro MUI_PAGE_INSTFILES
- !insertmacro MUI_PAGE_FINISH
-
-;--------------------------------
-; Languages
-
- !insertmacro MUI_LANGUAGE "English"
-
-;--------------------------------
-;Reserve Files
-
- ;These files should be inserted before other files in the data block
- ;Keep these lines before any File command
- ;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA)
-
- ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
-
-;------------------------------------------------------------------------------------------------
-;Installer Sections
-
-;--------------------------------
-; Main SMPlayer files
-Section -Codecs
-
- Delete "$INSTDIR\mplayer\codecs\*"
-
- SetOutPath "$INSTDIR\mplayer\codecs"
- File "codecs\*"
-
- WriteRegDWORD HKLM Software\SMPlayer Installed_Codecs 0x1
-
-SectionEnd
-
-;--------------------------------
-;Installer Functions
-
-Function .onInit
-
- /* Privileges Check */
- Call CheckUserRights
-
- ;Check for admin (mimic old Inno Setup behavior)
- ${If} $IS_ADMIN == 0
- MessageBox MB_OK|MB_ICONSTOP "You must be logged in as an administrator when installing this program."
- Abort
- ${EndIf}
-
- ClearErrors
- ReadRegStr $0 HKLM Software\SMPlayer "Path"
- IfErrors 0 +2
- MessageBox MB_OK|MB_ICONEXCLAMATION "SMPlayer installation not found. You will have to manually locate your SMPlayer installation."
-
-FunctionEnd
-
-Function .onVerifyInstDir
-
- IfFileExists $INSTDIR\smplayer.exe PathGood
- Abort ; if $INSTDIR is not a smplayer directory, don't let us install there
- PathGood:
-
-FunctionEnd
-
-Function CheckUserRights
-
- ClearErrors
- UserInfo::GetName
- ${If} ${Errors}
- StrCpy $IS_ADMIN 1
- Return
- ${EndIf}
-
- Pop $USERNAME
- UserInfo::GetAccountType
- Pop $R0
- ${Switch} $R0
- ${Case} "Admin"
- ${Case} "Power"
- StrCpy $IS_ADMIN 1
- ${Break}
- ${Default}
- StrCpy $IS_ADMIN 0
- ${Break}
- ${EndSwitch}
-
-FunctionEnd
-
-;End Installer Sections
-;------------------------------------------------------------------------------------------------ \ No newline at end of file
diff --git a/setup/smplayer-installer.nsi b/setup/smplayer-installer.nsi
deleted file mode 100644
index d3b1257..0000000
--- a/setup/smplayer-installer.nsi
+++ /dev/null
@@ -1,959 +0,0 @@
-; Installer script for win32 SMPlayer
-; Written by redxii (redxii@users.sourceforge.net)
-
-;--------------------------------
-;Compressor
-
- SetCompressor /SOLID lzma
- SetCompressorDictSize 32
-
-;--------------------------------
-;Additional plugin folders
-
- !addplugindir .
-
-;--------------------------------
-;Defines
-
-!ifdef VER_REVISION
- !define SMPLAYER_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.${VER_REVISION}"
- !define SMPLAYER_PRODUCT_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.${VER_REVISION}"
-!else ifndef VER_REVISION
- !define SMPLAYER_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}"
- !define SMPLAYER_PRODUCT_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.0"
-!endif
-
- !define SMPLAYER_APP_PATHS_KEY "Software\Microsoft\Windows\CurrentVersion\App Paths\smplayer.exe"
- !define SMPLAYER_DEFPROGRAMS_KEY "Software\Clients\Media\SMPlayer\Capabilities"
- !define SMPLAYER_REG_KEY "Software\SMPlayer"
-
- !define SMPLAYER_UNINST_EXE "uninst.exe"
- !define SMPLAYER_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\SMPlayer"
-
- ;Fallback versions
- ;These can be changed in the compiler, otherwise
- ;if not defined the values shown here will be used.
-!ifndef DEFAULT_CODECS_VERSION
- !define DEFAULT_CODECS_VERSION "windows-essential-20071007"
-!endif
-!ifndef WITH_MPLAYER
-!ifndef DEFAULT_MPLAYER_VERSION
- !define DEFAULT_MPLAYER_VERSION "mplayer-svn-28311-2"
-!endif
-!endif
-
-;--------------------------------
-;General
-
- ;Name and file
- Name "SMPlayer ${SMPLAYER_VERSION}"
- BrandingText "SMPlayer for Windows v${SMPLAYER_VERSION}"
-!ifdef WITH_MPLAYER
- OutFile "smplayer-${SMPLAYER_VERSION}-win32.exe"
-!else ifndef WITH_MPLAYER
- OutFile "smplayer-${SMPLAYER_VERSION}-win32-webdl.exe"
-!endif
-
- ;Version tab properties
- VIProductVersion "${SMPLAYER_PRODUCT_VERSION}"
- VIAddVersionKey "ProductName" "SMPlayer"
- VIAddVersionKey "ProductVersion" "${SMPLAYER_VERSION}"
- VIAddVersionKey "FileVersion" "${SMPLAYER_VERSION}"
- VIAddVersionKey "LegalCopyright" ""
-!ifdef WITH_MPLAYER
- VIAddVersionKey "FileDescription" "SMPlayer Installer (w/ MPlayer)"
-!else ifndef WITH_MPLAYER
- VIAddVersionKey "FileDescription" "SMPlayer Installer (MPlayer Web Downloader)"
-!endif
-
- ;Default installation folder
- InstallDir "$PROGRAMFILES\SMPlayer"
-
- ;Get installation folder from registry if available
- InstallDirRegKey HKLM "${SMPLAYER_REG_KEY}" "Path"
-
- ;Vista+ XML manifest, does not affect older OSes
- RequestExecutionLevel admin
-
- ShowInstDetails show
- ShowUnInstDetails show
-
-;--------------------------------
-;Variables
-
- Var CODEC_VERSION
- Var IS_ADMIN
-!ifndef WITH_MPLAYER
- Var MPLAYER_VERSION
-!endif
- Var PREVIOUS_VERSION
- Var PREVIOUS_VERSION_STATE
- Var REINSTALL_UNINSTALL
- Var REINSTALL_UNINSTALLBUTTON
- Var USERNAME
-
-;--------------------------------
-;Interface Settings
-
- ; License page
- !define MUI_LICENSEPAGE_RADIOBUTTONS
-
- ; Components page
- !define MUI_COMPONENTSPAGE_SMALLDESC
-
- ; Finish page
- !define MUI_FINISHPAGE_NOREBOOTSUPPORT
- !define MUI_FINISHPAGE_RUN $INSTDIR\smplayer.exe
- !define MUI_FINISHPAGE_RUN_NOTCHECKED
- ;!define MUI_FINISHPAGE_RUN_PARAMETERS http://88.191.30.130:8050
- !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\Release_notes.txt
- !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
- !define MUI_FINISHPAGE_SHOWREADME_TEXT "View Release Notes"
-
- ; Misc
- !define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp"
- !define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange-uninstall.bmp"
- !define MUI_ABORTWARNING
-
- ;Installer/Uninstaller icons
- !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
- !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
-
- ;Language Selection Dialog Settings
- !define MUI_LANGDLL_REGISTRY_ROOT HKLM
- !define MUI_LANGDLL_REGISTRY_KEY "${SMPLAYER_UNINST_KEY}"
- !define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
-
- ;Memento Settings
- !define MEMENTO_REGISTRY_ROOT HKLM
- !define MEMENTO_REGISTRY_KEY "${SMPLAYER_REG_KEY}"
-
-;--------------------------------
-;Include Modern UI and functions
-
- !include MUI2.nsh
- !include FileFunc.nsh
- !include Memento.nsh
- !include nsDialogs.nsh
- !include Sections.nsh
- !include WinVer.nsh
- !include WordFunc.nsh
-
-;--------------------------------
-;Pages
-
- ;Install pages
- !insertmacro MUI_PAGE_WELCOME
- !insertmacro MUI_PAGE_LICENSE "smplayer-build\Copying.txt"
- Page custom PageReinstall PageLeaveReinstall
- !define MUI_PAGE_CUSTOMFUNCTION_PRE PageComponentsPre
- !insertmacro MUI_PAGE_COMPONENTS
- !define MUI_PAGE_CUSTOMFUNCTION_PRE PageDirectoryPre
- !insertmacro MUI_PAGE_DIRECTORY
- !define MUI_PAGE_CUSTOMFUNCTION_SHOW PageInstfilesShow
- !insertmacro MUI_PAGE_INSTFILES
- !insertmacro MUI_PAGE_FINISH
-
- ;Uninstall pages
- !define MUI_PAGE_CUSTOMFUNCTION_PRE un.ConfirmPagePre
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_UNPAGE_INSTFILES
- !define MUI_PAGE_CUSTOMFUNCTION_PRE un.FinishPagePre
- !insertmacro MUI_UNPAGE_FINISH
-
-;--------------------------------
-;Languages
-
- !insertmacro MUI_LANGUAGE "Basque"
- !insertmacro MUI_LANGUAGE "Catalan"
- !insertmacro MUI_LANGUAGE "Czech"
- !insertmacro MUI_LANGUAGE "Danish"
- !insertmacro MUI_LANGUAGE "Dutch"
- !insertmacro MUI_LANGUAGE "English"
- !insertmacro MUI_LANGUAGE "Finnish"
- !insertmacro MUI_LANGUAGE "French"
- !insertmacro MUI_LANGUAGE "German"
- !insertmacro MUI_LANGUAGE "Hebrew"
- !insertmacro MUI_LANGUAGE "Hungarian"
- !insertmacro MUI_LANGUAGE "Italian"
- !insertmacro MUI_LANGUAGE "Norwegian"
- !insertmacro MUI_LANGUAGE "Polish"
- !insertmacro MUI_LANGUAGE "Portuguese"
- !insertmacro MUI_LANGUAGE "Russian"
- !insertmacro MUI_LANGUAGE "Slovak"
- !insertmacro MUI_LANGUAGE "Slovenian"
- !insertmacro MUI_LANGUAGE "Spanish"
-
-; Custom translations for setup
-
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\basque.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\catalan.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\czech.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\danish.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\dutch.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\english.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\finnish.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\french.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\german.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\hebrew.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\hungarian.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\italian.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\norwegian.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\polish.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\portuguese.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\russian.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\slovak.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\slovenian.nsh"
- !insertmacro LANGFILE_INCLUDE "svn\smplayer\setup\translations\spanish.nsh"
-
-;--------------------------------
-;Reserve Files
-
- ;These files should be inserted before other files in the data block
- ;Keep these lines before any File command
- ;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA)
-
- !insertmacro MUI_RESERVEFILE_LANGDLL
- ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
-
-;--------------------------------
-;Installer Types
-
- InstType "Typical"
- InstType "Compact"
- InstType "Full"
-
-;--------------------------------
-;Installer Sections
-
-;--------------------------------
-;Main SMPlayer files
-Section SMPlayer SMPlayer
-
- SectionIn 1 2 3 RO
- SetOutPath "$INSTDIR"
- File "smplayer-build\*"
-
- ;SMPlayer docs
- SetOutPath "$INSTDIR\docs"
- File /r "smplayer-build\docs\*.*"
-
- ;Qt imageformats
- SetOutPath "$INSTDIR\imageformats"
- File /r "smplayer-build\imageformats\*.*"
-
- ;SMPlayer key shortcuts
- SetOutPath "$INSTDIR\shortcuts"
- File /r "smplayer-build\shortcuts\*.*"
-
- SetOutPath "$PLUGINSDIR"
- File 7za.exe
-
- ;Initialize to 0 if don't exist (based on error flag)
- ClearErrors
- ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer
- ${If} ${Errors}
- WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x0
- ${EndIf}
- ClearErrors
- ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs
- ${If} ${Errors}
- WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs 0x0
- ${EndIf}
-
-SectionEnd
-
-;--------------------------------
-;Desktop shortcut
-${MementoSection} "Desktop Shortcut" DesktopIcon
- SectionIn 1 3
-
- SetOutPath "$INSTDIR"
- SetShellVarContext all
- CreateShortCut "$DESKTOP\SMPlayer.lnk" "$INSTDIR\smplayer.exe"
-
-${MementoSectionEnd}
-
-;--------------------------------
-;Start menu shortcuts
-${MementoSection} "Start Menu Shortcut" StartMenuIcon
- SectionIn 1 3
-
- SetOutPath "$INSTDIR"
- SetShellVarContext all
- CreateDirectory "$SMPROGRAMS\SMPlayer"
- CreateShortCut "$SMPROGRAMS\SMPlayer\SMPlayer.lnk" "$INSTDIR\smplayer.exe"
- WriteINIStr "$SMPROGRAMS\SMPlayer\SMPlayer on the Web.url" "InternetShortcut" "URL" "http://smplayer.sf.net"
- CreateShortCut "$SMPROGRAMS\SMPlayer\Uninstall SMPlayer.lnk" "$INSTDIR\${SMPLAYER_UNINST_EXE}"
-
-${MementoSectionEnd}
-
-;--------------------------------
-;MPlayer & MPlayer Codecs
-SectionGroup /e "MPlayer Components"
-
-!ifdef WITH_MPLAYER
- Section MPlayer MPlayer
- SectionIn 1 2 3 RO
-
- SetOutPath "$INSTDIR\mplayer"
- File /r "smplayer-build\mplayer\*.*"
-
- WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x1
-
- SectionEnd
-!else ifndef WITH_MPLAYER
- Section MPlayer MPlayer
- SectionIn 1 2 3 RO
- AddSize 16800
-
- Call GetVerInfo
-
- ;Read from version-info
- ;If it was unable to download, set version to that defined in DEFAULT_MPLAYER_VERSION
- ${If} ${FileExists} "$PLUGINSDIR\version-info"
- ReadINIStr $MPLAYER_VERSION "$PLUGINSDIR\version-info" smplayer mplayer
- ${Else}
- StrCpy $MPLAYER_VERSION ${DEFAULT_MPLAYER_VERSION}
- ${EndIf}
-
- retry_mplayer:
-
- DetailPrint $(MPLAYER_IS_DOWNLOADING)
- inetc::get /timeout 30000 /resume "" /caption $(MPLAYER_IS_DOWNLOADING) /banner "Downloading $MPLAYER_VERSION.7z" \
- "http://downloads.sourceforge.net/smplayer/$MPLAYER_VERSION.7z?big_mirror=0" \
- "$PLUGINSDIR\$MPLAYER_VERSION.7z"
- Pop $R0
- StrCmp $R0 OK 0 check_mplayer
-
- ;Extract
- nsExec::Exec '"$PLUGINSDIR\7za.exe" x "$PLUGINSDIR\$MPLAYER_VERSION.7z" -y -o"$PLUGINSDIR"'
-
- ;Copy
- CreateDirectory "$INSTDIR\mplayer"
- CopyFiles /SILENT "$PLUGINSDIR\$MPLAYER_VERSION\*" "$INSTDIR\mplayer"
-
- check_mplayer:
- ;This label does not necessarily mean there was a download error, so check first
- ${If} $R0 != "OK"
- DetailPrint $(MPLAYER_DL_FAILED)
- ${EndIf}
-
- IfFileExists "$INSTDIR\mplayer\mplayer.exe" mplayerInstSuccess mplayerInstFailed
- mplayerInstSuccess:
- WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x1
- Goto done
- mplayerInstFailed:
- MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(MPLAYER_DL_RETRY) /SD IDCANCEL IDRETRY retry_mplayer
- Abort $(MPLAYER_INST_FAILED)
-
- done:
-
- SectionEnd
-!endif
-
-;--------------------------------
-;MPlayer codecs
- Section /o "Binary Codecs" Codecs
- SectionIn 3
- AddSize 22300
-
- Call GetVerInfo
-
- ;Read from version-info
- ;If it was unable to download, set version to that defined in DEFAULT_CODECS_VERSION
- ${If} ${FileExists} "$PLUGINSDIR\version-info"
- ReadINIStr $CODEC_VERSION "$PLUGINSDIR\version-info" smplayer mplayercodecs
- ${Else}
- StrCpy $CODEC_VERSION ${DEFAULT_CODECS_VERSION}
- ${EndIf}
-
- retry_codecs:
-
- DetailPrint $(CODECS_IS_DOWNLOADING)
- inetc::get /timeout 30000 /resume "" /caption $(CODECS_IS_DOWNLOADING) /banner "Downloading $CODEC_VERSION.zip" \
- "http://www.mplayerhq.hu/MPlayer/releases/codecs/$CODEC_VERSION.zip" \
- "$PLUGINSDIR\$CODEC_VERSION.zip"
- Pop $R0
- StrCmp $R0 OK 0 check_codecs
-
- ;Extract
- nsExec::Exec '"$PLUGINSDIR\7za.exe" x "$PLUGINSDIR\$CODEC_VERSION.zip" -y -o"$PLUGINSDIR"'
-
- ;Copy
- CreateDirectory "$INSTDIR\mplayer\codecs"
- CopyFiles /SILENT "$PLUGINSDIR\$CODEC_VERSION\*" "$INSTDIR\mplayer\codecs"
-
- check_codecs:
- ;This label does not necessarily mean there was a download error, so check first
- ${If} $R0 != "OK"
- DetailPrint $(CODECS_DL_FAILED)
- ${EndIf}
-
- IfFileExists "$INSTDIR\mplayer\codecs\*.dll" codecsInstSuccess codecsInstFailed
- codecsInstSuccess:
- WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs 0x1
- Goto done
- codecsInstFailed:
- MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(CODECS_DL_RETRY) /SD IDCANCEL IDRETRY retry_codecs
- DetailPrint $(CODECS_INST_FAILED)
- WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs 0x0
- Sleep 5000
-
- done:
-
- SectionEnd
-
-SectionGroupEnd
-
-;--------------------------------
-;Icon themes
-${MementoSection} "Icon Themes" Themes
-
- SectionIn 1 3
- SetOutPath "$INSTDIR\themes"
- File /r "smplayer-build\themes\*.*"
-
-${MementoSectionEnd}
-
-;--------------------------------
-;Translations
-${MementoSection} Translations Translations
-
- SectionIn 1 3
- SetOutPath "$INSTDIR\translations"
- File /r "smplayer-build\translations\*.*"
-
-${MementoSectionEnd}
-
-;--------------------------------
-;Install/Uninstall information
-Section -Post
-
- ;Uninstall file
- WriteUninstaller "$INSTDIR\${SMPLAYER_UNINST_EXE}"
-
- ;Store installed path & version
- WriteRegStr HKLM "${SMPLAYER_REG_KEY}" "Path" "$INSTDIR"
- WriteRegStr HKLM "${SMPLAYER_REG_KEY}" "Version" "${SMPLAYER_VERSION}"
-
- ;Allows user to use 'start smplayer.exe'
- WriteRegStr HKLM "${SMPLAYER_APP_PATHS_KEY}" "" "$INSTDIR\smplayer.exe"
-
- ;Registry entries needed for Default Programs in Vista & later
- ${If} ${AtLeastWinVista}
- Call DefaultProgramsReg
- ${EndIf}
-
- ;Registry Uninstall information
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name)"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayIcon" "$INSTDIR\smplayer.exe"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayVersion" "${SMPLAYER_VERSION}"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "HelpLink" "http://smplayer.berlios.de/forum"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "Publisher" "RVM"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "UninstallString" "$INSTDIR\${SMPLAYER_UNINST_EXE}"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "URLInfoAbout" "http://smplayer.sf.net"
- WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "URLUpdateInfo" "http://smplayer.sf.net"
- WriteRegDWORD HKLM "${SMPLAYER_UNINST_KEY}" "NoModify" "1"
- WriteRegDWORD HKLM "${SMPLAYER_UNINST_KEY}" "NoRepair" "1"
-
-SectionEnd
-
-${MementoSectionDone}
-
-;--------------------------------
-;Section descriptions
-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SMPlayer} "SMPlayer, shared libraries, and documentation."
- !insertmacro MUI_DESCRIPTION_TEXT ${DesktopIcon} "Creates a shortcut on the desktop."
- !insertmacro MUI_DESCRIPTION_TEXT ${StartMenuIcon} "Creates start menu shortcuts."
-!ifdef WITH_MPLAYER
- !insertmacro MUI_DESCRIPTION_TEXT ${MPlayer} "The engine behind SMPlayer, required for playback."
-!else ifndef WITH_MPLAYER
- !insertmacro MUI_DESCRIPTION_TEXT ${MPlayer} "Downloads/installs MPlayer; requires an active internet connection. Required for playback."
-!endif
- !insertmacro MUI_DESCRIPTION_TEXT ${Codecs} "Downloads/installs optional binary codecs for MPlayer; requires an active internet connection."
- !insertmacro MUI_DESCRIPTION_TEXT ${Themes} "Additional icon themes for SMPlayer."
- !insertmacro MUI_DESCRIPTION_TEXT ${Translations} "Translations for the SMPlayer interface && help into 30+ additional languages."
-!insertmacro MUI_FUNCTION_DESCRIPTION_END
-
-;--------------------------------
-;Installer functions
-
-Function .onInit
-
- /* Check if setup is already running */
- System::Call 'kernel32::CreateMutexW(i 0, i 0, t "MPlayerSMPlayer") i .r1 ?e'
- Pop $R0
-
- StrCmp $R0 0 +3
- MessageBox MB_OK|MB_ICONEXCLAMATION $(SMPLAYER_INSTALLER_IS_RUNNING)
- Abort
-
- /* Privileges Check */
- Call CheckUserRights
-
- ;Check for admin (mimic old Inno Setup behavior)
- ${If} $IS_ADMIN == 0
- MessageBox MB_OK|MB_ICONSTOP $(SMPLAYER_INSTALLER_NO_ADMIN)
- Abort
- ${EndIf}
-
- /* Ask for setup language */
- !insertmacro MUI_LANGDLL_DISPLAY
-
- Call CheckPreviousVersion
-
- Call LoadPreviousSettings
-
-FunctionEnd
-
-Function .onInstSuccess
-
- ${MementoSectionSave}
-
-FunctionEnd
-
-Function .onInstFailed
-
- Call UninstallSMPlayer
-
- Delete "$INSTDIR\${SMPLAYER_UNINST_EXE}"
- RMDir "$INSTDIR"
-
-FunctionEnd
-
-Function .onSelChange
-
- SectionGetFlags ${Codecs} $R0
- ${If} $R0 != $R1
- StrCpy $R1 $R0
- IntOp $R0 $R0 & ${SF_SELECTED}
- ${If} $R0 == ${SF_SELECTED}
- MessageBox MB_OK $(MPLAYER_CODEC_INFORMATION)
- ${EndIf}
- ${EndIf}
-
-FunctionEnd
-
-Function CheckPreviousVersion
-
- ReadRegStr $PREVIOUS_VERSION HKLM "${SMPLAYER_REG_KEY}" "Version"
-
- ${VersionCompare} $PREVIOUS_VERSION ${SMPLAYER_VERSION} $PREVIOUS_VERSION_STATE
- ;$PREVIOUS_VERSION_STATE=0 This installer is the same version as the installed copy
- ;$PREVIOUS_VERSION_STATE=1 A newer version than this installer is already installed
- ;$PREVIOUS_VERSION_STATE=2 An older version than this installer is already installed
-
-FunctionEnd
-
-Function CheckUserRights
-
- ClearErrors
- UserInfo::GetName
- ${If} ${Errors}
- StrCpy $IS_ADMIN 1
- Return
- ${EndIf}
-
- Pop $USERNAME
- UserInfo::GetAccountType
- Pop $R0
- ${Switch} $R0
- ${Case} "Admin"
- ${Case} "Power"
- StrCpy $IS_ADMIN 1
- ${Break}
- ${Default}
- StrCpy $IS_ADMIN 0
- ${Break}
- ${EndSwitch}
-
-FunctionEnd
-
-Function DefaultProgramsReg
-
- ;HKEY_CLASSES_ROOT ProgId registration
- WriteRegStr HKCR "MPlayerFileVideo\DefaultIcon" "" '"$INSTDIR\smplayer.exe",1'
- WriteRegStr HKCR "MPlayerFileVideo\shell\enqueue" "" "Enqueue in SMPlayer"
- WriteRegStr HKCR "MPlayerFileVideo\shell\enqueue\command" "" '"$INSTDIR\smplayer.exe" -add-to-playlist "%1"'
- WriteRegStr HKCR "MPlayerFileVideo\shell\open" "FriendlyAppName" "SMPlayer Media Player"
- WriteRegStr HKCR "MPlayerFileVideo\shell\open\command" "" '"$INSTDIR\smplayer.exe" "%1"'
-
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}" "ApplicationDescription" $(APPLICATION_DESCRIPTION)
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}" "ApplicationName" "SMPlayer"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".3gp" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ac3" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ape" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".asf" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".avi" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".bin" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".dat" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".divx" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".dv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".dvr-ms" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".flac" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".flv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".iso" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m1v" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m2t" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m2ts" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m2v" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m3u" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m3u8" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".m4v" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mkv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mov" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mp3" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mp4" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mpeg" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mpg" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mpv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".mqv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".nsv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ogg" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ogm" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ogv" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".pls" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ra" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ram" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".rec" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".rm" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".rmvb" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".swf" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".ts" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".vcd" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".vfw" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".vob" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".wav" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".wma" "MPlayerFileVideo"
- WriteRegStr HKLM "${SMPLAYER_DEFPROGRAMS_KEY}\FileAssociations" ".wmv" "MPlayerFileVideo"
- WriteRegStr HKLM "Software\RegisteredApplications" "SMPlayer" "${SMPLAYER_DEFPROGRAMS_KEY}"
-
-FunctionEnd
-
-Function GetVerInfo
-
- IfFileExists "$PLUGINSDIR\version-info" end_dl_ver_info 0
- DetailPrint $(VERINFO_IS_DOWNLOADING)
- inetc::get /timeout 30000 /resume "" /silent "http://smplayer.sourceforge.net/mplayer-version-info" \
- "$PLUGINSDIR\version-info"
- Pop $R0
- StrCmp $R0 OK +2
- DetailPrint $(VERINFO_DL_FAILED)
-
- end_dl_ver_info:
-
-FunctionEnd
-
-Function LoadPreviousSettings
-
- ;MPlayer codecs section doesn't use Memento so we need to restore it manually
- ReadRegStr $R0 HKLM "${SMPLAYER_REG_KEY}" "Installed_Codecs"
- ${If} $R0 == 1
- !insertmacro SelectSection ${Codecs}
- ${EndIf}
-
- ${MementoSectionRestore}
-
-FunctionEnd
-
-Function PageReinstall
-
- ${If} $PREVIOUS_VERSION == ""
- Abort
- ${EndIf}
-
- nsDialogs::Create /NOUNLOAD 1018
- Pop $0
-
- ${If} $PREVIOUS_VERSION_STATE == 2
-
- !insertmacro MUI_HEADER_TEXT "Already Installed" "Choose how you want to install SMPlayer."
- nsDialogs::CreateItem /NOUNLOAD STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 0 0 100% 40 "An older version of SMPlayer is installed on your system. Select the operation you want to perform and click Next to continue."
- Pop $R0
- nsDialogs::CreateItem /NOUNLOAD BUTTON ${BS_AUTORADIOBUTTON}|${BS_VCENTER}|${BS_MULTILINE}|${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}|${WS_GROUP}|${WS_TABSTOP} 0 10 55 100% 30 "Upgrade SMPlayer using previous settings (recommended)"
- Pop $REINSTALL_UNINSTALLBUTTON
- nsDialogs::CreateItem /NOUNLOAD BUTTON ${BS_AUTORADIOBUTTON}|${BS_TOP}|${BS_MULTILINE}|${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 10 85 100% 50 "Change settings (advanced)"
- Pop $R0
-
- ${If} $REINSTALL_UNINSTALL == ""
- StrCpy $REINSTALL_UNINSTALL 1
- ${EndIf}
-
- ${ElseIf} $PREVIOUS_VERSION_STATE == 1
-
- !insertmacro MUI_HEADER_TEXT "Already Installed" "Choose how you want to install SMPlayer."
- nsDialogs::CreateItem /NOUNLOAD STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 0 0 100% 40 "A newer version of SMPlayer is already installed! It is not recommended that you downgrade to an older version. Select the operation you want to perform and click Next to continue."
- Pop $R0
- nsDialogs::CreateItem /NOUNLOAD BUTTON ${BS_AUTORADIOBUTTON}|${BS_VCENTER}|${BS_MULTILINE}|${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}|${WS_GROUP}|${WS_TABSTOP} 0 10 55 100% 30 "Downgrade SMPlayer using previous settings (recommended)"
- Pop $REINSTALL_UNINSTALLBUTTON
- nsDialogs::CreateItem /NOUNLOAD BUTTON ${BS_AUTORADIOBUTTON}|${BS_TOP}|${BS_MULTILINE}|${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 10 85 100% 50 "Change settings (advanced)"
- Pop $R0
-
- ${If} $REINSTALL_UNINSTALL == ""
- StrCpy $REINSTALL_UNINSTALL 1
- ${EndIf}
-
- ${ElseIf} $PREVIOUS_VERSION_STATE == 0
-
- !insertmacro MUI_HEADER_TEXT "Already Installed" "Choose the maintenance option to perform."
- nsDialogs::CreateItem /NOUNLOAD STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 0 0 100% 40 "SMPlayer ${SMPLAYER_VERSION} is already installed. Select the operation you want to perform and click Next to continue."
- Pop $R0
- nsDialogs::CreateItem /NOUNLOAD BUTTON ${BS_AUTORADIOBUTTON}|${BS_VCENTER}|${BS_MULTILINE}|${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}|${WS_GROUP}|${WS_TABSTOP} 0 10 55 100% 30 "Add/Remove/Reinstall components"
- Pop $R0
- nsDialogs::CreateItem /NOUNLOAD BUTTON ${BS_AUTORADIOBUTTON}|${BS_TOP}|${BS_MULTILINE}|${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 10 85 100% 50 "Uninstall SMPlayer"
- Pop $REINSTALL_UNINSTALLBUTTON
-
- ${If} $REINSTALL_UNINSTALL == ""
- StrCpy $REINSTALL_UNINSTALL 2
- ${EndIf}
-
- ${Else}
-
- MessageBox MB_ICONSTOP "Unknown value of PREVIOUS_VERSION_STATE, aborting" /SD IDOK
- Abort
-
- ${EndIf}
-
- ${If} $REINSTALL_UNINSTALL == 1
- SendMessage $REINSTALL_UNINSTALLBUTTON ${BM_SETCHECK} 1 0
- ${Else}
- SendMessage $R0 ${BM_SETCHECK} 1 0
- ${EndIf}
-
- nsDialogs::Show
-
-FunctionEnd
-
-Function PageComponentsPre
-
- ${If} $REINSTALL_UNINSTALL == 1
- Abort
- ${EndIf}
-
-FunctionEnd
-
-Function PageDirectoryPre
-
- ${If} $REINSTALL_UNINSTALL == 1
- Abort
- ${EndIf}
-
-FunctionEnd
-
-Function PageInstfilesShow
-
- ${If} $REINSTALL_UNINSTALL != ""
- Call RunUninstaller
- BringToFront
- ${EndIf}
-
-FunctionEnd
-
-Function PageLeaveReinstall
-
- SendMessage $REINSTALL_UNINSTALLBUTTON ${BM_GETCHECK} 0 0 $R0
- ${If} $R0 == 1
- ; Option to uninstall old version selected
- StrCpy $REINSTALL_UNINSTALL 1
- ${Else}
- ; Custom up/downgrade or add/remove/reinstall
- StrCpy $REINSTALL_UNINSTALL 2
- ${EndIf}
-
- ${If} $REINSTALL_UNINSTALL == 1
- ${If} $PREVIOUS_VERSION_STATE == 0
- Call RunUninstaller
- Quit
- ${Else}
- ${EndIf}
-
- ${EndIf}
-
-FunctionEnd
-
-Function RunUninstaller
-
- ReadRegStr $R1 HKLM "${SMPLAYER_UNINST_KEY}" "UninstallString"
-
- ${If} $R1 == ""
- Return
- ${EndIf}
-
- ;Run uninstaller
- HideWindow
-
- ClearErrors
-
- ${If} $PREVIOUS_VERSION_STATE == 0
- ${AndIf} $REINSTALL_UNINSTALL == 1
- ExecWait '$R1 _?=$INSTDIR'
- ${Else}
- ExecWait '$R1 /frominstall _?=$INSTDIR'
- ${EndIf}
-
- IfErrors no_remove_uninstaller
-
- IfFileExists "$INSTDIR\${SMPLAYER_UNINST_EXE}" 0 no_remove_uninstaller
-
- Delete "$R1"
- RMDir $INSTDIR
-
- no_remove_uninstaller:
-
-FunctionEnd
-
-;--------------------------------
-;Shared functions
-
-!macro UninstallSMPlayerMacro un
-Function ${un}UninstallSMPlayer
-
- ;Delete desktop and start menu shortcuts
- SetDetailsPrint textonly
- DetailPrint "Deleting Shortcuts..."
- SetDetailsPrint listonly
-
- SetShellVarContext all
- Delete "$DESKTOP\SMPlayer.lnk"
- Delete "$SMPROGRAMS\SMPlayer\SMPlayer.lnk"
- Delete "$SMPROGRAMS\SMPlayer\SMPlayer on the Web.url"
- Delete "$SMPROGRAMS\SMPlayer\Uninstall SMPlayer.lnk"
- RMDir "$SMPROGRAMS\SMPlayer"
-
- ;Delete directories recursively except for main directory
- ;Do not recursively delete $INSTDIR
- SetDetailsPrint textonly
- DetailPrint "Deleting Files..."
- SetDetailsPrint listonly
-
- RMDir /r "$INSTDIR\docs"
- RMDir /r "$INSTDIR\imageformats"
- RMDir /r "$INSTDIR\mplayer"
- RMDir /r "$INSTDIR\shortcuts"
- RMDir /r "$INSTDIR\themes"
- RMDir /r "$INSTDIR\translations"
- Delete "$INSTDIR\*.txt"
- Delete "$INSTDIR\mingwm10.dll"
- Delete "$INSTDIR\Q*.dll"
- Delete "$INSTDIR\smplayer.exe"
- Delete "$INSTDIR\dxlist.exe"
-
- ;Delete registry keys
- SetDetailsPrint textonly
- DetailPrint "Deleting Registry Keys..."
- SetDetailsPrint listonly
-
- DeleteRegKey HKLM "${SMPLAYER_REG_KEY}"
- DeleteRegKey HKLM "${SMPLAYER_APP_PATHS_KEY}"
- DeleteRegKey HKLM "${SMPLAYER_UNINST_KEY}"
- DeleteRegKey HKCR "MPlayerFileVideo"
- DeleteRegKey HKLM "Software\Clients\Media\SMPlayer"
- DeleteRegValue HKLM "Software\RegisteredApplications" "SMPlayer"
-
- SetDetailsPrint both
-
-FunctionEnd
-!macroend
-!insertmacro UninstallSMPlayerMacro ""
-!insertmacro UninstallSMPlayerMacro "un."
-
-/*************************************** Uninstaller *******************************************/
-
-Section Uninstall
-
- ;Make sure SMPlayer is installed from where the uninstaller is being executed.
- IfFileExists $INSTDIR\smplayer.exe smplayer_installed
- MessageBox MB_YESNO $(SMPLAYER_NOT_INSTALLED) /SD IDNO IDYES smplayer_installed
- Abort $(UNINSTALL_ABORTED)
-
- smplayer_installed:
-
- SetDetailsPrint textonly
- DetailPrint "Restoring file associations..."
- SetDetailsPrint listonly
-
- ;Don't restore file associations if reinstalling
- ${un.GetParameters} $R0
- ${un.GetOptions} $R0 "/frominstall" $R1
-
- IfErrors 0 +2
- ExecWait '"$INSTDIR\smplayer.exe" -uninstall'
-
- Call un.UninstallSMPlayer
-
- Delete "$INSTDIR\${SMPLAYER_UNINST_EXE}"
- RMDir "$INSTDIR"
-
-SectionEnd
-
-;--------------------------------
-;Required functions
-
-!insertmacro un.GetParameters
-!insertmacro un.GetOptions
-
-;--------------------------------
-;Uninstaller functions
-
-Function un.onInit
-
- Call un.CheckUserRights
-
- ;Check for admin (mimic old Inno Setup behavior)
- ${If} $IS_ADMIN == 0
- MessageBox MB_OK|MB_ICONSTOP $(UNINSTALL_NO_ADMIN)
- Abort
- ${EndIf}
-
- ;Get the stored language preference
- !insertmacro MUI_UNGETLANGUAGE
-
-FunctionEnd
-
-Function un.CheckUserRights
-
- ClearErrors
- UserInfo::GetName
- ${If} ${Errors}
- StrCpy $IS_ADMIN 1
- Return
- ${EndIf}
-
- Pop $USERNAME
- UserInfo::GetAccountType
- Pop $R0
- ${Switch} $R0
- ${Case} "Admin"
- ${Case} "Power"
- StrCpy $IS_ADMIN 1
- ${Break}
- ${Default}
- StrCpy $IS_ADMIN 0
- ${Break}
- ${EndSwitch}
-
-FunctionEnd
-
-Function un.ConfirmPagePre
-
- ${un.GetParameters} $R0
-
- ${un.GetOptions} $R0 "/frominstall" $R1
- ${Unless} ${Errors}
- Abort
- ${EndUnless}
-
-FunctionEnd
-
-Function un.FinishPagePre
-
- ${un.GetParameters} $R0
-
- ${un.GetOptions} $R0 "/frominstall" $R1
- ${Unless} ${Errors}
- Abort
- ${EndUnless}
-
-FunctionEnd \ No newline at end of file
diff --git a/setup/smplayer-orange-installer.ico b/setup/smplayer-orange-installer.ico
new file mode 100644
index 0000000..00aa7ec
--- /dev/null
+++ b/setup/smplayer-orange-installer.ico
Binary files differ
diff --git a/setup/smplayer-orange-uninstaller.ico b/setup/smplayer-orange-uninstaller.ico
new file mode 100644
index 0000000..80bbdfb
--- /dev/null
+++ b/setup/smplayer-orange-uninstaller.ico
Binary files differ
diff --git a/setup/smplayer-orange-wizard-un.bmp b/setup/smplayer-orange-wizard-un.bmp
new file mode 100644
index 0000000..532137c
--- /dev/null
+++ b/setup/smplayer-orange-wizard-un.bmp
Binary files differ
diff --git a/setup/smplayer-orange-wizard.bmp b/setup/smplayer-orange-wizard.bmp
new file mode 100644
index 0000000..0c978a1
--- /dev/null
+++ b/setup/smplayer-orange-wizard.bmp
Binary files differ
diff --git a/setup/smplayer.win32.nsi b/setup/smplayer.win32.nsi
new file mode 100644
index 0000000..1260029
--- /dev/null
+++ b/setup/smplayer.win32.nsi
@@ -0,0 +1,1182 @@
+; Installer script for win32 SMPlayer
+; Written by redxii (redxii@users.sourceforge.net)
+; Tested/Developed with Unicode NSIS 2.46
+
+!ifndef VER_MAJOR | VER_MINOR | VER_BUILD
+ !error "Version information not defined (or incomplete). You must define: VER_MAJOR, VER_MINOR, VER_BUILD."
+!endif
+
+;--------------------------------
+;Compressor
+
+ SetCompressor /SOLID lzma
+ SetCompressorDictSize 32
+
+;--------------------------------
+;Additional plugin folders
+
+ !addplugindir .
+ !addincludedir .
+
+;--------------------------------
+;Defines
+
+!ifdef VER_REVISION
+ !define SMPLAYER_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.${VER_REVISION}"
+ !define SMPLAYER_PRODUCT_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.${VER_REVISION}"
+!else ifndef VER_REVISION
+ !define SMPLAYER_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}"
+ !define SMPLAYER_PRODUCT_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.0"
+!endif
+
+ !define SMPLAYER_APP_PATHS_KEY "Software\Microsoft\Windows\CurrentVersion\App Paths\smplayer.exe"
+ !define SMPLAYER_REG_KEY "Software\SMPlayer"
+
+ !define SMPLAYER_UNINST_EXE "uninst.exe"
+ !define SMPLAYER_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\SMPlayer"
+
+ ;Fallback versions
+ ;These can be changed in the compiler, otherwise
+ ;if not defined the values shown here will be used.
+!ifndef DEFAULT_CODECS_VERSION
+ !define DEFAULT_CODECS_VERSION "windows-essential-20071007"
+!endif
+
+!ifndef WITH_MPLAYER
+
+ !ifndef DEFAULT_MPLAYER_VERSION
+ !define DEFAULT_MPLAYER_VERSION "mplayer-svn-33216"
+ !endif
+
+!endif
+
+ ;Version control
+!ifndef VERSION_FILE_URL
+ !define VERSION_FILE_URL "http://smplayer.sourceforge.net/mplayer-version-info"
+!endif
+
+;--------------------------------
+;General
+
+ ;Name and file
+ Name "SMPlayer ${SMPLAYER_VERSION}"
+ BrandingText "SMPlayer for Windows v${SMPLAYER_VERSION}"
+!ifdef WITH_MPLAYER
+ OutFile "smplayer-${SMPLAYER_VERSION}-win32.exe"
+!else ifndef WITH_MPLAYER
+ OutFile "smplayer-${SMPLAYER_VERSION}-webdl.exe"
+!endif
+
+ ;Version tab properties
+ VIProductVersion "${SMPLAYER_PRODUCT_VERSION}"
+ VIAddVersionKey "ProductName" "SMPlayer"
+ VIAddVersionKey "ProductVersion" "${SMPLAYER_VERSION}"
+ VIAddVersionKey "FileVersion" "${SMPLAYER_VERSION}"
+ VIAddVersionKey "LegalCopyright" ""
+!ifdef WITH_MPLAYER
+ VIAddVersionKey "FileDescription" "SMPlayer Installer (Offline)"
+!else ifndef WITH_MPLAYER
+ VIAddVersionKey "FileDescription" "SMPlayer Installer (Web Downloader)"
+!endif
+
+ ;Default installation folder
+ InstallDir "$PROGRAMFILES\SMPlayer"
+
+ ;Get installation folder from registry if available
+ InstallDirRegKey HKLM "${SMPLAYER_REG_KEY}" "Path"
+
+ ;Vista+ XML manifest, does not affect older OSes
+ RequestExecutionLevel admin
+
+ ShowInstDetails show
+ ShowUnInstDetails show
+
+;--------------------------------
+;Variables
+
+ Var Codec_Version
+ Var Dialog_Reinstall
+ Var Inst_Type
+ Var Is_Admin
+!ifndef WITH_MPLAYER
+ Var MPlayer_Version
+!endif
+ Var Previous_Version
+ Var Previous_Version_State
+ Var Reinstall_ChgSettings
+ Var Reinstall_ChgSettings_State
+ Var Reinstall_Message
+ Var Reinstall_OverwriteButton
+ Var Reinstall_OverwriteButton_State
+ Var Reinstall_Uninstall
+ Var Reinstall_UninstallButton
+ Var Reinstall_UninstallButton_State
+ Var SMPlayer_Path
+ Var SMPlayer_StartMenuFolder
+ Var UserName
+
+;--------------------------------
+;Interface Settings
+
+ ;Installer/Uninstaller icons
+ !define MUI_ICON "smplayer-orange-installer.ico"
+ !define MUI_UNICON "smplayer-orange-uninstaller.ico"
+
+ ; Misc
+ !define MUI_WELCOMEFINISHPAGE_BITMAP "smplayer-orange-wizard.bmp"
+ !define MUI_UNWELCOMEFINISHPAGE_BITMAP "smplayer-orange-wizard-un.bmp"
+ !define MUI_ABORTWARNING
+
+ ; License page
+ !define MUI_LICENSEPAGE_RADIOBUTTONS
+
+ ; Components page
+ !define MUI_COMPONENTSPAGE_SMALLDESC
+
+ ; Finish page
+ !define MUI_FINISHPAGE_LINK "http://smplayer.sourceforge.net"
+ !define MUI_FINISHPAGE_LINK_LOCATION "http://smplayer.sourceforge.net"
+ !define MUI_FINISHPAGE_NOREBOOTSUPPORT
+ !define MUI_FINISHPAGE_RUN $INSTDIR\smplayer.exe
+ !define MUI_FINISHPAGE_RUN_NOTCHECKED
+ !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\Release_notes.txt
+ !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+
+ ;Language Selection Dialog Settings
+ !define MUI_LANGDLL_REGISTRY_ROOT HKLM
+ !define MUI_LANGDLL_REGISTRY_KEY "${SMPLAYER_UNINST_KEY}"
+ !define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
+
+ ;Memento Settings
+ !define MEMENTO_REGISTRY_ROOT HKLM
+ !define MEMENTO_REGISTRY_KEY "${SMPLAYER_REG_KEY}"
+
+ ;Start Menu Settings
+ !define MUI_STARTMENUPAGE_DEFAULTFOLDER "SMPlayer"
+ !define MUI_STARTMENUPAGE_NODISABLE
+ !define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
+ !define MUI_STARTMENUPAGE_REGISTRY_KEY "${SMPLAYER_UNINST_KEY}"
+ !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "NSIS:StartMenu"
+
+;--------------------------------
+;Include Modern UI and functions
+
+ !include MUI2.nsh
+ !include FileFunc.nsh
+ !include Memento.nsh
+ !include nsDialogs.nsh
+ !include Sections.nsh
+ !include WinVer.nsh
+ !include WordFunc.nsh
+
+;--------------------------------
+;Pages
+
+ ;Install pages
+ !insertmacro MUI_PAGE_WELCOME
+ !insertmacro MUI_PAGE_LICENSE "smplayer-build\Copying.txt"
+
+ #Upgrade/Reinstall
+ Page custom PageReinstall PageReinstallLeave
+
+ #Components
+ !define MUI_PAGE_CUSTOMFUNCTION_PRE PageComponentsPre
+ !insertmacro MUI_PAGE_COMPONENTS
+
+ #Install Directory
+ !define MUI_PAGE_CUSTOMFUNCTION_PRE PageDirectoryPre
+ !insertmacro MUI_PAGE_DIRECTORY
+
+ #Start Menu
+ !define MUI_PAGE_CUSTOMFUNCTION_PRE PageStartMenuPre
+ !insertmacro MUI_PAGE_STARTMENU "SMP_SMenu" $SMPlayer_StartMenuFolder
+
+ !insertmacro MUI_PAGE_INSTFILES
+ !insertmacro MUI_PAGE_FINISH
+
+ ;Uninstall pages
+ !define MUI_PAGE_CUSTOMFUNCTION_PRE un.ConfirmPagePre
+ !insertmacro MUI_UNPAGE_CONFIRM
+ !insertmacro MUI_UNPAGE_INSTFILES
+ !define MUI_PAGE_CUSTOMFUNCTION_PRE un.FinishPagePre
+ !insertmacro MUI_UNPAGE_FINISH
+
+;--------------------------------
+;Languages
+
+ !insertmacro MUI_LANGUAGE "English"
+ !insertmacro MUI_LANGUAGE "Basque"
+ !insertmacro MUI_LANGUAGE "Catalan"
+ !insertmacro MUI_LANGUAGE "Czech"
+ !insertmacro MUI_LANGUAGE "Danish"
+ !insertmacro MUI_LANGUAGE "Dutch"
+ !insertmacro MUI_LANGUAGE "Finnish"
+ !insertmacro MUI_LANGUAGE "French"
+ !insertmacro MUI_LANGUAGE "German"
+ !insertmacro MUI_LANGUAGE "Hebrew"
+ !insertmacro MUI_LANGUAGE "Hungarian"
+ !insertmacro MUI_LANGUAGE "Italian"
+ !insertmacro MUI_LANGUAGE "Japanese"
+ !insertmacro MUI_LANGUAGE "Korean"
+ !insertmacro MUI_LANGUAGE "Norwegian"
+ !insertmacro MUI_LANGUAGE "Polish"
+ !insertmacro MUI_LANGUAGE "Portuguese"
+ !insertmacro MUI_LANGUAGE "Russian"
+ !insertmacro MUI_LANGUAGE "SimpChinese"
+ !insertmacro MUI_LANGUAGE "Slovak"
+ !insertmacro MUI_LANGUAGE "Slovenian"
+ !insertmacro MUI_LANGUAGE "Spanish"
+ !insertmacro MUI_LANGUAGE "TradChinese"
+
+; Custom translations for setup
+
+ !insertmacro LANGFILE_INCLUDE "translations\english.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\basque.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\catalan.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\czech.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\danish.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\dutch.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\finnish.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\french.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\german.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\hebrew.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\hungarian.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\italian.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\japanese.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\korean.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\norwegian.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\polish.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\portuguese.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\russian.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\simpchinese.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\slovak.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\slovenian.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\spanish.nsh"
+ !insertmacro LANGFILE_INCLUDE "translations\tradchinese.nsh"
+
+;--------------------------------
+;Reserve Files
+
+ ;These files should be inserted before other files in the data block
+ ;Keep these lines before any File command
+ ;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA)
+
+ !insertmacro MUI_RESERVEFILE_LANGDLL
+ ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
+
+;--------------------------------
+;Installer Sections
+
+;--------------------------------
+;Main SMPlayer files
+Section $(Section_SMPlayer) SecSMPlayer
+
+ SectionIn RO
+
+ ${If} $Reinstall_Uninstall == 1
+
+ ReadRegStr $R0 HKLM ${SMPLAYER_REG_KEY} "Path"
+
+ ${If} $Reinstall_UninstallButton_State == 1
+ Exec '"$R0\uninst.exe" /X'
+ Quit
+ ${ElseIf} $Reinstall_OverwriteButton_State == 1
+ ${If} "$INSTDIR" == "$R0"
+ ExecWait '"$R0\uninst.exe" /S /R _?=$R0'
+ ${Else}
+ ExecWait '"$R0\uninst.exe" /S /R'
+ ${EndIf}
+ ${EndIf}
+
+ ${EndIf}
+
+ SetOutPath "$INSTDIR"
+ File "smplayer-build\*"
+
+ ;SMPlayer docs
+ SetOutPath "$INSTDIR\docs"
+ File /r "smplayer-build\docs\*.*"
+
+ ;Qt imageformats
+ SetOutPath "$INSTDIR\imageformats"
+ File /r "smplayer-build\imageformats\*.*"
+
+ ;SMPlayer key shortcuts
+ SetOutPath "$INSTDIR\shortcuts"
+ File /r "smplayer-build\shortcuts\*.*"
+
+ SetOutPath "$PLUGINSDIR"
+ File 7za.exe
+
+ ;Initialize to 0 if don't exist (based on error flag)
+ ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer
+ ${If} ${Errors}
+ WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x0
+ ${EndIf}
+
+ ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs
+ ${If} ${Errors}
+ WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs 0x0
+ ${EndIf}
+
+SectionEnd
+
+;--------------------------------
+;Shortcuts
+SectionGroup $(ShortcutGroupTitle)
+
+ ${MementoSection} $(Section_DesktopShortcut) SecDesktopShortcut
+
+ SetOutPath "$INSTDIR"
+ CreateShortCut "$DESKTOP\SMPlayer.lnk" "$INSTDIR\smplayer.exe"
+
+ ${MementoSectionEnd}
+
+ ${MementoSection} $(Section_StartMenu) SecStartMenuShortcut
+
+ SetOutPath "$INSTDIR"
+ !insertmacro MUI_STARTMENU_WRITE_BEGIN SMP_SMenu
+ CreateDirectory "$SMPROGRAMS\$SMPlayer_StartMenuFolder"
+ CreateShortCut "$SMPROGRAMS\$SMPlayer_StartMenuFolder\SMPlayer.lnk" "$INSTDIR\smplayer.exe"
+ WriteINIStr "$SMPROGRAMS\$SMPlayer_StartMenuFolder\SMPlayer on the Web.url" "InternetShortcut" "URL" "http://smplayer.sf.net"
+ CreateShortCut "$SMPROGRAMS\$SMPlayer_StartMenuFolder\Uninstall SMPlayer.lnk" "$INSTDIR\${SMPLAYER_UNINST_EXE}"
+ !insertmacro MUI_STARTMENU_WRITE_END
+
+ ${MementoSectionEnd}
+
+SectionGroupEnd
+
+;--------------------------------
+;MPlayer & MPlayer Codecs
+SectionGroup $(MPlayerGroupTitle)
+
+ Section $(Section_MPlayer) SecMPlayer
+
+ SectionIn RO
+
+!ifdef WITH_MPLAYER
+ SetOutPath "$INSTDIR\mplayer"
+ File /r "smplayer-build\mplayer\*.*"
+
+ WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x1
+!else ifndef WITH_MPLAYER
+ AddSize 16800
+
+ Call GetVerInfo
+
+ /* Read from version-info
+ If it was unable to download, set version to that defined in the
+ beginning of the script. */
+ ${If} ${FileExists} "$PLUGINSDIR\version-info"
+ ReadINIStr $MPlayer_Version "$PLUGINSDIR\version-info" smplayer mplayer
+ ${Else}
+ StrCpy $MPlayer_Version ${DEFAULT_MPLAYER_VERSION}
+ ${EndIf}
+
+ retry_mplayer:
+
+ DetailPrint $(MPlayer_DL_Msg)
+ inetc::get /timeout 30000 /resume "" /banner $(MPlayer_DL_Msg) /caption $(MPlayer_DL_Msg) "http://downloads.sourceforge.net/smplayer/$MPlayer_Version.7z?big_mirror=0" \
+ "$PLUGINSDIR\$MPlayer_Version.7z" /end
+ Pop $R0
+ StrCmp $R0 OK 0 check_mplayer
+
+ DetailPrint $(Info_Files_Extract)
+ nsExec::Exec '"$PLUGINSDIR\7za.exe" x "$PLUGINSDIR\$MPlayer_Version.7z" -y -o"$PLUGINSDIR"'
+
+ CreateDirectory "$INSTDIR\mplayer"
+ CopyFiles /SILENT "$PLUGINSDIR\$MPlayer_Version\*" "$INSTDIR\mplayer"
+
+ check_mplayer:
+
+ ${If} $R0 != "OK"
+ DetailPrint $(MPlayer_DL_Failed)
+ ${EndIf}
+
+ IfFileExists "$INSTDIR\mplayer\mplayer.exe" mplayerInstSuccess mplayerInstFailed
+ mplayerInstSuccess:
+ WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_MPlayer 0x1
+ Goto done
+ mplayerInstFailed:
+ MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(MPlayer_DL_Retry) /SD IDCANCEL IDRETRY retry_mplayer
+ Abort $(MPlayer_Inst_Failed)
+
+ done:
+!endif
+ SectionEnd
+
+ Section /o $(Section_MPlayerCodecs) SecCodecs
+
+ AddSize 22300
+
+ Call GetVerInfo
+
+ /* Read from version-info
+ If it was unable to download, set version to that defined in the
+ beginning of the script. */
+ ${If} ${FileExists} "$PLUGINSDIR\version-info"
+ ReadINIStr $Codec_Version "$PLUGINSDIR\version-info" smplayer mplayercodecs
+ ${Else}
+ StrCpy $Codec_Version ${DEFAULT_CODECS_VERSION}
+ ${EndIf}
+
+ retry_codecs:
+
+ DetailPrint $(Codecs_DL_Msg)
+ inetc::get /timeout 30000 /resume "" /banner $(Codecs_DL_Msg) /caption $(Codecs_DL_Msg) "http://www.mplayerhq.hu/MPlayer/releases/codecs/$Codec_Version.zip" \
+ "$PLUGINSDIR\$Codec_Version.zip" /end
+ Pop $R0
+ StrCmp $R0 OK 0 check_codecs
+
+ DetailPrint $(Info_Files_Extract)
+ nsExec::Exec '"$PLUGINSDIR\7za.exe" x "$PLUGINSDIR\$Codec_Version.zip" -y -o"$PLUGINSDIR"'
+
+ CreateDirectory "$INSTDIR\mplayer\codecs"
+ CopyFiles /SILENT "$PLUGINSDIR\$Codec_Version\*" "$INSTDIR\mplayer\codecs"
+
+ check_codecs:
+
+ ${If} $R0 != "OK"
+ DetailPrint $(Codecs_DL_Failed)
+ ${EndIf}
+
+ IfFileExists "$INSTDIR\mplayer\codecs\*.dll" codecsInstSuccess codecsInstFailed
+ codecsInstSuccess:
+ WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs 0x1
+ Goto done
+ codecsInstFailed:
+ MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(Codecs_DL_Retry) /SD IDCANCEL IDRETRY retry_codecs
+ DetailPrint $(Codecs_Inst_Failed)
+ WriteRegDWORD HKLM "${SMPLAYER_REG_KEY}" Installed_Codecs 0x0
+ Sleep 5000
+
+ done:
+
+ SectionEnd
+
+SectionGroupEnd
+
+;--------------------------------
+;Icon themes
+${MementoSection} $(Section_IconThemes) SecThemes
+
+ SetOutPath "$INSTDIR\themes"
+ File /r "smplayer-build\themes\*.*"
+
+${MementoSectionEnd}
+
+;--------------------------------
+;Translations
+SectionGroup $(Section_Translations) SecTranslations
+
+ Section "English" SecLang_ENUS
+ SectionIn RO
+
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_en_US.qm"
+ SectionEnd
+
+ ${MementoSection} "العربية" SecLang_ARSY
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ar_SY.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "български" SecLang_BG
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_bg.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Català" SecLang_CA
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ca.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Čeština" SecLang_CS
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_cs.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Dansk" SecLang_DA
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_da.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Deutsch" SecLang_DE
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_de.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Ελληνικά" SecLang_ELGR
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_el_GR.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Español" SecLang_ES
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_es.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Eesti Keel" SecLang_ET
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_et.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Euskara" SecLang_EU
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_eu.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Suomi" SecLang_FI
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_fi.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Français" SecLang_FR
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_fr.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Galego" SecLang_GL
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_gl.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Magyar" SecLang_HU
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_hu.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Italiano" SecLang_IT
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_it.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "日本語" SecLang_JA
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ja.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "ქართული" SecLang_KA
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ka.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "한국어" SecLang_KO
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ko.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "كوردی" SecLang_KU
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ku.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Lietuvių" SecLang_LT
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_lt.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Mакедонски" SecLang_MK
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_mk.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Nederlands" SecLang_NL
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_nl.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Polski" SecLang_PL
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_pl.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Português" SecLang_PT
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_pt.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Português (Brasil)" SecLang_PTBR
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_pt_BR.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Română" SecLang_roRO
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ro_RO.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Pусский" SecLang_ruRU
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_ru_RU.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Slovenčina" SecLang_SK
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_sk.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Slovenščina" SecLang_SLSI
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_sl_SI.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Cрпски" SecLang_SR
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_sr.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Svenska" SecLang_SV
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_sv.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Türkçe" SecLang_TR
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_tr.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Yкраїнська" SecLang_UKUA
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_uk_UA.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "Tiếng Việt" SecLang_VIVN
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_vi_VN.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "简化字" SecLang_ZHCN
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_zh_CN.qm"
+ ${MementoSectionEnd}
+
+ ${MementoSection} "漢語(繁體)" SecLang_ZHTW
+ SetOutPath "$INSTDIR\translations"
+ File /r "smplayer-build\translations\smplayer_zh_TW.qm"
+ ${MementoSectionEnd}
+
+SectionGroupEnd
+
+;--------------------------------
+;Install/Uninstall information
+Section -Post
+
+ ;Uninstall file
+ WriteUninstaller "$INSTDIR\${SMPLAYER_UNINST_EXE}"
+
+ ;Store installed path & version
+ WriteRegStr HKLM "${SMPLAYER_REG_KEY}" "Path" "$INSTDIR"
+ WriteRegStr HKLM "${SMPLAYER_REG_KEY}" "Version" "${SMPLAYER_VERSION}"
+
+ ;Allows user to use 'start smplayer.exe'
+ WriteRegStr HKLM "${SMPLAYER_APP_PATHS_KEY}" "" "$INSTDIR\smplayer.exe"
+
+ ;Default Programs Registration (Vista & later)
+ ${If} ${AtLeastWinVista}
+ Call RegisterDefaultPrograms
+ ${EndIf}
+
+ ;Registry Uninstall information
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name)"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayIcon" "$INSTDIR\smplayer.exe"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayVersion" "${SMPLAYER_VERSION}"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "HelpLink" "http://smplayer.berlios.de/forum"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "Publisher" "Ricardo Villalba"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "UninstallString" "$INSTDIR\${SMPLAYER_UNINST_EXE}"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "URLInfoAbout" "http://smplayer.sf.net"
+ WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "URLUpdateInfo" "http://smplayer.sf.net"
+ WriteRegDWORD HKLM "${SMPLAYER_UNINST_KEY}" "NoModify" "1"
+ WriteRegDWORD HKLM "${SMPLAYER_UNINST_KEY}" "NoRepair" "1"
+
+SectionEnd
+
+${MementoSectionDone}
+
+;--------------------------------
+;Section descriptions
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecSMPlayer} $(Section_SMPlayer_Desc)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} $(Section_DesktopShortcut_Desc)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} $(Section_StartMenu_Desc)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecMPlayer} $(Section_MPlayer_Desc)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecCodecs} $(Section_MPlayerCodecs_Desc)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecThemes} $(Section_IconThemes_Desc)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecTranslations} $(Section_Translations_Desc)
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+;--------------------------------
+;Macros
+
+!macro MacroAllExtensions _action
+ !insertmacro ${_action} ".3gp"
+ !insertmacro ${_action} ".ac3"
+ !insertmacro ${_action} ".ape"
+ !insertmacro ${_action} ".asf"
+ !insertmacro ${_action} ".avi"
+ !insertmacro ${_action} ".bin"
+ !insertmacro ${_action} ".dat"
+ !insertmacro ${_action} ".divx"
+ !insertmacro ${_action} ".dv"
+ !insertmacro ${_action} ".dvr-ms"
+ !insertmacro ${_action} ".f4v"
+ !insertmacro ${_action} ".flac"
+ !insertmacro ${_action} ".flv"
+ !insertmacro ${_action} ".hdmov"
+ !insertmacro ${_action} ".iso"
+ !insertmacro ${_action} ".m1v"
+ !insertmacro ${_action} ".m2t"
+ !insertmacro ${_action} ".m2ts"
+ !insertmacro ${_action} ".m2v"
+ !insertmacro ${_action} ".m3u"
+ !insertmacro ${_action} ".m3u8"
+ !insertmacro ${_action} ".m4v"
+ !insertmacro ${_action} ".mkv"
+ !insertmacro ${_action} ".mov"
+ !insertmacro ${_action} ".mp3"
+ !insertmacro ${_action} ".mp4"
+ !insertmacro ${_action} ".mpeg"
+ !insertmacro ${_action} ".mpg"
+ !insertmacro ${_action} ".mpv"
+ !insertmacro ${_action} ".mqv"
+ !insertmacro ${_action} ".nsv"
+ !insertmacro ${_action} ".ogg"
+ !insertmacro ${_action} ".ogm"
+ !insertmacro ${_action} ".ogv"
+ !insertmacro ${_action} ".pls"
+ !insertmacro ${_action} ".ra"
+ !insertmacro ${_action} ".ram"
+ !insertmacro ${_action} ".rec"
+ !insertmacro ${_action} ".rm"
+ !insertmacro ${_action} ".rmvb"
+ !insertmacro ${_action} ".swf"
+ !insertmacro ${_action} ".thd"
+ !insertmacro ${_action} ".ts"
+ !insertmacro ${_action} ".vcd"
+ !insertmacro ${_action} ".vfw"
+ !insertmacro ${_action} ".vob"
+ !insertmacro ${_action} ".vp8"
+ !insertmacro ${_action} ".wav"
+ !insertmacro ${_action} ".webm"
+ !insertmacro ${_action} ".wma"
+ !insertmacro ${_action} ".wmv"
+!macroend
+
+!macro WriteRegStrSupportedTypes EXT
+ WriteRegStr HKLM "${SMPLAYER_REG_KEY}\Capabilities\FileAssociations" ${EXT} "MPlayerFileVideo"
+!macroend
+
+!macro MacroRemoveSMPlayer
+ ;Delete desktop and start menu shortcuts
+ SetDetailsPrint textonly
+ DetailPrint $(Info_Del_Shortcuts)
+ SetDetailsPrint listonly
+
+ SetShellVarContext all
+ Delete "$DESKTOP\SMPlayer.lnk"
+ Delete "$SMPROGRAMS\$SMPlayer_StartMenuFolder\SMPlayer.lnk"
+ Delete "$SMPROGRAMS\$SMPlayer_StartMenuFolder\SMPlayer on the Web.url"
+ Delete "$SMPROGRAMS\$SMPlayer_StartMenuFolder\Uninstall SMPlayer.lnk"
+ RMDir "$SMPROGRAMS\$SMPlayer_StartMenuFolder"
+
+ ;Delete directories recursively except for main directory
+ ;Do not recursively delete $INSTDIR
+ SetDetailsPrint textonly
+ DetailPrint $(Info_Del_Files)
+ SetDetailsPrint listonly
+
+ RMDir /r "$INSTDIR\docs"
+ RMDir /r "$INSTDIR\imageformats"
+ RMDir /r "$INSTDIR\mplayer"
+ RMDir /r "$INSTDIR\shortcuts"
+ RMDir /r "$INSTDIR\themes"
+ RMDir /r "$INSTDIR\translations"
+ Delete "$INSTDIR\*.txt"
+ Delete "$INSTDIR\libgcc_s_dw2-1.dll"
+ Delete "$INSTDIR\mingwm10.dll"
+ Delete "$INSTDIR\Q*.dll"
+ Delete "$INSTDIR\smplayer.exe"
+ Delete "$INSTDIR\dxlist.exe"
+
+ ;Delete registry keys
+ SetDetailsPrint textonly
+ DetailPrint $(Info_Del_Registry)
+ SetDetailsPrint listonly
+
+ DeleteRegKey HKLM "${SMPLAYER_REG_KEY}"
+ DeleteRegKey HKLM "${SMPLAYER_APP_PATHS_KEY}"
+ DeleteRegKey HKLM "${SMPLAYER_UNINST_KEY}"
+ DeleteRegKey HKCR "MPlayerFileVideo"
+ DeleteRegValue HKLM "Software\RegisteredApplications" "SMPlayer"
+
+ SetDetailsPrint both
+!macroend
+
+;--------------------------------
+;Installer functions
+
+Function .onInit
+
+ !ifdef PRE_RELEASE
+ MessageBox MB_OK|MB_ICONINFORMATION "This is a pre-release version of SMPlayer. Please report all issues."
+ !endif
+
+ ;Check if setup is already running
+ System::Call 'kernel32::CreateMutexW(i 0, i 0, t "SMPlayerSetup") i .r1 ?e'
+ Pop $R0
+
+ StrCmp $R0 0 +3
+ MessageBox MB_OK|MB_ICONEXCLAMATION $(Installer_Is_Running)
+ Abort
+
+ ;Check for admin on older OSes
+ Call CheckUserRights
+
+ ${If} $Is_Admin == 0
+ MessageBox MB_OK|MB_ICONSTOP $(Installer_No_Admin)
+ Abort
+ ${EndIf}
+
+ Call LoadPreviousSettings
+
+ ;Setup language selection
+ !insertmacro MUI_LANGDLL_DISPLAY
+
+ Call CheckPreviousVersion
+
+ SetShellVarContext all
+
+FunctionEnd
+
+Function .onInstSuccess
+
+ ${MementoSectionSave}
+
+FunctionEnd
+
+Function .onInstFailed
+
+ SetDetailsPrint textonly
+ DetailPrint "Rolling back changes..."
+ SetDetailsPrint listonly
+
+ !insertmacro MacroRemoveSMPlayer
+
+ Delete "$INSTDIR\${SMPLAYER_UNINST_EXE}"
+ RMDir "$INSTDIR"
+
+FunctionEnd
+
+Function CheckPreviousVersion
+
+ ReadRegStr $Previous_Version HKLM "${SMPLAYER_REG_KEY}" "Version"
+ ReadRegStr $SMPlayer_Path HKLM "${SMPLAYER_REG_KEY}" "Path"
+
+ /* $Previous_Version_State Assignments:
+ $Previous_Version_State=0 This installer is the same version as the installed copy
+ $Previous_Version_State=1 A newer version than this installer is already installed
+ $Previous_Version_State=2 An older version than this installer is already installed */
+ ${VersionCompare} $Previous_Version ${SMPLAYER_VERSION} $Previous_Version_State
+
+ ${If} $Previous_Version_State == 0
+ StrCpy $Inst_Type $(Type_Reinstall)
+ ${ElseIf} $Previous_Version_State == 1
+ StrCpy $Inst_Type $(Type_Downgrade)
+ ${ElseIf} $Previous_Version_State == 2
+ StrCpy $Inst_Type $(Type_Upgrade)
+ ${EndIf}
+
+FunctionEnd
+
+Function CheckUserRights
+
+ ClearErrors
+ UserInfo::GetName
+ ${If} ${Errors}
+ StrCpy $Is_Admin 1
+ Return
+ ${EndIf}
+
+ Pop $UserName
+ UserInfo::GetAccountType
+ Pop $R0
+ ${Switch} $R0
+ ${Case} "Admin"
+ ${Case} "Power"
+ StrCpy $Is_Admin 1
+ ${Break}
+ ${Default}
+ StrCpy $Is_Admin 0
+ ${Break}
+ ${EndSwitch}
+
+FunctionEnd
+
+Function GetVerInfo
+
+ IfFileExists "$PLUGINSDIR\version-info" end_dl_ver_info 0
+ DetailPrint $(VerInfo_DL_Msg)
+ inetc::get /timeout 30000 /resume "" /silent ${VERSION_FILE_URL} "$PLUGINSDIR\version-info" /end
+ Pop $R0
+ StrCmp $R0 OK +2
+ DetailPrint $(VerInfo_DL_Failed)
+
+ end_dl_ver_info:
+
+FunctionEnd
+
+Function LoadPreviousSettings
+
+ ;MPlayer codecs section doesn't use Memento so we need to restore it manually
+ ReadRegDWORD $R0 HKLM "${SMPLAYER_REG_KEY}" "Installed_Codecs"
+ ${If} $R0 == 1
+ !insertmacro SelectSection ${SecCodecs}
+ ${EndIf}
+
+ ;Gets start menu folder name
+ !insertmacro MUI_STARTMENU_GETFOLDER "SMP_SMenu" $SMPlayer_StartMenuFolder
+
+ ${MementoSectionRestore}
+
+FunctionEnd
+
+Function PageReinstall
+
+ ${If} $Previous_Version == ""
+ ${OrIf} $SMPlayer_Path == ""
+ Abort
+ ${EndIf}
+
+ nsDialogs::Create /NOUNLOAD 1018
+ Pop $Dialog_Reinstall
+
+ nsDialogs::SetRTL $(^RTL)
+
+ !insertmacro MUI_HEADER_TEXT $(Reinstall_Header_Text) $(Reinstall_Header_SubText)
+
+ ${NSD_CreateLabel} 0 0 225u 8u $(Reinstall_Msg1)
+
+ ${NSD_CreateText} 10u 15u 290u 14u "$SMPlayer_Path"
+ Pop $R0
+
+ ${NSD_CreateLabel} 0 40u 100u 8u $(Reinstall_Msg2)
+
+ ${NSD_CreateRadioButton} 10u 58u 200u 8u $(Reinstall_Overwrite)
+ Pop $Reinstall_OverwriteButton
+ ${NSD_CreateRadioButton} 10u 73u 200u 8u $(Reinstall_Uninstall)
+ Pop $Reinstall_UninstallButton
+
+ ${NSD_CreateCheckBox} 0 90u 100% 8u $(Reinstall_Msg4)
+ Pop $Reinstall_ChgSettings
+
+ ${NSD_CreateLabel} 0 115u 100% 16u
+ Pop $Reinstall_Message
+
+ SendMessage $Reinstall_OverwriteButton ${BM_SETCHECK} 1 0
+ EnableWindow $R0 0
+
+ ${If} $Reinstall_ChgSettings_State == 1
+ SendMessage $Reinstall_ChgSettings ${BM_SETCHECK} 1 0
+ ${Endif}
+
+ ${NSD_OnClick} $Reinstall_OverwriteButton PageReinstallUpdate
+ ${NSD_OnClick} $Reinstall_UninstallButton PageReinstallUpdate
+ ${NSD_OnClick} $Reinstall_ChgSettings PageReinstallUpdate
+
+ Call PageReinstallUpdate
+
+ StrCpy $Reinstall_Uninstall 1
+
+ nsDialogs::Show
+
+FunctionEnd
+
+Function PageReinstallLeave
+
+ ${NSD_GetState} $Reinstall_OverwriteButton $Reinstall_OverwriteButton_State
+ ${NSD_GetState} $Reinstall_UninstallButton $Reinstall_UninstallButton_State
+ ${NSD_GetState} $Reinstall_ChgSettings $Reinstall_ChgSettings_State
+
+FunctionEnd
+
+Function PageReinstallUpdate
+
+ ${NSD_GetState} $Reinstall_OverwriteButton $Reinstall_OverwriteButton_State
+ ${NSD_GetState} $Reinstall_UninstallButton $Reinstall_UninstallButton_State
+ ${NSD_GetState} $Reinstall_ChgSettings $Reinstall_ChgSettings_State
+
+ ${If} $Reinstall_OverwriteButton_State == 1
+
+ EnableWindow $Reinstall_ChgSettings 1
+
+ GetDlgItem $R0 $HWNDPARENT 1
+ ${If} $Reinstall_ChgSettings_State != 1
+ SendMessage $R0 ${WM_SETTEXT} 0 "STR:$(StartBtn)"
+ ${NSD_SetText} $Reinstall_Message $(Reinstall_Msg3_1)
+ ${ElseIf} $Reinstall_ChgSettings_State == 1
+ SendMessage $R0 ${WM_SETTEXT} 0 "STR:$(^NextBtn)"
+ ${NSD_SetText} $Reinstall_Message $(Reinstall_Msg3_2)
+ ${EndIf}
+
+ ${ElseIf} $Reinstall_UninstallButton_State == 1
+
+ EnableWindow $Reinstall_ChgSettings 0
+ ${NSD_SetState} $Reinstall_ChgSettings 0
+
+ GetDlgItem $R0 $HWNDPARENT 1
+ SendMessage $R0 ${WM_SETTEXT} 0 "STR:$(^UninstallBtn)"
+
+ ${NSD_SetText} $Reinstall_Message $(Reinstall_Msg3_3)
+
+ ${EndIf}
+
+FunctionEnd
+
+Function PageComponentsPre
+
+ ${If} $Reinstall_Uninstall == 1
+ ${AndIf} $Reinstall_ChgSettings_State != 1
+ Abort
+ ${EndIf}
+
+FunctionEnd
+
+Function PageDirectoryPre
+
+ ${If} $Reinstall_Uninstall == 1
+ ${AndIf} $Reinstall_ChgSettings_State != 1
+ Abort
+ ${EndIf}
+
+FunctionEnd
+
+Function PageStartMenuPre
+
+ ${If} $Reinstall_Uninstall == 1
+ ${AndIf} $Reinstall_ChgSettings_State != 1
+ Abort
+ ${EndIf}
+
+ ${IfNot} ${SectionIsSelected} ${SecStartMenuShortcut}
+ Abort
+ ${EndIf}
+
+FunctionEnd
+
+Function RegisterDefaultPrograms
+
+ WriteRegStr HKCR "MPlayerFileVideo\DefaultIcon" "" '"$INSTDIR\smplayer.exe",1'
+ WriteRegStr HKCR "MPlayerFileVideo\shell\enqueue" "" "Enqueue in SMPlayer"
+ WriteRegStr HKCR "MPlayerFileVideo\shell\enqueue\command" "" '"$INSTDIR\smplayer.exe" -add-to-playlist "%1"'
+ WriteRegStr HKCR "MPlayerFileVideo\shell\open" "FriendlyAppName" "SMPlayer Media Player"
+ WriteRegStr HKCR "MPlayerFileVideo\shell\open\command" "" '"$INSTDIR\smplayer.exe" "%1"'
+
+ ;Modify the list of extensions added in the MacroAllExtensions macro
+ WriteRegStr HKLM "${SMPLAYER_REG_KEY}\Capabilities" "ApplicationDescription" $(Application_Description)
+ WriteRegStr HKLM "${SMPLAYER_REG_KEY}\Capabilities" "ApplicationName" "SMPlayer"
+ WriteRegStr HKLM "Software\RegisteredApplications" "SMPlayer" "${SMPLAYER_REG_KEY}\Capabilities"
+ !insertmacro MacroAllExtensions WriteRegStrSupportedTypes
+
+FunctionEnd
+
+/*************************************** Uninstaller *******************************************/
+
+Section Uninstall
+
+ ;Make sure SMPlayer is installed from where the uninstaller is being executed.
+ IfFileExists $INSTDIR\smplayer.exe smplayer_installed
+ MessageBox MB_YESNO $(Uninstaller_NotInstalled) /SD IDNO IDYES smplayer_installed
+ Abort $(Uninstaller_Aborted)
+
+ smplayer_installed:
+
+ SetDetailsPrint textonly
+ DetailPrint $(Info_Rest_Assoc)
+ SetDetailsPrint listonly
+
+ ;Don't restore file associations if reinstalling
+ ${un.GetParameters} $R0
+ ${un.GetOptionsS} $R0 "/R" $R1
+
+ IfErrors 0 +2
+ ExecWait '"$INSTDIR\smplayer.exe" -uninstall'
+
+ !insertmacro MacroRemoveSMPlayer
+
+ Delete "$INSTDIR\${SMPLAYER_UNINST_EXE}"
+ RMDir "$INSTDIR"
+
+SectionEnd
+
+;--------------------------------
+;Required functions
+
+!insertmacro un.GetParameters
+!insertmacro un.GetOptions
+
+;--------------------------------
+;Uninstaller functions
+
+Function un.onInit
+
+ ;Check for admin (mimic old Inno Setup behavior)
+ Call un.CheckUserRights
+
+ ${If} $Is_Admin == 0
+ MessageBox MB_OK|MB_ICONSTOP $(Uninstaller_No_Admin)
+ Abort
+ ${EndIf}
+
+ ;Gets start menu folder name
+ !insertmacro MUI_STARTMENU_GETFOLDER "SMP_SMenu" $SMPlayer_StartMenuFolder
+
+ ;Get the stored language preference
+ !insertmacro MUI_UNGETLANGUAGE
+
+FunctionEnd
+
+Function un.CheckUserRights
+
+ ClearErrors
+ UserInfo::GetName
+ ${If} ${Errors}
+ StrCpy $Is_Admin 1
+ Return
+ ${EndIf}
+
+ Pop $UserName
+ UserInfo::GetAccountType
+ Pop $R0
+ ${Switch} $R0
+ ${Case} "Admin"
+ ${Case} "Power"
+ StrCpy $Is_Admin 1
+ ${Break}
+ ${Default}
+ StrCpy $Is_Admin 0
+ ${Break}
+ ${EndSwitch}
+
+FunctionEnd
+
+Function un.ConfirmPagePre
+
+ ${un.GetParameters} $R0
+
+ ${un.GetOptionsS} $R0 "/X" $R1
+ ${Unless} ${Errors}
+ Abort
+ ${EndUnless}
+
+FunctionEnd
+
+Function un.FinishPagePre
+
+ ${un.GetParameters} $R0
+
+ ${un.GetOptionsS} $R0 "/X" $R1
+ ${Unless} ${Errors}
+ Abort
+ ${EndUnless}
+
+FunctionEnd \ No newline at end of file
diff --git a/setup/translations/basque.nsh b/setup/translations/basque.nsh
index 04ac56a..472768d 100644
--- a/setup/translations/basque.nsh
+++ b/setup/translations/basque.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Basque" "Euskera"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "Ezartzailea jadanik lanean dago."
+${LangFileString} Installer_No_Admin "Administratzaile bezala saioa hasita egon behar duzu programa hau ezartzerakoan."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Lasterbideak"
+${LangFileString} MPlayerGroupTitle "MPlayer Osagaiak"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (beharrezkoa)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, elkarbanatutako liburutegiak, eta agiritza."
+
+${LangFileString} Section_DesktopShortcut "Mahigaina"
+${LangFileString} Section_DesktopShortcut_Desc "Sortu SMPlayer lasterbide bat mahigainean."
+
+${LangFileString} Section_StartMenu "Hasiera Menua"
+${LangFileString} Section_StartMenu_Desc "Sortu SMPlayer sarrera bat Hasiera Menuan."
+
+${LangFileString} Section_MPlayer "MPlayer (beharrezkoa)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; beharrezkoa irakurketarako."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; beharrezkoa irakurketarako. (Internet Elkarketa beharrezkoa da ezarpenerako)"
!endif
+${LangFileString} Section_MPlayerCodecs "Kodek Binarioak"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Aukerazko kodekak MPlayerrentzat."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Aukerazko kodekak MPlayerrentzat. (Internet Elkarketa beharrezkoa da ezarpenerako)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "MPlayer laguntzen duen programa bat erabili daiteke kodeatzeko edo eraldatzeko sostengatutako audio edo bideo jarioak."
+
+${LangFileString} Section_IconThemes "Ikono Gaiak"
+${LangFileString} Section_IconThemes_Desc "SMPlayer-entzako ikono gai gehigarriak."
+
+${LangFileString} Section_Translations "Hizkuntzak"
+${LangFileString} Section_Translations_Desc "SMPlayer-entzako Ez Ingelerazko hizkuntza agiriak."
+
+${LangFileString} MPlayer_Codec_Msg "Kodek binario paketeek jatorrizkoan ez dauden kodek sostengua gehitzen dute, RealVideo aldaera berrienak eta formato ez arrunt asko bezalakoak.$\nOhartu hauek ez direla beharrezkoak formato arruntenak irakurtzeko, DVD, MPEG-1/2/4, etab."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "MPlayer jeisten..."
+${LangFileString} MPlayer_DL_Retry "MPlayer ez da ongi ezarri. Berriro saiatu?"
+${LangFileString} MPlayer_DL_Failed "Hutsegitea MPlayer: '$R0'. jeisterakoan"
+${LangFileString} MPlayer_Inst_Failed "Hutsegitea MPlayer ezartzerakoan. MPlayer beharrezkoa da irakurketarako"
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "MPlayer kodekak jeisten..."
+${LangFileString} Codecs_DL_Retry "MPlayer kodekak ez dira ongi ezarri. Berriro saiatu?"
+${LangFileString} Codecs_DL_Failed "Hutsegitea MPlayer kodekak: '$R0'. jeisterakoan."
+${LangFileString} Codecs_Inst_Failed "Hutsegitea MPlayer kodekak ezartzerakoan."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Bertsio argibideak jeisten..."
+${LangFileString} VerInfo_DL_Failed "Hutsegitea bertsio argibideak jeisterakoan: '$R0'. Berezko bertsioa erabiltzen."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "Ezarpen hau administrari eskubidea duen erabiltzaileak bakarrik kendu dezake."
+${LangFileString} Uninstaller_Aborted "Kentzea erabiltzaileak utzita."
+${LangFileString} Uninstaller_NotInstalled "Ez da agertzen SMPlayer zuzenbidean ezarrita dagoenik '$INSTDIR'.$\r$\nJarraitu horrela ere (ez da gomendagarria)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer aurrealde-amaiera oso bat da MPlayer-entzat, ohinarrizko eginkizunetatik: Bideo, DVD, VCD irakurketatik, eginkizun aurreratuenetarainok: MPlayer iragazkiak, edl zerrenda, eta gehiago."
+
+; Misc
+${LangFileString} Info_Del_Files "Agiriak Ezabatzen..."
+${LangFileString} Info_Del_Registry "Erresgistro Giltzak Ezabatzen..."
+${LangFileString} Info_Del_Shortcuts "Lasterbideak Ezabatzen..."
+${LangFileString} Info_Rest_Assoc "Agiri elkarketak birrezartzen..."
+${LangFileString} Info_Files_Extract "Agiriak ateratzen..."
diff --git a/setup/translations/catalan.nsh b/setup/translations/catalan.nsh
index 3572fe7..f2d3be3 100644
--- a/setup/translations/catalan.nsh
+++ b/setup/translations/catalan.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Catalan" "Català"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/czech.nsh b/setup/translations/czech.nsh
index 9ba7aa8..56bf72a 100644
--- a/setup/translations/czech.nsh
+++ b/setup/translations/czech.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Czech" "Čeština"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "Instalátor již běží."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "Instalaci tohoto programu je potřeba provést s právy administrátora."
+${LangFileString} Installer_Is_Running "Instalátor již běží."
+${LangFileString} Installer_No_Admin "Instalaci tohoto programu je potřeba provést s právy administrátora."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "Binární kodeky podporují formáty, které zatím nejsou implementovány nativně, např. novější varianty RealVideo a jiné málo používané formáty.$\nPro většinu běžných formátů nejsou potřeba (DVD, MPEG-1/2/4, apod.)."
+${LangFileString} ShortcutGroupTitle "Zástupci"
+${LangFileString} MPlayerGroupTitle "Součásti MPlayeru"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Stahuji MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer se nepovedlo nainstalovat. Zkusit znovu?"
- ${LangFileString} MPLAYER_DL_FAILED "Nepovedlo se stáhnout MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Nepovedlo se nainstalovat MPlayer. MPlayer je potřebný pro přehrávání."
+${LangFileString} Section_SMPlayer "SMPlayer (vyžadován)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, sdílené knihovny a dokumentace."
+
+${LangFileString} Section_DesktopShortcut "Plocha"
+${LangFileString} Section_DesktopShortcut_Desc "Vytvoří zástupce SMPlayeru na ploše."
+
+${LangFileString} Section_StartMenu "Nabídka Start"
+${LangFileString} Section_StartMenu_Desc "Vytvoří zástupce SMPlayeru v nabídce Start."
+
+${LangFileString} Section_MPlayer "MPlayer (vyžadován)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; vyžadován pro přehrávání."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; vyžadován pro přehrávání. (Pro instalaci je potřeba připojení k Internetu)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binární kodeky"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Přídavné kodeky MPlayeru."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Přídavné kodeky MPlayeru. (Pro instalaci je potřeba připojení k Internetu)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Témata ikon"
+${LangFileString} Section_IconThemes_Desc "Přídavná témata ikon pro SMPlayer."
+
+${LangFileString} Section_Translations "Lokalizace"
+${LangFileString} Section_Translations_Desc "Neanglické lokalizace."
+
+${LangFileString} MPlayer_Codec_Msg "Binární kodeky podporují formáty, které zatím nejsou implementovány nativně, např. novější varianty RealVideo a jiné málo používané formáty.$\nPro většinu běžných formátů nejsou potřeba (DVD, MPEG-1/2/4, apod.)."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Stahuji MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer se nepovedlo nainstalovat. Zkusit znovu?"
+${LangFileString} MPlayer_DL_Failed "Nepovedlo se stáhnout MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Nepovedlo se nainstalovat MPlayer. MPlayer je potřebný pro přehrávání."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Instaluji kodeky MPlayeru..."
-${LangFileString} CODECS_DL_RETRY "Kodeky MPlayeru se nepovedlo nainstalovat. Zkusit znovu?"
-${LangFileString} CODECS_DL_FAILED "Nepovedlo se stáhnout kodeky MPlayeru: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Nepovedlo se nainstalovat kodeky MPlayeru."
+${LangFileString} Codecs_DL_Msg "Instaluji kodeky MPlayeru..."
+${LangFileString} Codecs_DL_Retry "Kodeky MPlayeru se nepovedlo nainstalovat. Zkusit znovu?"
+${LangFileString} Codecs_DL_Failed "Nepovedlo se stáhnout kodeky MPlayeru: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Nepovedlo se nainstalovat kodeky MPlayeru."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Stahuji informace o verzích..."
-${LangFileString} VERINFO_DL_FAILED "Nepovedlo se stáhnout informace o verzích: '$R0'. Užita výchozí verze."
+${LangFileString} VerInfo_DL_Msg "Stahuji informace o verzích..."
+${LangFileString} VerInfo_DL_Failed "Nepovedlo se stáhnout informace o verzích: '$R0'. Užita výchozí verze."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "Odinstalaci je potřeba provést s právy administrátora."
-${LangFileString} UNINSTALL_ABORTED "Odinstalace přerušena uživatelem."
-${LangFileString} SMPLAYER_NOT_INSTALLED "V adresáři '$INSTDIR' není SMPlayer nainstalován .$\r$\nPokračovat (nedoporučeno)?"
+${LangFileString} Uninstaller_No_Admin "Odinstalaci je potřeba provést s právy administrátora."
+${LangFileString} Uninstaller_Aborted "Odinstalace přerušena uživatelem."
+${LangFileString} Uninstaller_NotInstalled "V adresáři '$INSTDIR' není SMPlayer nainstalován .$\r$\nPokračovat (nedoporučeno)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer je kompletní frontend pro MPlayer, podporuje vše od základních funkcí jako přehrávání videí, DVD, VCD až po pokročilé funkce jako filtry MPlayeru, edl a více." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer je kompletní frontend pro MPlayer, podporuje vše od základních funkcí jako přehrávání videí, DVD, VCD až po pokročilé funkce jako filtry MPlayeru, edl a více."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/danish.nsh b/setup/translations/danish.nsh
index 2656af5..5e43698 100644
--- a/setup/translations/danish.nsh
+++ b/setup/translations/danish.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Danish" "Dansk"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/dutch.nsh b/setup/translations/dutch.nsh
index b6be474..efaa3f7 100644
--- a/setup/translations/dutch.nsh
+++ b/setup/translations/dutch.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Dutch" "Nederlands"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/english.nsh b/setup/translations/english.nsh
index 88f35f7..f36badb 100644
--- a/setup/translations/english.nsh
+++ b/setup/translations/english.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "English" "English"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer Codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/finnish.nsh b/setup/translations/finnish.nsh
index 1e5984d..5b264eb 100644
--- a/setup/translations/finnish.nsh
+++ b/setup/translations/finnish.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Finnish" "Suomi"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/french.nsh b/setup/translations/french.nsh
index 4a3466b..c9aa190 100644
--- a/setup/translations/french.nsh
+++ b/setup/translations/french.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "French" "Français"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/german.nsh b/setup/translations/german.nsh
index fa97298..104815b 100644
--- a/setup/translations/german.nsh
+++ b/setup/translations/german.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "German" "Deutsch"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "Installationsprogramm läuft bereits."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "Administratorrechte sind nötig um dieses Programm zu installieren."
+${LangFileString} Installer_Is_Running "Das Installationsprogramm läuft bereits."
+${LangFileString} Installer_No_Admin "Es sind Administratorrechte nötig, um dieses Programm zu installieren."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "Binäre Codec-Pakete werden eingesetzt für Codecs, die noch nicht nativ implementiert sind, wie neuere Varianten von RealVideo und viele ungewöhnliche Formate.$\nAchtung, nicht notwendig um die gängisten Formate wiederzugeben, wie DVD, MPEG-1/2/4 , etc."
+${LangFileString} ShortcutGroupTitle "Verknüpfung"
+${LangFileString} MPlayerGroupTitle "MPlayer-Komponenten"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Lade MPlayer herunter..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer wurde nicht erfolgreich installiert. Wiederholung?"
- ${LangFileString} MPLAYER_DL_FAILED "Fehler beim Herunterladen von MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Fehler beim Installieren von MPlayer. MPlayer ist erforderlich für die Wiedergabe."
+${LangFileString} Section_SMPlayer "SMPlayer (erforderlich)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, dynamische Bibliotheken und Dokumentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Erstellt eine Verknüpfung für SMPlayer auf dem Desktop."
+
+${LangFileString} Section_StartMenu "Startmenü"
+${LangFileString} Section_StartMenu_Desc "Erstellt einen Startmenü-Eintrag für SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (erforderlich)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer – benötigt für die Wiedergabe."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer – benötigt für die Wiedergabe. (Internetverbindung benötigt für Installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binärcodecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optionale Codecs für MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optionale Codecs für MPlayer. (Internetverbindung benötigt für Installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Symboldesigns"
+${LangFileString} Section_IconThemes_Desc "Weitere Symboldesigns für SMPlayer."
+
+${LangFileString} Section_Translations "Lokalisierungen"
+${LangFileString} Section_Translations_Desc "Nicht englische Lokalisierungen."
+
+${LangFileString} MPlayer_Codec_Msg "Binärcodec-Pakete werden eingesetzt für Codecs, die noch nicht nativ implementiert sind – wie neuere Varianten von RealVideo und viele ungewöhnliche Formate.$\nHinweis: Die Pakete sind nicht notwendig, um die gängigsten Formate wiederzugeben (DVD, MPEG-1/2/4, etc.)"
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "MPlayer herunterladen …"
+${LangFileString} MPlayer_DL_Retry "MPlayer ist nicht erfolgreich installiert worden. Erneut versuchen?"
+${LangFileString} MPlayer_DL_Failed "Fehler beim Herunterladen von MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Fehler beim Installieren von MPlayer. MPlayer ist erforderlich für die Wiedergabe."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Lade MPlayer Codecs runter..."
-${LangFileString} CODECS_DL_RETRY "MPlayer-Codecs wurden nicht erfolgreich installiert.. Wiederholung?"
-${LangFileString} CODECS_DL_FAILED "Fehler beim Herunterladen der MPlayer Codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Fehler beim Installieren der MPlayer Codecs."
+${LangFileString} Codecs_DL_Msg "MPlayer-Codecs herunterladen …"
+${LangFileString} Codecs_DL_Retry "Die MPlayer-Codecs sind nicht erfolgreich installiert worden. Erneut versuchen?"
+${LangFileString} Codecs_DL_Failed "Fehler beim Herunterladen der MPlayer-Codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Fehler beim Installieren der MPlayer-Codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Lade Informationen der Version runter..."
-${LangFileString} VERINFO_DL_FAILED "Fehler beim Herunterladen der Versionsinfo: '$R0'. Standard-Version wird genommen."
+${LangFileString} VerInfo_DL_Msg "Informationen der Version herunterladen …"
+${LangFileString} VerInfo_DL_Failed "Fehler beim Herunterladen der Versionsinfo: '$R0'. Standard-Version wird genommen."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "Administratorrechte sind nötig um dieses Programm zu deinstallieren."
-${LangFileString} UNINSTALL_ABORTED "Deinstallieren vom Benutzer abgebrochen."
-${LangFileString} SMPLAYER_NOT_INSTALLED "Es scheint, das SMPlayer nicht in dem Verzeichnis installiert ist '$INSTDIR'.$\r$\nTrotzdem fortfahren (nicht empfohlen)?"
+${LangFileString} Uninstaller_No_Admin "Es sind Administratorrechte nötig, um dieses Programm zu deinstallieren."
+${LangFileString} Uninstaller_Aborted "Die Deinstallation ist vom Benutzer abgebrochen worden."
+${LangFileString} Uninstaller_NotInstalled "Es scheint, dass SMPlayer nicht im Verzeichnis '$INSTDIR' installiert ist.$\r$\nTrotzdem fortfahren (nicht empfohlen)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer ist ein komplettes Front-End für MPlayer, von grundlegenden Funktionen, wie das Abspielen von Videos, DVDs, VCDs, bis zu erweiterten Funktionen wie die Unterstützung für MPlayer Filter, edl-Listen und vieles mehr.."
+${LangFileString} Application_Description "SMPlayer ist ein komplettes grafische Oberfläche für MPlayer, von grundlegenden Funktionen, wie das Abspielen von Videos, DVDs, VCDs, bis zu erweiterten Funktionen, wie die Unterstützung für MPlayer-Filter, edl-Listen und vielem mehr."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/hebrew.nsh b/setup/translations/hebrew.nsh
index a43844c..19671ea 100644
--- a/setup/translations/hebrew.nsh
+++ b/setup/translations/hebrew.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Hebrew" "עברית"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/hungarian.nsh b/setup/translations/hungarian.nsh
index 4afc958..f4417cd 100644
--- a/setup/translations/hungarian.nsh
+++ b/setup/translations/hungarian.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Hungarian" "Magyar"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "A telepítő már fut."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "Rendszergazdaként kell bejelentkeznie a program telepítéséhez."
+${LangFileString} Installer_Is_Running "A telepítő már fut."
+${LangFileString} Installer_No_Admin "Rendszergazdaként kell bejelentkeznie a program telepítéséhez."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "A bináris kodek csomagok támogatást nyújtanak natívan még nem támogatott kodekekhez, mint pl. az újabb RealVideo variánsok és sok ritka formátum.$\nNem szükségesek a legtöbb gyakori formátum lejátszásához, mint a DVD-k, MPEG-1/2/4, stb."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Az MPlayer letöltése..."
- ${LangFileString} MPLAYER_DL_RETRY "Az MPlayer telepítése nem sikerült. Újra próbáljam?"
- ${LangFileString} MPLAYER_DL_FAILED "Az MPlayer letöltése nem sikerült: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Az MPlayer telepítése nem sikerült. Az MPlayerre szükség van a lejátszáshoz."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "A bináris kodek csomagok támogatást nyújtanak natívan még nem támogatott kodekekhez, mint pl. az újabb RealVideo variánsok és sok ritka formátum.$\nNem szükségesek a legtöbb gyakori formátum lejátszásához, mint a DVD-k, MPEG-1/2/4, stb."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Az MPlayer letöltése..."
+${LangFileString} MPlayer_DL_Retry "Az MPlayer telepítése nem sikerült. Újra próbáljam?"
+${LangFileString} MPlayer_DL_Failed "Az MPlayer letöltése nem sikerült: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Az MPlayer telepítése nem sikerült. Az MPlayerre szükség van a lejátszáshoz."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "MPlayer kodekek letöltése..."
-${LangFileString} CODECS_DL_RETRY "Az MPlayer kodekek telepítése nem sikerült. Újra próbáljam?"
-${LangFileString} CODECS_DL_FAILED "Az MPlayer kodekek letöltése nem sikerült: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Az MPlayer kodekek telepítése nem sikerült."
+${LangFileString} Codecs_DL_Msg "MPlayer kodekek letöltése..."
+${LangFileString} Codecs_DL_Retry "Az MPlayer kodekek telepítése nem sikerült. Újra próbáljam?"
+${LangFileString} Codecs_DL_Failed "Az MPlayer kodekek letöltése nem sikerült: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Az MPlayer kodekek telepítése nem sikerült."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Verzió információ letöltése..."
-${LangFileString} VERINFO_DL_FAILED "Verzió információ letöltése nem sikerült: '$R0'. Alapértelmezett verzió használata."
+${LangFileString} VerInfo_DL_Msg "Verzió információ letöltése..."
+${LangFileString} VerInfo_DL_Failed "Verzió információ letöltése nem sikerült: '$R0'. Alapértelmezett verzió használata."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "A program eltávolításához rendszergazda jogosultság szükséges."
-${LangFileString} UNINSTALL_ABORTED "Az eltávolítást a felhasználó megszakította."
-${LangFileString} SMPLAYER_NOT_INSTALLED "Nem úgy néz ki, mint ha az SMPlayer ebbe a könyvtárba lett volna telepítve: '$INSTDIR'.$\r$\nMégis folytassam (nem ajánlott)?"
+${LangFileString} Uninstaller_No_Admin "A program eltávolításához rendszergazda jogosultság szükséges."
+${LangFileString} Uninstaller_Aborted "Az eltávolítást a felhasználó megszakította."
+${LangFileString} Uninstaller_NotInstalled "Nem úgy néz ki, mint ha az SMPlayer ebbe a könyvtárba lett volna telepítve: '$INSTDIR'.$\r$\nMégis folytassam (nem ajánlott)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "Az SMPlayer egy komplett felület az MPlayerhez, mindent támogat az alap funkcióktól kezdve, mint a videók, DVDk, VCDk lejátszása, haladó funkciókig, mint az MPlayer szűrők, edl listák és még sok más."
+${LangFileString} Application_Description "Az SMPlayer egy komplett felület az MPlayerhez, mindent támogat az alap funkcióktól kezdve, mint a videók, DVDk, VCDk lejátszása, haladó funkciókig, mint az MPlayer szűrők, edl listák és még sok más."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/italian.nsh b/setup/translations/italian.nsh
index 74c55d7..ee6f64a 100644
--- a/setup/translations/italian.nsh
+++ b/setup/translations/italian.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Italian" "Italiano"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "Il programma di installazione è già in esecuzione."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "Devi essere autenticato come amministratore per installare questo programma."
+${LangFileString} Installer_Is_Running "Il programma di installazione è già in esecuzione."
+${LangFileString} Installer_No_Admin "Devi essere autenticato come amministratore per installare questo programma."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "I pacchetti di codec binari forniscono il supporto per i codec che non sono stati ancora implementati nativamente, per esempio per le varianti di RealVideo e anche un sacco di formati poco utilizzati.$\nNota che non sono richiesti per riprodurre i formati più comuni come DVD, MPEG-1/2/4, ecc."
+${LangFileString} ShortcutGroupTitle "Collegamenti"
+${LangFileString} MPlayerGroupTitle "Componenti di MPlayer"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Sto scaricando MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Scaricamento di MPlayer fallito: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Installazione di MPlayer fallita. MPlayer è un componente necessario per la riproduzione multimediale."
+${LangFileString} Section_SMPlayer "SMPlayer (essenziale)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, librerie condivise, e documentazione."
+
+${LangFileString} Section_DesktopShortcut "Scrivania"
+${LangFileString} Section_DesktopShortcut_Desc "Crea un collegamento a SMPlayer sulla scrivania."
+
+${LangFileString} Section_StartMenu "Menu di avvio"
+${LangFileString} Section_StartMenu_Desc "Crea un elemento nel menu di avvio per SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (essenziale)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; essenziale per la riproduzione."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; essenziale per la riproduzione. (Connessione a Internet richiesta per l'installazione)"
!endif
+${LangFileString} Section_MPlayerCodecs "Codec binari"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Codec aggiuntivi per MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Codec aggiuntivi per MPlayer. (Connessione a Internet richiesta per l'installazione)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Temi di icone"
+${LangFileString} Section_IconThemes_Desc "Temi di icone aggiuntivi per SMPlayer."
+
+${LangFileString} Section_Translations "Localizzazioni"
+${LangFileString} Section_Translations_Desc "Localizzazioni non Inglesi."
+
+${LangFileString} MPlayer_Codec_Msg "I pacchetti di codec binari forniscono il supporto per i codec che non sono stati ancora implementati nativamente, per esempio per le varianti di RealVideo e anche un sacco di formati poco utilizzati.$\nNota che non sono richiesti per riprodurre i formati più comuni come DVD, MPEG-1/2/4, ecc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Sto scaricando MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer non è stato completamente installato. Riprova?"
+${LangFileString} MPlayer_DL_Failed "Scaricamento di MPlayer fallito: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Installazione di MPlayer fallita. MPlayer è un componente necessario per la riproduzione multimediale."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Sto scaricando i codec di MPlayer..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Scaricamento dei codec di MPlayer fallito: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Installazione dei codec di MPlayer fallita."
+${LangFileString} Codecs_DL_Msg "Sto scaricando i codec di MPlayer..."
+${LangFileString} Codecs_DL_Retry "I codec di MPlayer non sono stati completamente installati. Riprova?"
+${LangFileString} Codecs_DL_Failed "Scaricamento dei codec di MPlayer fallito: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Installazione dei codec di MPlayer fallita."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Sto scaricando le informazioni di versione..."
-${LangFileString} VERINFO_DL_FAILED "Scaricamento delle informazioni di versione fallito: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Sto scaricando le informazioni di versione..."
+${LangFileString} VerInfo_DL_Failed "Scaricamento delle informazioni di versione fallito: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "La disinstallazione può essere effettuata solo da un utente con permessi amministrativi."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "Sembra che SMPlayer non sia installato nel direttorio '$INSTDIR'.$\r$\nContinua comunque (non raccomandato)?"
+${LangFileString} Uninstaller_No_Admin "La disinstallazione può essere effettuata solo da un utente con permessi amministrativi."
+${LangFileString} Uninstaller_Aborted "Disinstallazione annullata dall'utente."
+${LangFileString} Uninstaller_NotInstalled "Sembra che SMPlayer non sia installato nella cartella '$INSTDIR'.$\r$\nContinua comunque (non raccomandato)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer è un'interfaccia completa per MPlayer, fornisce funzionalità di base come la riproduzione di video, DVD, VCD e funzionalità più avanzate come il supporto dei filtri di MPlayer, le liste edl e altro ancora."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/japanese.nsh b/setup/translations/japanese.nsh
new file mode 100644
index 0000000..5b30e75
--- /dev/null
+++ b/setup/translations/japanese.nsh
@@ -0,0 +1,98 @@
+;Language: Japanese (1041)
+;Japanese language strings for the Windows SMPlayer NSIS installer.
+;
+;Save file as UTF-8 w/ BOM
+;
+
+!insertmacro LANGFILE "Japanese" "日本語"
+
+; Startup
+${LangFileString} Installer_Is_Running "インストーラーは既に実行中です。"
+${LangFileString} Installer_No_Admin "このプログラムのインストール時には管理者としてログインする必要があります。"
+
+; Components Page
+${LangFileString} ShortcutGroupTitle "ショートカット"
+${LangFileString} MPlayerGroupTitle "MPlayer コンポーネント"
+
+${LangFileString} Section_SMPlayer "SMPlayer (必須)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer、共有ライブラリ、およびドキュメントです。"
+
+${LangFileString} Section_DesktopShortcut "デスクトップ"
+${LangFileString} Section_DesktopShortcut_Desc "デスクトップに SMPlayer へのショートカットを作成します。"
+
+${LangFileString} Section_StartMenu "スタートメニュー"
+${LangFileString} Section_StartMenu_Desc "SMPlayer の [スタート] メニュー エントリを作成します。"
+
+${LangFileString} Section_MPlayer "MPlayer (必須)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "再生のために必要な MPlayer です。"
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "再生のために必要な MPlayer です。(インストールにはインターネット接続が必要です)"
+!endif
+
+${LangFileString} Section_MPlayerCodecs "バイナリ コーデック"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "MPlayer のオプション コーデックです。"
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "MPlayer のオプション コーデックです。(インストールにはインターネット接続が必要です)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "アイコン テーマ"
+${LangFileString} Section_IconThemes_Desc "SMPlayer の追加アイコン テーマです。"
+
+${LangFileString} Section_Translations "ローカライズ"
+${LangFileString} Section_Translations_Desc "非英語のローカライズです。"
+
+${LangFileString} MPlayer_Codec_Msg "バイナリ コーデック パッケージは新しい RealVideo 派生や多くの希少なフォーマットなど、まだ自然には実装されていないコーデックへのサポートを追加します。$\nDVD、MPEG-1/2/4などの最も一般的なフォーマットの再生には必要でないことにご注意ください。"
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "スタート"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "MPlayer をダウンロードしています..."
+${LangFileString} MPlayer_DL_Retry "MPlayer は正常にインストールされませんでした。再試行しますか?"
+${LangFileString} MPlayer_DL_Failed "MPlayer のダウンロードに失敗しました: '$R0'。"
+${LangFileString} MPlayer_Inst_Failed "MPlayer のインストールに失敗しました。MPlayer は再生に必要です。"
+
+; Codecs Section
+${LangFileString} Codecs_DL_Msg "MPlayer コーデックをダウンロードしています..."
+${LangFileString} Codecs_DL_Retry "MPlayer コーデックは正常にインストールされませんでした。再試行しますか?"
+${LangFileString} Codecs_DL_Failed "MPlayer コーデックのダウンロードに失敗しました: '$R0'。"
+${LangFileString} Codecs_Inst_Failed "MPlayer コーデックのインストールに失敗しました。"
+
+; Version information
+${LangFileString} VerInfo_DL_Msg "バージョン情報をダウンロードしています..."
+${LangFileString} VerInfo_DL_Failed "バージョン情報のダウンロードに失敗しました: '$R0'。既定のバージョンを使用しています。"
+
+; Uninstaller
+${LangFileString} Uninstaller_No_Admin "このインストールは管理者特権のあるユーザーによってのみアンインストールできます。"
+${LangFileString} Uninstaller_Aborted "アンインストールはユーザーによって注視されました。"
+${LangFileString} Uninstaller_NotInstalled "ディレクトリ '$INSTDIR' に SMPlayer がインストールされているように見えません。$\r$\nこのまま続行しますか (推奨されません)?"
+
+; Vista & Later Default Programs Registration
+${LangFileString} Application_Description "SMPlayer はビデオ、DVD、VCD の再生のような基本的な機能から MPlayer フィルター、edl リストなどへのサポートのような高度な機能まで、MPlayer の完全なフロントエンドです。"
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/korean.nsh b/setup/translations/korean.nsh
new file mode 100644
index 0000000..8dcb301
--- /dev/null
+++ b/setup/translations/korean.nsh
@@ -0,0 +1,98 @@
+;Language: Korean (1042)
+;Korean language strings for the Windows SMPlayer NSIS installer.
+;
+;Save file as UTF-8 w/ BOM
+;
+
+!insertmacro LANGFILE "Korean" "한국어"
+
+; Startup
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
+
+; Components Page
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
+
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
+; Codecs Section
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
+
+; Version information
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
+
+; Uninstaller
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+
+; Vista & Later Default Programs Registration
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/norwegian.nsh b/setup/translations/norwegian.nsh
index dbc61f6..2b6e043 100644
--- a/setup/translations/norwegian.nsh
+++ b/setup/translations/norwegian.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Norwegian" "Norwegian"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/polish.nsh b/setup/translations/polish.nsh
index 75d7bd9..a87f3b8 100644
--- a/setup/translations/polish.nsh
+++ b/setup/translations/polish.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Polish" "Polski"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "Instalator już jest uruchomiony."
+${LangFileString} Installer_No_Admin "Do instalacji tego programu wymagane są uprawnienia administratora."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Skróty"
+${LangFileString} MPlayerGroupTitle "Komponenty MPlayera"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (wymagane)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, biblioteki współdzielone, dokumentacja."
+
+${LangFileString} Section_DesktopShortcut "Pulpit"
+${LangFileString} Section_DesktopShortcut_Desc "Tworzy skrót do programu na pulpicie."
+
+${LangFileString} Section_StartMenu "Menu Start"
+${LangFileString} Section_StartMenu_Desc "Tworzy skrót do programu w Menu Start."
+
+${LangFileString} Section_MPlayer "MPlayer (wymagane)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; wymagany do odtwarzania filmów."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; wymagany do odtwarzania filmów. (Wymagane połączenie z internetem)"
!endif
+${LangFileString} Section_MPlayerCodecs "Kodeki"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Opcjonalne kodeki do MPlayera."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Opcjonalne kodeki do MPlayera. (Wymagane połączenie z internetem)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Zesatwy Ikon"
+${LangFileString} Section_IconThemes_Desc "Dodatkowe zestawy ikon do SMPlayera."
+
+${LangFileString} Section_Translations "Tłumaczenia"
+${LangFileString} Section_Translations_Desc "Tłumaczenia na inne języki."
+
+${LangFileString} MPlayer_Codec_Msg "Paczka z kodekami dodaje wsparcie dla kodeków, które nie są jeszcze natywnie wspierane, np. nowsze warianty RealVideo, oraz wiele mniej znanych formatów.$\nProszę mieć na uwadze, że paczka nie jest wymagana do odtworzenia popularnych formatów, takich jak DVD, MPEG-1/2/4, itp."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Pobieram MPlayera..."
+${LangFileString} MPlayer_DL_Retry "Instalacja MPlayera nie powiodła się. Ponowić próbę?"
+${LangFileString} MPlayer_DL_Failed "Nie udało się pobrać MPlayera: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Nie udało się zainstalować MPlayera. Bez MPlayera odtwarzanie filmów jest nie możliwe."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Pobieram kodeki do MPlayera..."
+${LangFileString} Codecs_DL_Retry "Instalacja Kodeków MPlayera nie powiodła się. Ponowić próbę?"
+${LangFileString} Codecs_DL_Failed "Nie udało się pobrać Kodeków MPlayera: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Nie udało się zainstalować Kodeków MPlayera."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Pobieram informacje o wersji..."
+${LangFileString} VerInfo_DL_Failed "Nie udało się pobrac informacji o wersji: '$R0'. Użyta zostanie wersja domyślna."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "Aplikacja może być usunięta tylko przez osobe z uprawnieniami Administratora."
+${LangFileString} Uninstaller_Aborted "Usuwanie anulowane przez użytkownika."
+${LangFileString} Uninstaller_NotInstalled "Nie wygląda na to, aby SMPlayer został zainstalowany w katalogu '$INSTDIR'.$\r$\nKontynuować mimo to (nie zalecane)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer jest graficzną nakładką programu MPlayer, z prostymi funkcjami, takimi jak odtwarzanie wideo, DVD i VCD oraz z bardziej zaawansowanymi funkcjami np: obsługa filtrów MPlayera i wiele innych."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/portuguese.nsh b/setup/translations/portuguese.nsh
index 23e4f8b..128efd8 100644
--- a/setup/translations/portuguese.nsh
+++ b/setup/translations/portuguese.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Portuguese" "Português"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "O instalador já está em execução."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "Tem que iniciar a sessão como administrador para instalar este programa."
+${LangFileString} Installer_Is_Running "O instalador já está em execução."
+${LangFileString} Installer_No_Admin "Tem que iniciar a sessão como administrador para instalar este programa."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "O pacote de codecs binários adiciona suporte para os codecs que ainda não foram implementados, tais como as novas variantes RealVideo e alguns formatos não usuais.$\nNote que estes não serão necessários para os formatos mais comuns como DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Atalhos"
+${LangFileString} MPlayerGroupTitle "Componentes MPlayer"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Transferindo MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer não foi correctamente instalado. Tentar novamente?"
- ${LangFileString} MPLAYER_DL_FAILED "Falha ao transferir MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Falha ao instalar MPlayer. O MPlayer é necessário para reproduzir."
+${LangFileString} Section_SMPlayer "SMPlayer (obrigatório)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, bibliotecas partilhadas e documentação."
+
+${LangFileString} Section_DesktopShortcut "Ambiente de Trabalho"
+${LangFileString} Section_DesktopShortcut_Desc "Cria um atalho para o SMPlayer no ambiente de trabalho."
+
+${LangFileString} Section_StartMenu "Menu Iniciar"
+${LangFileString} Section_StartMenu_Desc "Cria uma entrada no Menu Iniciar para o SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (obrigatório)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; necessário para a reprodução."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; necessário para a reprodução. (Precisa de uma ligação à Internet)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binários dos Codificadores"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Codificadores opcionais para o MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Codificadores opcionais para o MPlayer. (Precisa de uma ligação à Internet)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Conjuntos de Ícones"
+${LangFileString} Section_IconThemes_Desc "Ícones adicionais para o SMPlayer."
+
+${LangFileString} Section_Translations "Localizações"
+${LangFileString} Section_Translations_Desc "Localizações Diferentes de Inglês."
+
+${LangFileString} MPlayer_Codec_Msg "O pacote de codecs binários adiciona suporte para os codecs que ainda não foram implementados, tais como as novas variantes RealVideo e alguns formatos não usuais.$\nNote que estes não serão necessários para os formatos mais comuns como DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Transferindo MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer não foi correctamente instalado. Tentar novamente?"
+${LangFileString} MPlayer_DL_Failed "Falha ao transferir MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Falha ao instalar MPlayer. O MPlayer é necessário para reproduzir."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Transferindo codecs MPlayer..."
-${LangFileString} CODECS_DL_RETRY "Os codecs MPlayer não foram correctamente instalados. Tentar novamente?"
-${LangFileString} CODECS_DL_FAILED "Falha ao transferir os codecs MPlayer: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Falha ao instalar os codecs MPlayer."
+${LangFileString} Codecs_DL_Msg "Transferindo codecs MPlayer..."
+${LangFileString} Codecs_DL_Retry "Os codecs MPlayer não foram correctamente instalados. Tentar novamente?"
+${LangFileString} Codecs_DL_Failed "Falha ao transferir os codecs MPlayer: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Falha ao instalar os codecs MPlayer."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Transferindo informações sobre a versão..."
-${LangFileString} VERINFO_DL_FAILED "Falha ao transferir informações sobre a versão: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Transferindo informações sobre a versão..."
+${LangFileString} VerInfo_DL_Failed "Falha ao transferir informações sobre a versão: '$R0'. Utilizando versão por omissão."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "Esta aplicação apenas pode ser desinstalada no modo de administrador."
-${LangFileString} UNINSTALL_ABORTED "Desinstalação cancelada pelo utilizador."
-${LangFileString} SMPLAYER_NOT_INSTALLED "Parece que o SMPlayer não está instalado no directório '$INSTDIR'.$\r$\nContinuar mesmo assim (não recomendado)?"
+${LangFileString} Uninstaller_No_Admin "Esta aplicação apenas pode ser desinstalada no modo de administrador."
+${LangFileString} Uninstaller_Aborted "Desinstalação cancelada pelo utilizador."
+${LangFileString} Uninstaller_NotInstalled "Parece que o SMPlayer não está instalado no directório '$INSTDIR'.$\r$\nContinuar mesmo assim (não recomendado)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "O SMPlayer é um interface gráfico para o MPlayer, com funcionalidades básicas desde a reprodução de vídeos, DVDs, VCDs bem como outras mais avançadas(suporte a filtros MPlayer, listas e mais)." \ No newline at end of file
+${LangFileString} Application_Description "O SMPlayer é um interface gráfico para o MPlayer, com funcionalidades básicas desde a reprodução de vídeos, DVDs, VCDs bem como outras mais avançadas(suporte a filtros MPlayer, listas e outras)."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/russian.nsh b/setup/translations/russian.nsh
index 165a8bd..e4256cf 100644
--- a/setup/translations/russian.nsh
+++ b/setup/translations/russian.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Russian" "Русский"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "Программа установки уже запущена."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "Программа установки уже запущена."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "Пакеты с бинарными кодеками добавляют поддержку кодеков, не встроенных в mplayer, например, RealVideo и других нестандартных форматов.$\nОбратите внимание, что эти кодеки не нужны для воспроизведения большинства обычных форматов вроде DVD, MPEG-1/2/4 и т.п."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Загрузка MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Не удалось загрузить MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Ошибка при установке MPlayer. MPlayer требуется для воспроизведения."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "Пакеты с бинарными кодеками добавляют поддержку кодеков, не встроенных в mplayer, например, RealVideo и других нестандартных форматов.$\nОбратите внимание, что эти кодеки не нужны для воспроизведения большинства обычных форматов вроде DVD, MPEG-1/2/4 и т.п."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Загрузка MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Не удалось загрузить MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Ошибка при установке MPlayer. MPlayer требуется для воспроизведения."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Загрузка бинарных кодеков для MPlayer..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Не удалось загрузить бинарные кодеки для MPlayer: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Ошибка при установке бинарных кодеков для MPlayer."
+${LangFileString} Codecs_DL_Msg "Загрузка бинарных кодеков для MPlayer..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Не удалось загрузить бинарные кодеки для MPlayer: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Ошибка при установке бинарных кодеков для MPlayer."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Загрузка информации о версии..."
-${LangFileString} VERINFO_DL_FAILED "Не удалось загрузить информацию о версии: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Загрузка информации о версии..."
+${LangFileString} VerInfo_DL_Failed "Не удалось загрузить информацию о версии: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Удаление прервано пользователем."
-${LangFileString} SMPLAYER_NOT_INSTALLED "Не похоже, что SMPlayer установлен в каталог '$INSTDIR'.$\r$\nПродолжить всё равно (не рекомендуется)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Удаление прервано пользователем."
+${LangFileString} Uninstaller_NotInstalled "Не похоже, что SMPlayer установлен в каталог '$INSTDIR'.$\r$\nПродолжить всё равно (не рекомендуется)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer - полноценная оболочка для MPlayer, начиная от базовых функций вроде воспроизведения видеофайлов, DVD, VCD и заканчивая более продвинутыми вроде поддержки фильтров MPlayer, списков и т.д." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer - полноценная оболочка для MPlayer, начиная от базовых функций вроде воспроизведения видеофайлов, DVD, VCD и заканчивая более продвинутыми вроде поддержки фильтров MPlayer, списков и т.д."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/simpchinese.nsh b/setup/translations/simpchinese.nsh
new file mode 100644
index 0000000..c1b2d33
--- /dev/null
+++ b/setup/translations/simpchinese.nsh
@@ -0,0 +1,98 @@
+;Language: Chinese (Simplified) (2052)
+;Chinese (Simplified) language strings for the Windows SMPlayer NSIS installer.
+;
+;Save file as UTF-8 w/ BOM
+;
+
+!insertmacro LANGFILE "SimpChinese" "简化字"
+
+; Startup
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
+
+; Components Page
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
+
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
+; Codecs Section
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
+
+; Version information
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
+
+; Uninstaller
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+
+; Vista & Later Default Programs Registration
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/slovak.nsh b/setup/translations/slovak.nsh
index 217bde1..f0b461c 100644
--- a/setup/translations/slovak.nsh
+++ b/setup/translations/slovak.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Slovak" "Slovenčina"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/slovenian.nsh b/setup/translations/slovenian.nsh
index a78f890..ef19699 100644
--- a/setup/translations/slovenian.nsh
+++ b/setup/translations/slovenian.nsh
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Slovenian" "Slovenščina"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "The installer is already running."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "You must be logged in as an administrator when installing this program."
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Downloading MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "MPlayer was not successfully installed. Retry?"
- ${LangFileString} MPLAYER_DL_FAILED "Failed to download MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Failed to install MPlayer. MPlayer is required for playback."
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
!endif
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Downloading MPlayer codecs..."
-${LangFileString} CODECS_DL_RETRY "MPlayer codecs were not successfully installed. Retry?"
-${LangFileString} CODECS_DL_FAILED "Failed to download MPlayer codecs: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Failed to install MPlayer codecs."
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Downloading version information..."
-${LangFileString} VERINFO_DL_FAILED "Failed to download version info: '$R0'. Using a default version."
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "This installation can only be uninstalled by a user with administrator privileges."
-${LangFileString} UNINSTALL_ABORTED "Uninstall aborted by user."
-${LangFileString} SMPLAYER_NOT_INSTALLED "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more." \ No newline at end of file
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."
diff --git a/setup/translations/spanish.nsh b/setup/translations/spanish.nsh
index 0177c9f..dbcd347 100644
--- a/setup/translations/spanish.nsh
+++ b/setup/translations/spanish.nsh
@@ -1,4 +1,4 @@
-;Language: Spanish (1034)
+;Language: Spanish (1034)
;Spanish language strings for the Windows SMPlayer NSIS installer.
;
;Save file as UTF-8 w/ BOM
@@ -7,34 +7,92 @@
!insertmacro LANGFILE "Spanish" "Español"
; Startup
-${LangFileString} SMPLAYER_INSTALLER_IS_RUNNING "La instalación ya se está ejecutando."
-${LangFileString} SMPLAYER_INSTALLER_NO_ADMIN "Debes tener permisos de administrador para instalar este programa."
+${LangFileString} Installer_Is_Running "La instalación ya se está ejecutando."
+${LangFileString} Installer_No_Admin "Debes tener permisos de administrador para instalar este programa."
; Components Page
-${LangFileString} MPLAYER_CODEC_INFORMATION "El paquete de códecs binarios añade soporte para códecs que todavía no se han implementado nativamente, como como las nuevas variantes de RealVideo y algunos formatos poco comunes.$\nTen en cuenta de que no son necesarios para reproducir los formatos más comunes como DVDs, MPEG-1/2/4, etc."
+${LangFileString} ShortcutGroupTitle "Accesos"
+${LangFileString} MPlayerGroupTitle "Componentes de MPlayer"
-; MPlayer Section
-!ifndef WITH_MPLAYER
- ${LangFileString} MPLAYER_IS_DOWNLOADING "Descargando el MPlayer..."
- ${LangFileString} MPLAYER_DL_RETRY "El MPlayer no se ha instalado correctamente. ¿Reintentar?"
- ${LangFileString} MPLAYER_DL_FAILED "Ha fallado la descarga del MPlayer: '$R0'."
- ${LangFileString} MPLAYER_INST_FAILED "Ha fallado la instalación del MPlayer. El MPlayer es imprescindible o no se podrá reproducir nada."
+${LangFileString} Section_SMPlayer "SMPlayer (requerido)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, librerías compartidas y documentación."
+
+${LangFileString} Section_DesktopShortcut "Escritorio"
+${LangFileString} Section_DesktopShortcut_Desc "Crea un acceso directo a SMPlayer en el escritorio."
+
+${LangFileString} Section_StartMenu "Menú Inicio"
+${LangFileString} Section_StartMenu_Desc "Crea una entrada en el Menú Inicio para SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (requerido)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; requerido para la reproducción multimedia."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; requerido para la reproducción multimedia. (Se necesita conexión a internet para la instalación)"
!endif
+${LangFileString} Section_MPlayerCodecs "Códecs Binarios"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Códecs opcionales para MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Códecs opcionales para MPlayer. (Se necesita conexión a internet para la instalación)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "Un programa opcional que puede ser usado para recodificar vídeos."
+
+${LangFileString} Section_IconThemes "Temas de Iconos"
+${LangFileString} Section_IconThemes_Desc "Temas de iconos adicionales para SMPlayer."
+
+${LangFileString} Section_Translations "Idiomas"
+${LangFileString} Section_Translations_Desc "Ficheros de idiomas para SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "El paquete de códecs binarios añade soporte para códecs que todavía no se han implementado nativamente, como como las nuevas variantes de RealVideo y algunos formatos poco comunes.$\nTen en cuenta de que no son necesarios para reproducir los formatos más comunes como DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Selecciona el tipo de instalación"
+${LangFileString} Reinstall_Header_SubText "Selecciona Sobreescribir o Desinstalar."
+
+${LangFileString} Reinstall_Msg1 "SMPlayer ya está instalado en esta carpeta:"
+${LangFileString} Reinstall_Msg2 "Selecciona qué hacer:"
+${LangFileString} Reinstall_Overwrite "Sobreescribir ($Inst_Type) la instalación existente"
+${LangFileString} Reinstall_Uninstall "Desinstalar (borrar) la instalación existente"
+${LangFileString} Reinstall_Msg3_1 "Pulsa en Comenzar cuando estés listo."
+${LangFileString} Reinstall_Msg3_2 "Pulsa Continuar cuando estés listo."
+${LangFileString} Reinstall_Msg3_3 "Pulsa Desinstalar cuando estés listo."
+${LangFileString} Reinstall_Msg4 "Cambiar las opciones de instalación"
+
+${LangFileString} Type_Reinstall "reinstalar"
+${LangFileString} Type_Downgrade "desactualizar"
+${LangFileString} Type_Upgrade "actualizar"
+
+${LangFileString} StartBtn "Comenzar"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Descargando el MPlayer..."
+${LangFileString} MPlayer_DL_Retry "El MPlayer no se ha instalado correctamente. ¿Reintentar?"
+${LangFileString} MPlayer_DL_Failed "Ha fallado la descarga del MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Ha fallado la instalación del MPlayer. El MPlayer es imprescindible o no se podrá reproducir nada."
+
; Codecs Section
-${LangFileString} CODECS_IS_DOWNLOADING "Descargando los códecs del MPlayer..."
-${LangFileString} CODECS_DL_RETRY "Los códecs del MPlayer no se han instalado correctamente. ¿Reintentar?"
-${LangFileString} CODECS_DL_FAILED "Ha fallado la descarga de los códecs del MPlayer: '$R0'."
-${LangFileString} CODECS_INST_FAILED "Ha fallado la instalación del los códecs del MPlayer."
+${LangFileString} Codecs_DL_Msg "Descargando los códecs del MPlayer..."
+${LangFileString} Codecs_DL_Retry "Los códecs del MPlayer no se han instalado correctamente. ¿Reintentar?"
+${LangFileString} Codecs_DL_Failed "Ha fallado la descarga de los códecs del MPlayer: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Ha fallado la instalación del los códecs del MPlayer."
; Version information
-${LangFileString} VERINFO_IS_DOWNLOADING "Descargando la información de la versión..."
-${LangFileString} VERINFO_DL_FAILED "Ha fallado la descarga de la información de la versión: '$R0'. Se usará la versión por defecto."
+${LangFileString} VerInfo_DL_Msg "Descargando la información de la versión..."
+${LangFileString} VerInfo_DL_Failed "Ha fallado la descarga de la información de la versión: '$R0'. Se usará la versión por defecto."
; Uninstaller
-${LangFileString} UNINSTALL_NO_ADMIN "Este programa sólo se puede desinstalar por un usuario con permisos de administrador."
-${LangFileString} UNINSTALL_ABORTED "Desinstalación cancelada por el usuario."
-${LangFileString} SMPLAYER_NOT_INSTALLED "No parece que el SMPlayer esté instalado en el directorio '$INSTDIR'.$\r$\n¿Continuar de todos modos (no recomendado)?"
+${LangFileString} Uninstaller_No_Admin "Este programa sólo se puede desinstalar por un usuario con permisos de administrador."
+${LangFileString} Uninstaller_Aborted "Desinstalación cancelada por el usuario."
+${LangFileString} Uninstaller_NotInstalled "No parece que el SMPlayer esté instalado en el directorio '$INSTDIR'.$\r$\n¿Continuar de todos modos (no recomendado)?"
; Vista & Later Default Programs Registration
-${LangFileString} APPLICATION_DESCRIPTION "SMPlayer pretende ser un interfaz completo para MPlayer, con opciones para cosas básicas, como reproducir vídeos, DVDs y VCDs hasta opciones más avanzadas como soporte para los filtros del MPlayer y mucho más."
+${LangFileString} Application_Description "SMPlayer pretende ser un interfaz completo para MPlayer, con opciones para cosas básicas, como reproducir vídeos, DVDs y VCDs hasta opciones más avanzadas como soporte para los filtros del MPlayer y mucho más."
+
+; Misc
+${LangFileString} Info_Del_Files "Borrando ficheros..."
+${LangFileString} Info_Del_Registry "Borrando claves del registro..."
+${LangFileString} Info_Del_Shortcuts "Borrande accesos..."
+${LangFileString} Info_Rest_Assoc "Restaurando asociaciones de ficheros..."
+${LangFileString} Info_Files_Extract "Extrayendo ficheros..."
diff --git a/setup/translations/tradchinese.nsh b/setup/translations/tradchinese.nsh
new file mode 100644
index 0000000..ab9194f
--- /dev/null
+++ b/setup/translations/tradchinese.nsh
@@ -0,0 +1,98 @@
+;Language: Chinese (Traditional) (1028)
+;Chinese (Traditional) language strings for the Windows SMPlayer NSIS installer.
+;
+;Save file as UTF-8 w/ BOM
+;
+
+!insertmacro LANGFILE "TradChinese" "漢語(繁體)"
+
+; Startup
+${LangFileString} Installer_Is_Running "The installer is already running."
+${LangFileString} Installer_No_Admin "You must be logged in as an administrator when installing this program."
+
+; Components Page
+${LangFileString} ShortcutGroupTitle "Shortcuts"
+${LangFileString} MPlayerGroupTitle "MPlayer Components"
+
+${LangFileString} Section_SMPlayer "SMPlayer (required)"
+${LangFileString} Section_SMPlayer_Desc "SMPlayer, shared libraries, and documentation."
+
+${LangFileString} Section_DesktopShortcut "Desktop"
+${LangFileString} Section_DesktopShortcut_Desc "Creates a shortcut to SMPlayer on the desktop."
+
+${LangFileString} Section_StartMenu "Start Menu"
+${LangFileString} Section_StartMenu_Desc "Create a Start Menu entry for SMPlayer."
+
+${LangFileString} Section_MPlayer "MPlayer (required)"
+!ifdef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback."
+!else ifndef WITH_MPLAYER
+${LangFileString} Section_MPlayer_Desc "MPlayer; required for playback. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MPlayerCodecs "Binary Codecs"
+!ifdef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer."
+!else ifndef WITH_CODECS
+${LangFileString} Section_MPlayerCodecs_Desc "Optional codecs for MPlayer. (Internet Connection required for installation)"
+!endif
+
+${LangFileString} Section_MEncoder_Desc "A companion program to MPlayer that can be used to encode or transform supported audio or video streams."
+
+${LangFileString} Section_IconThemes "Icon Themes"
+${LangFileString} Section_IconThemes_Desc "Additional icon themes for SMPlayer."
+
+${LangFileString} Section_Translations "Languages"
+${LangFileString} Section_Translations_Desc "Non-English language files for SMPlayer."
+
+${LangFileString} MPlayer_Codec_Msg "The binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats.$\nNote that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc."
+
+; Upgrade/Reinstall Page
+${LangFileString} Reinstall_Header_Text "Select Install Type"
+${LangFileString} Reinstall_Header_SubText "Select Overwrite or Uninstall mode."
+
+${LangFileString} Reinstall_Msg1 "You have an existing installation of SMPlayer in the following folder:"
+${LangFileString} Reinstall_Msg2 "Please select how to proceed:"
+${LangFileString} Reinstall_Overwrite "Overwrite ($Inst_Type) the existing installation"
+${LangFileString} Reinstall_Uninstall "Uninstall (remove) the existing installation"
+${LangFileString} Reinstall_Msg3_1 "Click Start when ready to proceed."
+${LangFileString} Reinstall_Msg3_2 "Click Next when ready to proceed."
+${LangFileString} Reinstall_Msg3_3 "Click Uninstall when ready to proceed."
+${LangFileString} Reinstall_Msg4 "Change Installation Settings"
+
+${LangFileString} Type_Reinstall "reinstall"
+${LangFileString} Type_Downgrade "downgrade"
+${LangFileString} Type_Upgrade "upgrade"
+
+${LangFileString} StartBtn "Start"
+
+; MPlayer Section
+${LangFileString} MPlayer_DL_Msg "Downloading MPlayer..."
+${LangFileString} MPlayer_DL_Retry "MPlayer was not successfully installed. Retry?"
+${LangFileString} MPlayer_DL_Failed "Failed to download MPlayer: '$R0'."
+${LangFileString} MPlayer_Inst_Failed "Failed to install MPlayer. MPlayer is required for playback."
+
+; Codecs Section
+${LangFileString} Codecs_DL_Msg "Downloading MPlayer codecs..."
+${LangFileString} Codecs_DL_Retry "MPlayer codecs were not successfully installed. Retry?"
+${LangFileString} Codecs_DL_Failed "Failed to download MPlayer codecs: '$R0'."
+${LangFileString} Codecs_Inst_Failed "Failed to install MPlayer codecs."
+
+; Version information
+${LangFileString} VerInfo_DL_Msg "Downloading version information..."
+${LangFileString} VerInfo_DL_Failed "Failed to download version info: '$R0'. Using a default version."
+
+; Uninstaller
+${LangFileString} Uninstaller_No_Admin "This installation can only be uninstalled by a user with administrator privileges."
+${LangFileString} Uninstaller_Aborted "Uninstall aborted by user."
+${LangFileString} Uninstaller_NotInstalled "It does not appear that SMPlayer is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?"
+
+; Vista & Later Default Programs Registration
+${LangFileString} Application_Description "SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more."
+
+; Misc
+${LangFileString} Info_Del_Files "Deleting Files..."
+${LangFileString} Info_Del_Registry "Deleting Registry Keys..."
+${LangFileString} Info_Del_Shortcuts "Deleting Shortcuts..."
+${LangFileString} Info_Rest_Assoc "Restoring file associations..."
+${LangFileString} Info_Files_Extract "Extracting files..."