; Internal PortableApps.com Launcher languages for message boxes etc.
; The language is set in Segments/Language.nsh (but all the addition of
; languages is done in this file).

!tempfile LangAutoDetectFile
!macro IncludeLang _LANG
	LoadLanguageFile "${NSISDIR}\Contrib\Language files\${_LANG}.nlf"
	!insertmacro LANGFILE_INCLUDE_WITHDEFAULT Languages\${_LANG}.nsh Languages\English.nsh
	!appendfile "${LangAutoDetectFile}" "${Case} ${LANG_${_LANG}}$\n"
!macroend
!define IncludeLang "!insertmacro IncludeLang"
	${IncludeLang} ARABIC
	${IncludeLang} ARMENIAN
	${IncludeLang} AZERBAIJANI
	${IncludeLang} BELARUSIAN
	${IncludeLang} BOSNIAN
	${IncludeLang} BULGARIAN
	${IncludeLang} CROATIAN
	${IncludeLang} CZECH
	${IncludeLang} DANISH
	${IncludeLang} DUTCH
	${IncludeLang} ENGLISH
	${IncludeLang} FARSI
	${IncludeLang} FINNISH
	${IncludeLang} FRENCH
	${IncludeLang} GERMAN
	${IncludeLang} GREEK
	${IncludeLang} HUNGARIAN
	${IncludeLang} INDONESIAN
	${IncludeLang} ITALIAN
	${IncludeLang} JAPANESE
	${IncludeLang} KAZAKH
	${IncludeLang} KOREAN
	${IncludeLang} LITHUANIAN
	${IncludeLang} MALAY
	${IncludeLang} NORWEGIAN
	${IncludeLang} POLISH
	${IncludeLang} PORTUGUESEBR
	${IncludeLang} ROMANIAN
	${IncludeLang} RUSSIAN
	${IncludeLang} SERBIAN
	${IncludeLang} SIMPCHINESE
	${IncludeLang} SLOVAK
	${IncludeLang} SLOVENIAN
	${IncludeLang} SPANISH
	${IncludeLang} SWEDISH
	${IncludeLang} THAI
	${IncludeLang} TRADCHINESE
	${IncludeLang} TURKISH
	${IncludeLang} UKRAINIAN
	${IncludeLang} URDU
	${IncludeLang} VIETNAMESE
!macro LanguageCases
	!include "${LangAutoDetectFile}"
	!delfile "${LangAutoDetectFile}"
	!undef LangAutoDetectFile
!macroend
