Skip to content

Commit

Permalink
Merge pull request #2836 from ann0see/trans/renameWinInstallerTrans
Browse files Browse the repository at this point in the history
Weblate: Rename Win Installer files to fit standard
  • Loading branch information
pljones authored Sep 6, 2022
2 parents 72524e3 + fd88723 commit 73ba38c
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions src/translation/wininstaller/installerlng.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@
; Additional languages can be added in this file. See https://nsis.sourceforge.io/Examples/Modern%20UI/MultiLanguage.nsi

!insertmacro MUI_LANGUAGE "English" ; The first language is the default
!include "${ROOT_PATH}\src\translation\wininstaller\en.nsi" ; include english
!include "${ROOT_PATH}\src\translation\wininstaller\en_UK.nsi" ; include english, standard language

!insertmacro MUI_LANGUAGE "German"
!include "${ROOT_PATH}\src\translation\wininstaller\de.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\de_DE.nsi"

!insertmacro MUI_LANGUAGE "Italian"
!include "${ROOT_PATH}\src\translation\wininstaller\it.nsi" ; include italian
!include "${ROOT_PATH}\src\translation\wininstaller\it_IT.nsi"

!insertmacro MUI_LANGUAGE "Dutch"
!include "${ROOT_PATH}\src\translation\wininstaller\nl.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\nl_NL.nsi"

!insertmacro MUI_LANGUAGE "Polish"
!include "${ROOT_PATH}\src\translation\wininstaller\pl.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\pl_PL.nsi"

!insertmacro MUI_LANGUAGE "French"
!include "${ROOT_PATH}\src\translation\wininstaller\fr.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\fr_FR.nsi"

!insertmacro MUI_LANGUAGE "Spanish"
!include "${ROOT_PATH}\src\translation\wininstaller\es.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\es_ES.nsi"

!insertmacro MUI_LANGUAGE "Swedish"
!include "${ROOT_PATH}\src\translation\wininstaller\se.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\sv_SE.nsi"

!insertmacro MUI_LANGUAGE "PortugueseBR"
!include "${ROOT_PATH}\src\translation\wininstaller\pt_br.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\pt_BR.nsi"

!insertmacro MUI_LANGUAGE "Portuguese"
!include "${ROOT_PATH}\src\translation\wininstaller\pt.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\pt_PT.nsi"

!insertmacro MUI_LANGUAGE "SimpChinese"
!include "${ROOT_PATH}\src\translation\wininstaller\zh_cn.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\zh_CN.nsi"

!insertmacro MUI_LANGUAGE "Korean"
!include "${ROOT_PATH}\src\translation\wininstaller\kr.nsi"
!include "${ROOT_PATH}\src\translation\wininstaller\ko_KR.nsi"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tools/check-wininstaller-translations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
set -eu -o pipefail

BASE_DIR=src/translation/wininstaller/
BASE_LANG=en
BASE_LANG=en_UK
INSTALLERLNG=installerlng.nsi
BASE_LANGSTRINGS=$(grep LangString "${BASE_DIR}/${BASE_LANG}.nsi" | cut -d' ' -f2)
EXIT=0
for LANGUAGE_FILE in src/translation/wininstaller/{??.nsi,??_??.nsi}; do
for LANGUAGE_FILE in src/translation/wininstaller/*_*.nsi; do
if [[ ${LANGUAGE_FILE} =~ /${BASE_LANG}.nsi$ ]]; then
continue
fi
Expand Down

0 comments on commit 73ba38c

Please sign in to comment.