Synchronize GUP localization file with Notepad++ in installer
During the installation, GUP localization file will be synchronized with Notepad++ chosen localization. So updater will show the same installed language of Notepad++ in the dialogs if the language is avalable in GUP.
This commit is contained in:
parent
a4d7f77016
commit
5155dfed9d
|
@ -76,6 +76,8 @@ ${MementoSection} "Auto-Updater" AutoUpdater
|
|||
File "..\bin\updater\LICENSE"
|
||||
File "..\bin\updater\README.md"
|
||||
!endif
|
||||
SetOutPath "$PLUGINSDIR\gupLocalization"
|
||||
File "..\bin\updater\translations\"
|
||||
${MementoSectionEnd}
|
||||
|
||||
${MementoSection} "Plugins Admin" PluginsAdmin
|
||||
|
@ -143,6 +145,7 @@ Section un.AutoUpdater
|
|||
Delete "$INSTDIR\updater\readme.txt"
|
||||
Delete "$INSTDIR\updater\README.md"
|
||||
Delete "$INSTDIR\updater\getDownLoadUrl.php"
|
||||
Delete "$INSTDIR\updater\nativeLang.xml"
|
||||
RMDir "$INSTDIR\updater"
|
||||
SectionEnd
|
||||
|
||||
|
|
|
@ -121,9 +121,11 @@ Function copyCommonFiles
|
|||
IfFileExists "$INSTDIR\nativeLang.xml" 0 +2
|
||||
Delete "$INSTDIR\nativeLang.xml"
|
||||
|
||||
StrCmp $LANGUAGE ${LANG_ENGLISH} +3 0
|
||||
StrCmp $LANGUAGE ${LANG_ENGLISH} +5 0
|
||||
CopyFiles "$PLUGINSDIR\nppLocalization\$(langFileName)" "$UPDATE_PATH\nativeLang.xml"
|
||||
CopyFiles "$PLUGINSDIR\nppLocalization\$(langFileName)" "$INSTDIR\localization\$(langFileName)"
|
||||
IfFileExists "$PLUGINSDIR\gupLocalization\$(langFileName)" 0 +2
|
||||
CopyFiles "$PLUGINSDIR\gupLocalization\$(langFileName)" "$INSTDIR\updater\nativeLang.xml"
|
||||
FunctionEnd
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue