1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Windows: Install app translations

This commit is contained in:
David Rosca 2018-03-26 10:04:46 +02:00
parent 9227a25bbd
commit cea9e2cf8f
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -191,17 +191,6 @@ notRunning:
SetOutPath "$INSTDIR\styles" SetOutPath "$INSTDIR\styles"
File "${QT_PLUGINS_DIR}\styles\*.dll" File "${QT_PLUGINS_DIR}\styles\*.dll"
SetOutPath "$INSTDIR\translations\qtwebengine_locales"
File "${QT_DIR}\translations\qtwebengine_locales\*"
SetOutPath "$INSTDIR\qtwebengine_dictionaries\doc"
; In some packages underline '_' is used and in some other packages dash '-' is used so we use wildcard
File "${QTWEBENGINE_DICTIONARIES_DIR}\doc\README*en*US.txt"
SetOutPath "$INSTDIR\qtwebengine_dictionaries"
; in some packages *.bdic files use dash '-' instead of underline '_' followed by a version number. e.g. en-US-3-0.bdic
File "${QTWEBENGINE_DICTIONARIES_DIR}\en*US*.bdic"
call RegisterCapabilities call RegisterCapabilities
StrCmp $installAsPortable "YES" 0 skipPortableMode StrCmp $installAsPortable "YES" 0 skipPortableMode
@ -245,12 +234,19 @@ SectionGroup $(TITLE_SecThemes) SecThemes
SectionGroupEnd SectionGroupEnd
Section $(TITLE_SecTranslations) SecTranslations Section $(TITLE_SecTranslations) SecTranslations
#SetOutPath "$INSTDIR\locale" SetOutPath "$INSTDIR\locale"
#File "${FALKON_BIN_DIR}\locale\*.qm" File "${FALKON_BIN_DIR}\locale\*"
#SetOutPath "$INSTDIR\qtwebengine_dictionaries\doc"
#File "${QTWEBENGINE_DICTIONARIES_DIR}\doc\*" SetOutPath "$INSTDIR\translations\qtwebengine_locales"
#SetOutPath "$INSTDIR\qtwebengine_dictionaries" File "${QT_DIR}\translations\qtwebengine_locales\*"
#File "${QTWEBENGINE_DICTIONARIES_DIR}\*.bdic"
SetOutPath "$INSTDIR\qtwebengine_dictionaries\doc"
; In some packages underline '_' is used and in some other packages dash '-' is used so we use wildcard
File "${QTWEBENGINE_DICTIONARIES_DIR}\doc\README*en*US.txt"
SetOutPath "$INSTDIR\qtwebengine_dictionaries"
; in some packages *.bdic files use dash '-' instead of underline '_' followed by a version number. e.g. en-US-3-0.bdic
File "${QTWEBENGINE_DICTIONARIES_DIR}\en*US*.bdic"
SectionEnd SectionEnd
Section $(TITLE_SecPlugins) SecPlugins Section $(TITLE_SecPlugins) SecPlugins
@ -542,7 +538,7 @@ Function InstallationModePage
WriteINIStr "$PLUGINSDIR\portable-mode.ini" "Field 1" "Text" "$(TITLE_StandardInstallation)" WriteINIStr "$PLUGINSDIR\portable-mode.ini" "Field 1" "Text" "$(TITLE_StandardInstallation)"
WriteINIStr "$PLUGINSDIR\portable-mode.ini" "Field 2" "Text" "$(TITLE_PortableInstallation)" WriteINIStr "$PLUGINSDIR\portable-mode.ini" "Field 2" "Text" "$(TITLE_PortableInstallation)"
; set layout direction ; set layout direction
IntCmp $(^RTL) 1 0 +2 IntCmp $(^RTL) 1 0 +2
WriteINIStr "$PLUGINSDIR\portable-mode.ini" "Settings" "RTL" 1 WriteINIStr "$PLUGINSDIR\portable-mode.ini" "Settings" "RTL" 1
InstallOptions::dialog $PLUGINSDIR\portable-mode.ini InstallOptions::dialog $PLUGINSDIR\portable-mode.ini
@ -566,7 +562,7 @@ FunctionEnd
Function installationInfoPage Function installationInfoPage
!insertmacro MUI_HEADER_TEXT "$(TITLE_InstallInfo)" "$(DESC_InstallInfo)" !insertmacro MUI_HEADER_TEXT "$(TITLE_InstallInfo)" "$(DESC_InstallInfo)"
; set layout direction ; set layout direction
IntCmp $(^RTL) 1 0 +2 IntCmp $(^RTL) 1 0 +2
WriteINIStr "$PLUGINSDIR\portable-info.ini" "Settings" "RTL" 1 WriteINIStr "$PLUGINSDIR\portable-info.ini" "Settings" "RTL" 1
StrCmp $installAsPortable "NO" 0 infoPortable StrCmp $installAsPortable "NO" 0 infoPortable