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