]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/src/dictionaries.nsh
Wininstaller: remove (old) installer, installer2 becomes (new) installer
[features.git] / development / Win32 / packaging / installer / src / dictionaries.nsh
1 #-------------------------------------------------------------
2 # - - - - - - - - - - - - Preamble - - - - - - - - - - - - - -
3 #-------------------------------------------------------------
4
5   # ===== Variables =====
6
7     Var lcID # containts the ID of the default Windows UI Language
8
9 # ================
10 # Helper Functions
11 # ================
12
13 # Forward Declarations
14
15 !macro DownloadHunspell langCode
16   Push "${langCode}.aff"
17   Call DownloadHunspell
18   Push "${langCode}.dic"
19   Call DownloadHunspell
20 !macroend
21
22 !define DownloadHunspell "!insertmacro DownloadHunspell"
23
24 !macro DownloadThesaurus langCode
25   Push "th_${langCode}_v2.dat"
26   Call DownloadThesaurus
27   Push "th_${langCode}_v2.idx"
28   Call DownloadThesaurus
29 !macroend
30
31 !define DownloadThesaurus "!insertmacro DownloadThesaurus"
32
33 !macro CheckHunspell sectionIdx langCode langID
34   Push ${sectionIdx}
35   Push ${langCode}
36   Push ${langID}
37   Call CheckHunspell
38 !macroend
39
40 !define CheckHunspell "!insertmacro CheckHunspell"
41
42 !macro CheckThesaurus sectionIdx langCode
43   Push ${sectionIdx}
44   Push ${langCode}
45   Call CheckThesaurus
46 !macroend
47
48 !define CheckThesaurus "!insertmacro CheckThesaurus"
49
50 # Functions
51
52 Function DownloadHunspell
53   Exch $R9 # "${langCode}.aff" / "${langCode}.dic"
54   Push $9
55
56   ${IfNot} ${FileExists} "$INSTDIR\Resources\dicts\$R9"
57     inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/$R9" "$INSTDIR\Resources\dicts\$R9" /END
58     Pop $9
59     ${If} $9 != "OK"
60       MessageBox MB_OK|MB_ICONEXCLAMATION "$(HunspellFailed)" # $(HunspellFailed) uses $R9
61     ${EndIf}
62   ${EndIf}
63
64   Pop $9
65   Pop $R9
66 FunctionEnd
67
68 Function DownloadThesaurus
69   Exch $R9 # "th_${langCode}_v2.dat" / "th_${langCode}_v2.idx"
70   Push $9
71
72   ${IfNot} ${FileExists} "$INSTDIR\Resources\thes\$R9"
73     inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/thes/$R9" "$INSTDIR\Resources\thes\$R9" /END
74     Pop $9
75     ${If} $9 != "OK"
76       MessageBox MB_OK|MB_ICONEXCLAMATION "$(ThesaurusFailed)" # $(ThesaurusFailed) uses $R9
77     ${EndIf}
78   ${EndIf}
79
80   Pop $9
81   Pop $R9
82 FunctionEnd
83
84 Function CheckHunspell
85   Exch $9 # ${langID}
86   Exch
87   Exch $8 # ${langCode}
88   Exch 2
89   Exch $7 # ${sectionIdx}
90
91   ${If} ${FileExists} "$INSTDIR\Resources\dicts\$8.aff"
92   ${OrIf} ${FileExists} "$INSTDIR\Resources\dicts\$8.dic"
93     IntOp $8 ${SF_SELECTED} | ${SF_RO}
94     SectionSetFlags $7 $8
95     SectionSetSize $7 0
96   ${ElseIf} $lcID == $9
97     SectionSetFlags $7 ${SF_SELECTED}
98   ${EndIf}
99
100   Pop $7
101   Pop $9
102   Pop $8
103 FunctionEnd
104
105 Function CheckThesaurus
106   Exch $9 # ${langCode}
107   Exch
108   Exch $8 # ${sectionIdx}
109
110   ${If} ${FileExists} "$INSTDIR\Resources\thes\th_$9_v2.dat"
111   ${OrIf} ${FileExists} "$INSTDIR\Resources\thes\th_$9_v2.idx"
112     IntOp $9 ${SF_SELECTED} | ${SF_RO}
113     SectionSetFlags $8 $9
114     SectionSetSize $8 0
115   ${EndIf}
116   
117   Pop $8
118   Pop $9
119 FunctionEnd
120
121 # ========
122 # Sections
123 # ========
124
125 # Expand the list of dictionaries by default as this was requested by several
126 # users. For the thesaurus this is was not requested because this section
127 # is by default empty.
128 SectionGroup /e "$(SecDictionaries)" SecDictionaries
129
130   Section /o "Afrikaans" SecDAfrikaans
131     ${DownloadHunspell} "af_ZA"
132     AddSize 1483
133   SectionEnd
134
135   Section /o "العربية" SecDArabic
136     ${DownloadHunspell} "ar_SA"
137     AddSize 34951
138   SectionEnd
139
140   Section /o "հայերեն" SecDArmenian
141     ${DownloadHunspell} "hy_AM"
142     AddSize 2060
143   SectionEnd
144
145   Section /o "Bahasa Indonesia" SecDIndonesian
146     ${DownloadHunspell} "id_ID"
147     AddSize 323
148   SectionEnd
149
150   Section /o "Bahasa Melayu" SecDMalayan
151     ${DownloadHunspell} "ms_MY"
152     AddSize 228
153   SectionEnd
154
155   Section /o "беларускі" SecDBelarusian 
156     ${DownloadHunspell} "be_BY"
157     AddSize 1692
158   SectionEnd
159
160   Section /o "Bosanski" SecDBosnian
161     ${DownloadHunspell} "bs_BA"
162     AddSize 350
163   SectionEnd
164
165   Section /o "Brezhoneg" SecDBreton 
166     ${DownloadHunspell} "br_FR"
167     AddSize 5427
168   SectionEnd
169
170   Section /o "български" SecDBulgarian
171     ${DownloadHunspell} "bg_BG"
172     AddSize 1587
173   SectionEnd
174
175   Section /o "Català" SecDCatalanian
176     ${DownloadHunspell} "ca_ES"
177     AddSize 2005
178   SectionEnd
179
180   Section /o "Ceština" SecDCzech
181     ${DownloadHunspell} "cs_CZ"
182     AddSize 2254
183   SectionEnd
184
185   Section /o "Coptic" SecDCoptic # Native name displayed not correctly in the installer for a strange reason
186     ${DownloadHunspell} "cop_EG"
187     AddSize 151
188   SectionEnd
189
190   Section /o "Cymraeg" SecDWelsh 
191     ${DownloadHunspell} "cy_GB"
192     AddSize 1578
193   SectionEnd
194
195   Section /o "Dansk" SecDDanish
196     ${DownloadHunspell} "da_DK"
197     AddSize 2895
198   SectionEnd
199
200   Section /o "Deutsch (alt)" SecDGermanAlt
201     ${DownloadHunspell} "de-alt"
202     AddSize 2572
203   SectionEnd
204
205   Section /o "Deutsch (A)" SecDGermanAT
206     ${DownloadHunspell} "de_AT"
207     AddSize 4277
208   SectionEnd
209
210   Section /o "Deutsch (CH)" SecDGermanCH
211     ${DownloadHunspell} "de_CH"
212     AddSize 4276
213   SectionEnd
214
215   Section "Deutsch (D)" SecDGermanD
216     # already installed by default
217     SectionIn RO
218     #${DownloadHunspell} "de_DE"
219     AddSize 4274
220   SectionEnd
221
222   Section /o "Ελληνικά" SecDGreek
223     ${DownloadHunspell} "el_GR"
224     AddSize 17865
225   SectionEnd
226
227   Section /o "Eesti" SecDEstonian
228     ${DownloadHunspell} "et_EE"
229     AddSize 4513
230   SectionEnd
231
232   Section /o "English (AU)" SecDEnglishAU
233     ${DownloadHunspell} "en_AU"
234     AddSize 542
235   SectionEnd
236
237   Section /o "English (CA)" SecDEnglishCA
238     ${DownloadHunspell} "en_CA"
239     AddSize 540
240   SectionEnd
241
242   Section "English (GB)" SecDEnglishGB
243     # already installed by default
244     SectionIn RO
245     #${DownloadHunspell} "en_GB"
246     AddSize 801
247   SectionEnd
248
249   Section /o "English (NZ)" SecDEnglishNZ
250     ${DownloadHunspell} "en_NZ"
251     AddSize 801
252   SectionEnd
253
254   Section "English (US)" SecDEnglishUS
255     # already installed by default
256     SectionIn RO
257     #${DownloadHunspell} "en_US"
258     AddSize 538
259   SectionEnd
260
261   Section "Español (ES)" SecDSpanishES
262     # already installed by default
263     SectionIn RO
264     #${DownloadHunspell} "es_ES"
265     AddSize 938
266   SectionEnd
267
268   Section "Español (MX)" SecDSpanishMX
269     # already installed by default
270     SectionIn RO
271     #${DownloadHunspell} "es_MX"
272     AddSize 938
273   SectionEnd
274
275   Section /o "Esperanto" SecDEsperanto
276     ${DownloadHunspell} "eo_EO"
277     AddSize 390
278   SectionEnd
279
280   Section /o "Euskara" SecDBasque
281     ${DownloadHunspell} "eu_ES"
282     AddSize 4970
283   SectionEnd
284
285   Section /o "فارسی" SecDFarsi
286     ${DownloadHunspell} "fa_IR"
287     AddSize 6879
288   SectionEnd
289   /* Language not supported by LyX
290   Section /o "Føroyskt" SecDFaroese
291     ${DownloadHunspell} "fo_FO"
292     AddSize 1449
293   SectionEnd */
294
295   Section "Français" SecDFrench
296     # already installed by default
297     SectionIn RO
298     #${DownloadHunspell} "fr_FR"
299     AddSize 1314
300   SectionEnd
301
302   Section /o "Français (Canada)" SecDFrenchCanada
303     ${DownloadHunspell} "fr_CA"
304     AddSize 1314
305   SectionEnd
306
307   Section /o "Furlan" SecDFriulian
308     ${DownloadHunspell} "fur_IT"
309     AddSize 381
310   SectionEnd
311
312   Section /o "Gaeilge" SecDIrish
313     ${DownloadHunspell} "ga_IE"
314     AddSize 1330
315   SectionEnd
316
317   Section /o "Gàidhlig" SecDScottish
318     ${DownloadHunspell} "gd_GB"
319     AddSize 4704
320   SectionEnd
321
322   Section /o "Galego" SecDGalician
323     ${DownloadHunspell} "gl_ES"
324     AddSize 3222
325   SectionEnd
326
327   Section /o "Hrvatski" SecDCroatian
328     ${DownloadHunspell} "hr_HR"
329     AddSize 809
330   SectionEnd
331
332   Section /o "हिंदी" SecDHindi
333     ${DownloadHunspell} "hi_IN"
334     AddSize 298
335   SectionEnd
336
337   Section /o "Interlingua" SecDInterlingua
338     ${DownloadHunspell} "ia_IA"
339     AddSize 599
340   SectionEnd
341
342   Section /o "Íslenska" SecDIcelandic
343     ${DownloadHunspell} "is_IS"
344     AddSize 2700
345   SectionEnd
346
347   Section /o "Italiano" SecDItalian
348     ${DownloadHunspell} "it_IT"
349     AddSize 1340
350   SectionEnd
351
352   Section /o "עִברִית" SecDHebrew
353     ${DownloadHunspell} "he_IL"
354     AddSize 7698
355   SectionEnd
356   /* dicts missing
357   Section /o "ქართული" SecDGeorgian
358     ${DownloadHunspell} "ka_GE"
359     AddSize 3952
360   SectionEnd */
361
362   Section /o "Қазақша" SecDKazakh
363     ${DownloadHunspell} "kk_KZ"
364     AddSize 2182
365   SectionEnd
366
367   Section /o "ភាសាខ្មែរ" SecDKhmer
368     ${DownloadHunspell} "km_KH"
369     AddSize 2093
370   SectionEnd
371
372   Section /o "한국어" SecDKorean
373     ${DownloadHunspell} "ko_KR"
374     AddSize 15586
375   SectionEnd
376   /* Language not supported by LyX
377   Section "Kreyòl Ayisyen" SecDHaitianCreole
378     ${DownloadHunspell} "ht_HT"
379     AddSize 118
380   SectionEnd */
381
382   Section /o "kurdî" SecDKurdishL
383     ${DownloadHunspell} "kmr"
384     AddSize 48
385   SectionEnd
386   /* Language not supported by LyX
387   Section /o "kurdо" SecDKurdishT
388     ${DownloadHunspell} "ku_TR"
389     AddSize 47
390   SectionEnd */
391
392   Section /o "Latina" SecDLatin
393     ${DownloadHunspell} "la_LA"
394     AddSize 1291
395   SectionEnd
396
397   Section /o "Lietuvių" SecDLithuanian
398     ${DownloadHunspell} "lt_LT"
399     AddSize 1151
400   SectionEnd
401
402   Section /o "Latviešu" SecDLatvian
403     ${DownloadHunspell} "lv_LV"
404     AddSize 2243
405   SectionEnd
406
407   Section /o "Mакедонски" SecDMacedonian
408     ${DownloadHunspell} "mk_MK"
409     AddSize 2862
410   SectionEnd
411
412   Section /o "Magyar" SecDHungarian
413     ${DownloadHunspell} "hu_HU"
414     AddSize 3672
415   SectionEnd
416
417   Section /o "मराठी" SecDMarathi
418     ${DownloadHunspell} "mr_IN"
419     AddSize 5291
420   SectionEnd
421
422   Section /o "Nederlands" SecDDutch
423     ${DownloadHunspell} "nl_NL"
424     AddSize 2393
425   SectionEnd
426
427   Section /o "Norsk (Bokmål)" SecDNorwegianNB
428     ${DownloadHunspell} "nb_NO"
429     AddSize 3992
430   SectionEnd
431
432   Section /o "Norsk (Nynorsk)" SecDNorwegianNN
433     ${DownloadHunspell} "nn_NO"
434     AddSize 2982
435   SectionEnd
436
437   Section /o "Occitan" SecDOccitan
438     ${DownloadHunspell} "oc_FR"
439     AddSize 684
440   SectionEnd
441
442   Section /o "ພາສາລາວ" SecDLao
443     ${DownloadHunspell} "lo_LA"
444     AddSize 200
445   SectionEnd
446
447   Section /o "Polski" SecDPolish
448     ${DownloadHunspell} "pl_PL"
449     AddSize 4675
450   SectionEnd
451
452   Section /o "Português (BR)" SecDPortugueseBR
453     ${DownloadHunspell} "pt_BR"
454     AddSize 5510
455   SectionEnd
456
457   Section "Português (PT)" SecDPortuguesePT
458     # already installed by default
459     SectionIn RO
460     #${DownloadHunspell} "pt_PT"
461     AddSize 1532
462   SectionEnd
463
464   Section /o "Româna" SecDRomanian
465     ${DownloadHunspell} "ro_RO"
466     AddSize 2199
467   SectionEnd
468
469   Section "Русский" SecDRussian
470     # already installed by default
471     SectionIn RO
472     #${DownloadHunspell} "ru_RU"
473     AddSize 1976
474   SectionEnd
475
476   Section /o "serbšćina (Dolno)" SecDSorbianD
477     ${DownloadHunspell} "dsb_DE"
478     AddSize 906
479   SectionEnd
480
481   Section /o "serbšćina (Horno)" SecDSorbianH
482     ${DownloadHunspell} "hsb_DE"
483     AddSize 741
484   SectionEnd
485
486   Section /o "Shqip" SecDAlbanian
487     ${DownloadHunspell} "sq_AL"
488     AddSize 2553
489   SectionEnd
490
491   Section /o "Slovenščina" SecDSlovenian
492     ${DownloadHunspell} "sl_SI"
493     AddSize 2914
494   SectionEnd
495
496   Section /o "Slovenčina" SecDSlovakian
497     ${DownloadHunspell} "sk_SK"
498     AddSize 3311
499   SectionEnd
500
501   Section /o "Српски (Ћирилица)" SecDSerbianC
502     ${DownloadHunspell} "sr_RS"
503     AddSize 3559
504   SectionEnd
505
506   Section /o "Srpski (Latinica)" SecDSerbianL
507     ${DownloadHunspell} "sr_RS-Latin"
508     AddSize 1997
509   SectionEnd
510
511   Section /o "Svenska" SecDSwedish
512     ${DownloadHunspell} "sv_SE"
513     AddSize 2287
514   SectionEnd
515
516   Section /o "தமிழ்" SecDTamil
517     ${DownloadHunspell} "ta_IN"
518     AddSize 5809
519   SectionEnd
520
521   Section /o "తెలుగు" SecDTelugu
522     ${DownloadHunspell} "te_IN"
523     AddSize 3324
524   SectionEnd
525   
526   Section /o "ไทย" SecDThai
527     ${DownloadHunspell} "th_TH"
528     AddSize 342
529   SectionEnd
530
531   Section /o "དབུས་སྐད་" SecDTibetan
532     ${DownloadHunspell} "bo_CN"
533     AddSize 7
534   SectionEnd
535
536   Section /o "Tiếng Việt" SecDVietnamese
537     ${DownloadHunspell} "vi_VN"
538     AddSize 40
539   SectionEnd
540
541   Section /o "Türkmençe" SecDTurkmen
542     ${DownloadHunspell} "tk_TM"
543     AddSize 928
544   SectionEnd
545
546   Section /o "Türkçe" SecDTurkish
547     ${DownloadHunspell} "tr_TR"
548     AddSize 9140
549   SectionEnd
550
551   Section /o "Українська" SecDUkrainian
552     ${DownloadHunspell} "uk_UA"
553     AddSize 2680
554   SectionEnd
555
556   Section /o "اردو" SecDUrdu
557     ${DownloadHunspell} "ur_PK"
558     AddSize 1379
559   SectionEnd
560
561 SectionGroupEnd
562
563 SectionGroup "$(SecThesaurus)" SecThesaurus
564
565   Section /o "العربية" SecTArabic
566     ${DownloadThesaurus} "ar_SA"
567     AddSize 761
568   SectionEnd
569
570   Section /o "Bahasa Indonesia" SecTIndonesian
571     ${DownloadThesaurus} "id_ID"
572     AddSize 2043
573   SectionEnd
574
575   Section /o "български" SecTBulgarian
576     ${DownloadThesaurus} "bg_BG"
577     AddSize 5313
578   SectionEnd
579
580   Section /o "Català" SecTCatalanian
581     ${DownloadThesaurus} "ca_ES"
582     AddSize 733
583   SectionEnd
584
585   Section /o "Ceština" SecTCzech
586     ${DownloadThesaurus} "cs_CZ"
587     AddSize 4723
588   SectionEnd
589
590   Section /o "Dansk" SecTDanish
591     ${DownloadThesaurus} "da_DK"
592     AddSize 4228
593   SectionEnd
594
595   Section /o "Deutsch (A)" SecTGermanAT
596     ${DownloadThesaurus} "de_AT"
597     AddSize 33721
598   SectionEnd
599
600   Section /o "Deutsch (CH)" SecTGermanCH
601     ${DownloadThesaurus} "de_CH"
602     AddSize 33721
603   SectionEnd
604
605   Section /o "Deutsch (D/A)" SecTGermanD
606     ${DownloadThesaurus} "de_DE"
607     AddSize 33721
608   SectionEnd
609
610   Section /o "Ελληνικά" SecTGreek
611     ${DownloadThesaurus} "el_GR"
612     AddSize 1795
613   SectionEnd
614
615   Section /o "English (AU)" SecTEnglishAU
616     ${DownloadThesaurus} "en_AU"
617     AddSize 21093
618   SectionEnd
619
620   Section /o "English (CA)" SecTEnglishCA
621     ${DownloadThesaurus} "en_CA"
622     AddSize 21093
623   SectionEnd
624
625   Section /o "English (GB)" SecTEnglishGB
626     ${DownloadThesaurus} "en_GB"
627     AddSize 21093
628   SectionEnd
629
630   Section /o "English (NZ)" SecTEnglishNZ
631     ${DownloadThesaurus} "en_NZ"
632     AddSize 21093
633   SectionEnd
634
635   Section /o "English (US)" SecTEnglishUS
636     ${DownloadThesaurus} "en_US"
637     AddSize 21093
638   SectionEnd
639
640   Section /o "Español" SecTSpanishES
641     ${DownloadThesaurus} "es_ES"
642     AddSize 3172
643   SectionEnd
644
645   Section /o "Español (MX)" SecTSpanishMX
646     ${DownloadThesaurus} "es_MX"
647     AddSize 3172
648   SectionEnd
649
650   Section /o "Français" SecTFrench
651     ${DownloadThesaurus} "fr_FR"
652     AddSize 5192
653   SectionEnd
654
655   Section /o "Français (Canada)" SecTFrenchCanada
656     ${DownloadThesaurus} "fr_CA"
657     AddSize 5192
658   SectionEnd
659
660   Section /o "Gaeilge" SecTIrish
661     ${DownloadThesaurus} "ga_IE"
662     AddSize 35989
663   SectionEnd
664
665   Section /o "Galego" SecTGalician
666     ${DownloadThesaurus} "gl_ES"
667     AddSize 499
668   SectionEnd
669
670   Section /o "Íslenska" SecTIcelandic
671     ${DownloadThesaurus} "is_IS"
672     AddSize 170
673   SectionEnd
674
675   Section /o "Italiano" SecTItalian
676     ${DownloadThesaurus} "it_IT"
677     AddSize 2521
678   SectionEnd
679
680   Section /o "Latviešu" SecTLatvian
681     ${DownloadThesaurus} "lv_LV"
682     AddSize 2
683   SectionEnd
684
685   Section /o "Magyar" SecTHungarian
686     ${DownloadThesaurus} "hu_HU"
687     AddSize 2473
688   SectionEnd
689
690   Section /o "Nederlands" SecTDutch
691     ${DownloadThesaurus} "nl_NL"
692     AddSize 6641
693   SectionEnd
694   /* Language not supported by LyX
695   Section /o "नेपाली" SecTNepali
696     ${DownloadThesaurus} "ne_NP"
697     AddSize 967
698   SectionEnd */
699
700   Section /o "Norsk (Bokmål)" SecTNorwegianNB
701     ${DownloadThesaurus} "nb_NO"
702     AddSize 2535
703   SectionEnd
704
705   Section /o "Norsk (Nynorsk)" SecTNorwegianNN
706     ${DownloadThesaurus} "nn_NO"
707     AddSize 2
708   SectionEnd
709
710   Section /o "Polski" SecTPolish
711     ${DownloadThesaurus} "pl_PL"
712     AddSize 3088
713   SectionEnd
714
715   Section /o "Português" SecTPortuguesePT
716     ${DownloadThesaurus} "pt_PT"
717     AddSize 3858
718   SectionEnd
719
720   Section /o "Româna" SecTRomanian
721     ${DownloadThesaurus} "ro_RO"
722     AddSize 3647
723   SectionEnd
724
725   Section /o "Русский" SecTRussian
726     ${DownloadThesaurus} "ru_RU"
727     AddSize 2142
728   SectionEnd
729
730   Section /o "Slovenšcina" SecTSlovenian
731     ${DownloadThesaurus} "sl_SI"
732     AddSize 1257
733   SectionEnd
734
735   Section /o "Slovenčina" SecTSlovakian
736     ${DownloadThesaurus} "sk_SK"
737     AddSize 928
738   SectionEnd
739
740   Section /o "Svenska" SecTSwedish
741     ${DownloadThesaurus} "sv_SE"
742     AddSize 737
743   SectionEnd
744
745   Section /o "Українська" SecTUkrainian
746     ${DownloadThesaurus} "uk_UA"
747     AddSize 1309
748   SectionEnd
749
750 SectionGroupEnd
751
752 # Custom function, called before entering the components page
753 # checks the directory for already existent dictionaries and marks the corresponding sections above
754 # also activates the section to download dictionary for the current UI language
755 Function CheckDictionaries
756
757   System::Call "kernel32::GetUserDefaultUILanguage() i.s"
758   Pop $lcID
759
760   # Check Hunspell dictionaries           language code    language ID (HHH means does not exis)
761   ${CheckHunspell} ${SecDAfrikaans}       "af_ZA"          "1078"
762   ${CheckHunspell} ${SecDArabic}          "ar_SA"          "1025"
763   ${CheckHunspell} ${SecDArmenian}        "hy_AM"          "1067"
764   ${CheckHunspell} ${SecDIndonesian}      "id_ID"          "1057"
765   ${CheckHunspell} ${SecDMalayan}         "ms_MY"          "1086"
766   ${CheckHunspell} ${SecDBelarusian}      "be_BY"          "1059"
767   ${CheckHunspell} ${SecDBosnian}         "bs_BA"          "5146"
768   ${CheckHunspell} ${SecDBreton}          "br_FR"          "1150"
769   ${CheckHunspell} ${SecDBulgarian}       "bg_BG"          "1026"
770   ${CheckHunspell} ${SecDCatalanian}      "ca_ES"          "1027"
771   ${CheckHunspell} ${SecDCzech}           "cs_CZ"          "1029"
772   ${CheckHunspell} ${SecDCoptic}          "cop_EG"         "HHH1"
773   ${CheckHunspell} ${SecDWelsh}           "cy_GB"          "1106"
774   ${CheckHunspell} ${SecDDanish}          "da_DK"          "1030"
775   ${CheckHunspell} ${SecDGermanAlt}       "de-alt"         "HHH2"
776   ${CheckHunspell} ${SecDGermanAT}        "de_AT"          "3079"
777   ${CheckHunspell} ${SecDGermanCH}        "de_CH"          "2055"
778  #${CheckHunspell} ${SecDGermanD}         "de_DE"          "1031" # Installed by default
779   ${CheckHunspell} ${SecDGreek}           "el_GR"          "1032"
780   ${CheckHunspell} ${SecDEstonian}        "et_EE"          "1061"
781   ${CheckHunspell} ${SecDEnglishAU}       "en_AU"          "3081"
782   ${CheckHunspell} ${SecDEnglishCA}       "en_CA"          "4105"
783  #${CheckHunspell} ${SecDEnglishGB}       "en_GB"          "2057" # Installed by default
784   ${CheckHunspell} ${SecDEnglishNZ}       "en_NZ"          "5129"
785  #${CheckHunspell} ${SecDEnglishUS}       "en_US"          "1033" # Installed by default
786  #${CheckHunspell} ${SecDSpanishES}       "es_ES"          "1034" # Installed by default
787  #${CheckHunspell} ${SecDSpanishMX}       "es_MX"          "2058" # Installed by default
788   ${CheckHunspell} ${SecDEsperanto}       "eo_EO"          "HHH3"
789   ${CheckHunspell} ${SecDBasque}          "eu_ES"          "1069"
790   ${CheckHunspell} ${SecDFarsi}           "fa_IR"          "1065"
791  #${CheckHunspell} ${SecDFaroese}         "fo_FO"          "1080" # Not supported
792  #${CheckHunspell} ${SecDFrench}          "fr_FR"          "1036" # Installed by default
793   ${CheckHunspell} ${SecDFrenchCanada}    "fr_CA"          "3084"
794   ${CheckHunspell} ${SecDFriulian}        "fur_IT"         "HHH4"
795   ${CheckHunspell} ${SecDIrish}           "ga_IE"          "2108"
796   ${CheckHunspell} ${SecDScottish}        "gd_GB"          "1084"
797   ${CheckHunspell} ${SecDGalician}        "gl_ES"          "1110"
798   ${CheckHunspell} ${SecDCroatian}        "hr_HR"          "1050"
799   ${CheckHunspell} ${SecDHindi}           "hi_IN"          "1081"
800   ${CheckHunspell} ${SecDInterlingua}     "ia_IA"          "HHH5"
801   ${CheckHunspell} ${SecDIcelandic}       "is_IS"          "1039"
802   ${CheckHunspell} ${SecDItalian}         "it_IT"          "1040"
803   ${CheckHunspell} ${SecDHebrew}          "he_IL"          "1037"
804  #${CheckHunspell} ${SecDGeorgian}        "ka_GE"          "1079" # Missing
805   ${CheckHunspell} ${SecDKazakh}          "kk_KZ"          "1087"
806   ${CheckHunspell} ${SecDKhmer}           "km_KH"          "1107"
807   ${CheckHunspell} ${SecDKorean}          "ko_KR"          "1042"
808  #${CheckHunspell} ${SecDHaitianCreole}   "ht_HT"          "HHH6" # Not supported
809   ${CheckHunspell} ${SecDKurdishL}        "kmr"            "HHH7"
810  #${CheckHunspell} ${SecDKurdishT}        "ku_TR"          "HHH8" # Not supported
811   ${CheckHunspell} ${SecDLatin}           "la_LA"          "1142"
812   ${CheckHunspell} ${SecDLithuanian}      "lt_LT"          "1063"
813   ${CheckHunspell} ${SecDLatvian}         "lv_LV"          "1062"
814   ${CheckHunspell} ${SecDMacedonian}      "mk_MK"          "1071"
815   ${CheckHunspell} ${SecDHungarian}       "hu_HU"          "1038"
816   ${CheckHunspell} ${SecDMarathi}         "mr_IN"          "1102"
817   ${CheckHunspell} ${SecDDutch}           "nl_NL"          "1043"
818   ${CheckHunspell} ${SecDNorwegianNB}     "nb_NO"          "1044"
819   ${CheckHunspell} ${SecDNorwegianNN}     "nn_NO"          "2068"
820   ${CheckHunspell} ${SecDOccitan}         "oc_FR"          "HHH9"
821   ${CheckHunspell} ${SecDLao}             "lo_LA"          "1108"
822   ${CheckHunspell} ${SecDPolish}          "pl_PL"          "1045"
823   ${CheckHunspell} ${SecDPortugueseBR}    "pt_BR"          "1046"
824  #${CheckHunspell} ${SecDPortuguesePT}    "pt_PT"          "2070" # Installed by default
825   ${CheckHunspell} ${SecDRomanian}        "ro_RO"          "1048"
826  #${CheckHunspell} ${SecDRussian}         "ru_RU"          "1049" # Installed by default
827   ${CheckHunspell} ${SecDSorbianD}        "dsb_DE"         "HHH0"
828   ${CheckHunspell} ${SecDSorbianH}        "hsb_DE"         "HHH1"
829   ${CheckHunspell} ${SecDAlbanian}        "sq_AL"          "1052"
830   ${CheckHunspell} ${SecDSlovenian}       "sl_SI"          "1060"
831   ${CheckHunspell} ${SecDSlovakian}       "sk_SK"          "1051"
832   ${CheckHunspell} ${SecDSerbianC}        "sr_RS"          "3098"
833   ${CheckHunspell} ${SecDSerbianL}        "sr_RS-Latin"    "2074"
834   ${CheckHunspell} ${SecDSwedish}         "sv_SE"          "1053"
835   ${CheckHunspell} ${SecDTamil}           "ta_IN"          "1097"
836   ${CheckHunspell} ${SecDTelugu}          "te_IN"          "1098"
837   ${CheckHunspell} ${SecDThai}            "th_TH"          "1054"
838   ${CheckHunspell} ${SecDTibetan}         "bo_CN"          "1105"
839   ${CheckHunspell} ${SecDVietnamese}      "vi_VN"          "1066"
840   ${CheckHunspell} ${SecDTurkmen}         "tk_TM"          "1090"
841   ${CheckHunspell} ${SecDTurkish}         "tr_TR"          "1055"
842   ${CheckHunspell} ${SecDUkrainian}       "uk_UA"          "1058"
843   ${CheckHunspell} ${SecDUrdu}            "ur_PK"          "1056"
844
845   # Check Thesaurus dictionaries
846   ${CheckThesaurus} ${SecTArabic}           "ar_SA"
847   ${CheckThesaurus} ${SecTIndonesian}       "id_ID"
848   ${CheckThesaurus} ${SecTBulgarian}        "bg_BG"
849   ${CheckThesaurus} ${SecTCatalanian}       "ca_ES"
850   ${CheckThesaurus} ${SecTCzech}            "cs_CZ"
851   ${CheckThesaurus} ${SecTDanish}           "da_DK"
852   ${CheckThesaurus} ${SecTGermanAT}         "de_AT"
853   ${CheckThesaurus} ${SecTGermanCH}         "de_CH"
854   ${CheckThesaurus} ${SecTGermanD}          "de_DE"
855   ${CheckThesaurus} ${SecTGreek}            "el_GR"
856   ${CheckThesaurus} ${SecTEnglishAU}        "en_AU"
857   ${CheckThesaurus} ${SecTEnglishCA}        "en_CA"
858   ${CheckThesaurus} ${SecTEnglishGB}        "en_GB"
859   ${CheckThesaurus} ${SecTEnglishNZ}        "en_NZ"
860   ${CheckThesaurus} ${SecTEnglishUS}        "en_US"
861   ${CheckThesaurus} ${SecTSpanishES}        "es_ES"
862   ${CheckThesaurus} ${SecTSpanishMX}        "es_MX"
863   ${CheckThesaurus} ${SecTFrench}           "fr_FR"
864   ${CheckThesaurus} ${SecTFrenchCanada}     "fr_CA"
865   ${CheckThesaurus} ${SecTIrish}            "ga_IE"
866   ${CheckThesaurus} ${SecTGalician}         "gl_ES"
867   ${CheckThesaurus} ${SecTIcelandic}        "is_IS"
868   ${CheckThesaurus} ${SecTItalian}          "it_IT"
869   ${CheckThesaurus} ${SecTLatvian}          "lv_LV"
870   ${CheckThesaurus} ${SecTHungarian}        "hu_HU"
871   ${CheckThesaurus} ${SecTDutch}            "nl_NL"
872  #${CheckThesaurus} ${SecTNepali}           "ne_NP" # not supported
873   ${CheckThesaurus} ${SecTNorwegianNB}      "nb_NO"
874   ${CheckThesaurus} ${SecTNorwegianNN}      "nn_NO"
875   ${CheckThesaurus} ${SecTPolish}           "pl_PL"
876   ${CheckThesaurus} ${SecTPortuguesePT}     "pt_PT"
877   ${CheckThesaurus} ${SecTRomanian}         "ro_RO"
878   ${CheckThesaurus} ${SecTRussian}          "ru_RU"
879   ${CheckThesaurus} ${SecTSlovenian}        "sl_SI"
880   ${CheckThesaurus} ${SecTSlovakian}        "sk_SK"
881   ${CheckThesaurus} ${SecTSwedish}          "sv_SE"
882   ${CheckThesaurus} ${SecTUkrainian}        "uk_UA"
883
884 FunctionEnd