Comment 3 for bug 1654460

Revision history for this message
uwestoehr (uwestoehr) wrote :

I am the author of the NSIS installer for the program LyX (lyx.org). In it I have the same task: I have several language dictionaries and need to sort them. I used always the English names, independent on the chosen installer language because everybody knows the English name of his language.

Doing this is not difficult: Here is the part of my NSIS code that does this:

#--------------------------------
# visible installer sections

Section "!${APP_NAME}" SecCore
 SectionIn RO
 !if ${SETUPTYPE} == BUNDLE
  # if no TeX was found MiKTeX will be installed which requires space
  !if $PathLaTeX == ""
   AddSize 1020000 # size in KB
  !endif
 !endif
SectionEnd

Section "$(SecFileAssocTitle)" SecFileAssoc
 StrCpy $CreateFileAssociations "true"
SectionEnd

Section "$(SecDesktopTitle)" SecDesktop
 StrCpy $CreateDesktopIcon "true"
SectionEnd

# Expand the list of dictionaries by default as this was requested by several
# users. For the thesaurus this is was not requested because this section
# is by default empty.
SectionGroup /e "Dictionaries" SecDictionaries

Section /o "Afrikaans" SecDAfrikaans
 StrCpy $DictCodes "af_ZA,$DictCodes"
 AddSize 1440
SectionEnd

Section /o "Arabic" SecDArabic
 StrCpy $DictCodes "ar_DZ,$DictCodes"
 AddSize 2500
SectionEnd

Section /o "Armenian" SecDArmenian
 StrCpy $DictCodes "hy_AM,$DictCodes"
 AddSize 2000
SectionEnd

Section /o "Bahasa Indonesia" SecDIndonesian
 StrCpy $DictCodes "id_ID,$DictCodes"
 AddSize 217
SectionEnd

Section /o "Bahasa Melayu" SecDMalayan
 StrCpy $DictCodes "ms_MY,$DictCodes"
 AddSize 227
SectionEnd

Section /o "Belarusian" SecDBelarusian
 StrCpy $DictCodes "be_BY,$DictCodes"
 AddSize 1730
SectionEnd

Section /o "Brezhoneg" SecDBreton
 StrCpy $DictCodes "br_FR,$DictCodes"
 AddSize 5510
SectionEnd

...