mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
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\LICENSE"
|
||||||
File "..\bin\updater\README.md"
|
File "..\bin\updater\README.md"
|
||||||
!endif
|
!endif
|
||||||
|
SetOutPath "$PLUGINSDIR\gupLocalization"
|
||||||
|
File "..\bin\updater\translations\"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Plugins Admin" PluginsAdmin
|
${MementoSection} "Plugins Admin" PluginsAdmin
|
||||||
@ -143,6 +145,7 @@ Section un.AutoUpdater
|
|||||||
Delete "$INSTDIR\updater\readme.txt"
|
Delete "$INSTDIR\updater\readme.txt"
|
||||||
Delete "$INSTDIR\updater\README.md"
|
Delete "$INSTDIR\updater\README.md"
|
||||||
Delete "$INSTDIR\updater\getDownLoadUrl.php"
|
Delete "$INSTDIR\updater\getDownLoadUrl.php"
|
||||||
|
Delete "$INSTDIR\updater\nativeLang.xml"
|
||||||
RMDir "$INSTDIR\updater"
|
RMDir "$INSTDIR\updater"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
@ -121,9 +121,11 @@ Function copyCommonFiles
|
|||||||
IfFileExists "$INSTDIR\nativeLang.xml" 0 +2
|
IfFileExists "$INSTDIR\nativeLang.xml" 0 +2
|
||||||
Delete "$INSTDIR\nativeLang.xml"
|
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)" "$UPDATE_PATH\nativeLang.xml"
|
||||||
CopyFiles "$PLUGINSDIR\nppLocalization\$(langFileName)" "$INSTDIR\localization\$(langFileName)"
|
CopyFiles "$PLUGINSDIR\nppLocalization\$(langFileName)" "$INSTDIR\localization\$(langFileName)"
|
||||||
|
IfFileExists "$PLUGINSDIR\gupLocalization\$(langFileName)" 0 +2
|
||||||
|
CopyFiles "$PLUGINSDIR\gupLocalization\$(langFileName)" "$INSTDIR\updater\nativeLang.xml"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user