]> git.lyx.org Git - lyx.git/blob - lib/languages
89ecabf75435239f55c9721e1c3535e4d0db7179
[lyx.git] / lib / languages
1 ##########################################################################
2 #
3 # Languages supported by LyX.
4 #
5 # Syntax:
6 #
7 # Language <lyxname>
8 #       GuiName            "<Gui Name>"
9 #       HasGuiSupport      <true|false>
10 #       BabelName          <babelname>
11 #       PolyglossiaName    <polyglossianame>
12 #       PolyglossiaOpts    "<language-specific options>"
13 #       QuoteStyle         <british|danish|english|french|frenchin|
14 #                           german|polish|russian|swedish|swedishg|swiss|plain>
15 #       DateFormats        "<long>|<medium>|<short>"
16 #       Encoding           <encoding>
17 #       FontEncoding       <font encoding|font encoding|...>
18 #       InternalEncoding   <true|false>
19 #       RTL                <true|false>
20 #       AsBabelOptions     <true|false>
21 #       LangCode           <language_code>
22 #       LangVariety        <language_variety>
23 #       PreBabelPreamble
24 #         <extra latex code inserted before babel>
25 #       EndPreBabelPreamble
26 #       PostBabelPreamble
27 #         <extra latex code inserted after babel>
28 #       EndPostBabelPreamble
29 #       Requires           <requirement>
30 #       Provides           <babel language feature>
31 # End
32 #
33 #
34 # NOTES:
35 #
36 # * If we provide Polyglossia languages with different options, the default
37 #   options (such as "variant=american", "spelling=modern") should be
38 #   explicitely spelled out (in order to provide mixing of such variants).
39 # * Omitted elements will be treated as empty (if string) or "false"
40 #   (if boolean).
41 # * When HasGuiSupport is true, the language is candidate to appear in
42 #   the list of possible GUI languages in the Preferences dialog. It
43 #   will actually appear there only if a corresponding .mo file can be
44 #   found among the translations. When several languages correspond to
45 #   the same translation -- like English, English (US) and English
46 #   (UK) -- try to select the entry that is most generic -- here
47 #   English.
48 # * The QuoteStyle arguments correspond to the following styles:
49 #                  PRIMARY              SECONDARY
50 #   - british:    `text'                ``text''        (6_9 -- 66_99)
51 #   - cjk:        corner brackets       white corner br.
52 #   - cjk-angle:  double angle br.      angle br.
53 #   - danish:     >>text<<              >text<          (inward guillemets)
54 #   - english:    ``text''              `text'          (66_99 -- 6_9)
55 #   - french:     <<text>>              ``text''        (outward guillemets -- 66_99)
56 #   - frenchin:   <<text>>              <<text>>        (French Imprimerie Nationale style)
57 #   - german:     ,,text``              ,text`          (99/66 -- 9/6)
58 #   - polish:     ,,text''              ,text'          (99/99 -- 9/9)
59 #   - russian:    <<text>>              ,,text``        (outward guillemets -- 99/66)
60 #   - swedish:    ''text''              'text'          (99_99 -- 9_9)
61 #   - swedishg:   >>text>>              'text'          (Swedish Guillemets)
62 #   - swiss:      <<text>>              <text>          (outward guillemets)
63 #   - plain:      "text"                'text'          (non-typographical quotes)
64 #   Note that the option names have been selected (rather arbitrarily)
65 #   because the respective styles are common in the respective countries.
66 #   Of course this does not imply any fixed relation to those countries.
67 # * DateFormats lists the localized conventions for three date forms:
68 #   - Long: December 1, 2018
69 #   - Medium: Dec 1, 2018
70 #   - Short: 1/12/2018
71 #   These are separated by | and use the QDate syntax:
72 #   * d the day as number without a leading zero (1 to 31)
73 #   * dd        the day as number with a leading zero (01 to 31)
74 #   * ddd       the abbreviated localized day name (e.g. 'Mon' to 'Sun')
75 #   * dddd      the long localized day name (e.g. 'Monday' to 'Sunday')
76 #   * M the month as number without a leading zero (1 to 12)
77 #   * MM        the month as number with a leading zero (01 to 12)
78 #   * MMM       the abbreviated localized month name (e.g. 'Jan' to 'Dec')
79 #   * MMMM      the long localized month name (e.g. 'January' to 'December')
80 #   * yy        the year as two digit number (00 to 99)
81 #   * yyyy      the year as four digit number
82 # * Encoding is the default encoding used with TeX fonts.
83 #   It is only used if Document > Settings > Language > Encoding
84 #   is set to "Language Default" or "Language Default (no inputenc)"
85 #   and "use non-TeX fonts" is FALSE.
86 #   Encoding "inherit" means: keep encoding of the context (used by
87 #   latex_language).
88 # * FontEncoding is a bar-separated list of font encodings.
89 #   The first value is the required font encoding for correct hyphenation with
90 #   8-bit TeX (http://www.hyphenation.org). Eventually following values may be
91 #   used if the selected font is unavailable in FontEncoding. They provide all
92 #   letters used in the language, but some only as "surrogate pairs" with
93 #   possible problems for hyphenation and drag-and-drop from the generated
94 #   documents. Default: "ASCII".
95 #   * "FontEncoding ASCII" means: "works with any standard text encoding
96 #     (T<n>) as well as OT1".
97 #   * "FontEncoding none" tells LyX that fontenc should not be loaded with
98 #     this language.
99 # * InternalEncoding is used to tell LyX that babel internally sets a
100 #   non-standard font encoding (such as hebrew to LHE or greek to LGR).
101 #   If True, LyX takes care for characters/macros that do not exist in
102 #   some font encodings ("<", ">", "|" and straight quote).
103 #   It is not required for standard encodings like T2A. See bug #5091.
104 # * AsBabelOptions advices LyX to pass the languages locally to babel, not
105 #   globally to the class. In the old days, some languages (basically those
106 #   not natively supported by babel) needed this.
107 #   FIXME: in this case, we might still need to pass the other languages
108 #          globally, for the use of other packages (such as varioref).
109 # * LangCode is also used for spellchecking and thesaurus, where the
110 #   dictionaries are named accordingly. Thus, check this when introducing/
111 #   changing language codes (especially aspell, thesaurus).
112 #   TODO: maybe use Best Current Practice (BCP 47) codes for LangCode
113 #         http://www.rfc-editor.org/rfc/bcp/bcp47.txt
114 #         http://www.w3.org/International/articles/language-tags/
115 #         http://www.iana.org/assignments/language-subtag-registry
116 # * LangVariety is used by the aspell spellchecker to differentiate
117 #   dictionaries for different varieties of a given language (e.g. German
118 #   pre-1998 and post-1998 spelling). The aspell dictionaries are named
119 #   language[_REGION][-variety].multi, e.g. de-alt.multi for "German (old
120 #   spelling)" (see http://aspell.net/man-html/Dictionary-Naming.html)
121 # * Provides lists features that are provided by specific Babel languages,
122 #   but are available globally if this language is used (not only for this
123 #   language. Examples are \textgreek (Greek) and \textcyrillic (Russian).
124 #
125 ##########################################################################
126
127 #
128 # LyX-internal languages
129 #
130
131 Language ignore
132         GuiName          "Ignore"
133         BabelName        ignore
134         PolyglossiaName  ignore
135         Encoding         inherit
136         LangCode         ignore
137 End
138
139 Language latex
140         GuiName          "LaTeX"
141         Encoding         inherit
142         LangCode         latex
143 End
144
145 #
146 # Real languages
147 #
148
149 # not yet supported by polyglossia
150 Language afrikaans
151         GuiName          "Afrikaans"
152         BabelName        afrikaans
153         QuoteStyle       polish
154         Encoding         iso8859-15
155         FontEncoding     T1|OT1
156         DateFormats      "dd MMMM yyyy|dd MMM yyyy|yyyy/MM/dd"
157         LangCode         af_ZA
158 End
159
160 # FontEncoding: no hyphenation, but uses Ç/ç und Ë/ë
161 Language albanian
162         GuiName          "Albanian"
163         BabelName        albanian
164         PolyglossiaName  albanian
165         QuoteStyle       swiss
166         Encoding         iso8859-2
167         FontEncoding     T1|OT1
168         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
169         LangCode         sq_AL
170 End
171
172 Language american
173         GuiName          "English (USA)"
174         BabelName        american
175         PolyglossiaName  english
176         PolyglossiaOpts  "variant=american"
177         QuoteStyle       english
178         Encoding         iso8859-15
179         FontEncoding     ASCII
180         DateFormats      "MMMM dd, yyyy|MMM dd, yyyy|M/d/yyyy"
181         LangCode         en_US
182 End
183
184 # not supported by babel
185 Language amharic
186         GuiName          "Amharic"
187         PolyglossiaName  amharic
188         Encoding         utf8
189         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
190         LangCode         am_ET
191 End
192
193 # In Babel, this is supported since v. 1.8a of babel-greek (2013-12-03)
194 # We introduce it with LyX 2.2 to give the support time to settle.
195 Language ancientgreek
196         GuiName           "Greek (ancient)"
197         BabelName         greek
198         PostBabelPreamble
199         \languageattribute{greek}{ancient}
200         EndPostBabelPreamble
201         PolyglossiaName   greek
202         PolyglossiaOpts   "variant=ancient"
203         QuoteStyle        french
204         Encoding          iso8859-7
205         InternalEncoding  true
206         FontEncoding      LGR
207         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
208         LangCode          grc_GR
209         Provides          textgreek
210 End
211
212 # FIXME: dummy babel language for arabic_arabtex to be able
213 # to switch the language the way of the ArabTeX-package
214 Language arabic_arabtex
215         GuiName          "Arabic (ArabTeX)"
216         HasGuiSupport    true
217         BabelName        arabtex
218         QuoteStyle       french
219         Encoding         cp1256
220         DateFormats      "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
221         RTL              true
222         LangCode         ar_SA
223 End
224
225 # polyglossia uses "Arabic" for the lang environment
226 Language arabic_arabi
227         GuiName          "Arabic (Arabi)"
228         BabelName        arabic
229         PolyglossiaName  arabic
230         QuoteStyle       french
231         Encoding         cp1256
232         FontEncoding     LAE
233         DateFormats      "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
234         RTL              true
235         PostBabelPreamble
236           % arabi + hyperref redefines \noboundary as local textcommand
237           \let\orig@noboundary\noboundary
238           \DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
239         EndPostBabelPreamble
240         LangCode         ar_SA
241 End
242
243 # not supported by babel
244 Language armenian
245         GuiName          "Armenian"
246         PolyglossiaName  armenian
247         QuoteStyle       swiss
248         Encoding         utf8
249         DateFormats      "d MMMM، yyyy|d MMM، yyyy|d/M/yyyy"
250         LangCode         hy_AM
251 End
252
253 # not supported by babel
254 Language asturian
255         GuiName          "Asturian"
256         PolyglossiaName  asturian
257         QuoteStyle       french
258         Encoding         iso8859-15
259         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
260         LangCode         ast_ES
261 End
262
263
264 Language australian
265         GuiName          "English (Australia)"
266         BabelName        australian
267         PolyglossiaName  english
268         PolyglossiaOpts  "variant=australian"
269         Encoding         iso8859-15
270         FontEncoding     ASCII
271         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
272         QuoteStyle       english
273         LangCode         en_AU
274 End
275
276 # In polyglossia, this is supported since release 1.33.4 (May 2014)
277 # We introduce it with LyX 2.2 to give the support time to settle.
278 # Due to the variety, we use no country code.
279 Language austrian
280         GuiName          "German (Austria, old spelling)"
281         BabelName        austrian
282         PolyglossiaName  german
283         PolyglossiaOpts  "variant=austrian,spelling=old,babelshorthands=true"
284         QuoteStyle       german
285         Encoding         iso8859-15
286         FontEncoding     T1|OT1
287         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
288         LangCode         de
289         LangVariety      alt
290 End
291
292 # In polyglossia, this is supported since release 1.33.4 (May 2014)
293 # We introduce it with LyX 2.2 to give the support time to settle.
294 Language naustrian
295         GuiName          "German (Austria)"
296         BabelName        naustrian
297         PolyglossiaName  german
298         PolyglossiaOpts  "variant=austrian,spelling=new,babelshorthands=true"
299         QuoteStyle       german
300         Encoding         iso8859-15
301         FontEncoding     T1|OT1
302         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
303         LangCode         de_AT
304 End
305
306 Language bahasa
307         GuiName          "Indonesian"
308         HasGuiSupport    true
309         BabelName        bahasa
310         PolyglossiaName  bahasai
311         QuoteStyle       english
312         Encoding         iso8859-15
313         FontEncoding     ASCII
314         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
315         LangCode         id_ID
316 End
317
318 Language bahasam
319         GuiName          "Malay"
320         BabelName        bahasam
321         PolyglossiaName  bahasam
322         QuoteStyle       english
323         Encoding         iso8859-15
324         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
325         LangCode         ms_MY
326 End
327
328 Language basque
329         GuiName          "Basque"
330         HasGuiSupport    true
331         BabelName        basque
332         PolyglossiaName  basque
333         QuoteStyle       swiss
334         Encoding         iso8859-15
335         FontEncoding     T1|OT1
336         DateFormats      "yyyy MMMM dd|yyyy MMM dd|yyyy/MM/dd"
337         LangCode         eu_ES
338         PostBabelPreamble
339         \addto\extrasbasque{\bbl@deactivate{~}}
340         EndPostBabelPreamble
341 End
342
343 # not yet supported by polyglossia
344 # Up to 2018-08-25 (babel-belarusian 1.4), the babel option is "belarusianb"
345 # but the language name "belarusian" (without trailing "b").
346 Language belarusian
347         GuiName          "Belarusian"
348         BabelName        belarusian
349         QuoteStyle       french
350         Encoding         cp1251
351         FontEncoding     T2A
352         DateFormats      "dd MMMM yyyy|d MMM yyyy|d.M.yyyy"
353         LangCode         be_BY
354 End
355
356 # not yet supported by polyglossia
357 # The (rarely used) Cyrillic script is not supported (try serbian).
358 Language bosnian
359         GuiName          "Bosnian"
360         BabelName        bosnian
361         QuoteStyle       polish
362         Encoding         iso8859-2
363         FontEncoding     T1|OT1
364         DateFormats      "d. MMMM yyyy|d. MMM yyyy|yyyy-MM-dd"
365         LangCode         bs_BA
366 End
367
368 Language brazilian
369         GuiName          "Portuguese (Brazil)"
370         HasGuiSupport    true
371         BabelName        brazil
372         PolyglossiaName  brazil
373         QuoteStyle       english
374         Encoding         iso8859-15
375         FontEncoding     T1|OT1
376         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|dd/MM/yyyy"
377         LangCode         pt_BR
378 End
379
380 # FontEncoding: # ? no hyphenation, but uses ñ
381 Language breton
382         GuiName          "Breton"
383         BabelName        breton
384         PolyglossiaName  breton
385         QuoteStyle       french
386         Encoding         iso8859-15
387         #FontEncoding    T1
388         DateFormats      "dd MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
389         LangCode         br_FR
390 End
391
392 Language british
393         GuiName          "English (UK)"
394         BabelName        british
395         PolyglossiaName  english
396         PolyglossiaOpts  "variant=british"
397         QuoteStyle       british
398         Encoding         iso8859-15
399         FontEncoding     ASCII
400         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
401         LangCode         en_GB
402 End
403
404 Language bulgarian
405         GuiName          "Bulgarian"
406         BabelName        bulgarian
407         PolyglossiaName  bulgarian
408         QuoteStyle       german
409         Encoding         cp1251
410         FontEncoding     T2A
411         DateFormats      "dd MMMM yyyy|d MMM yyyy|yyyy-M-d"
412         LangCode         bg_BG
413         Provides         textcyrillic
414 End
415
416 # not yet supported by polyglossia
417 Language canadian
418         GuiName          "English (Canada)"
419         BabelName        canadian
420 #       PolyglossiaName  english
421 #       PolyglossiaOpts  "variant=canadian"
422         QuoteStyle       english
423         Encoding         iso8859-15
424         FontEncoding     ASCII
425         DateFormats      "MMMM d, yyyy|d MMM yyyy|yyyy-MM-dd"
426         LangCode         en_CA
427 End
428
429 # not yet supported by polyglossia
430 # Note: If polyglossia support gets implemented, french needs
431 #       PolyglossiaOpts  "variant=french"
432 Language canadien
433         GuiName          "French (Canada)"
434         BabelName        canadien
435 #       PolyglossiaName  french
436 #       PolyglossiaOpts  "variant=canadien"
437         QuoteStyle       french
438         Encoding         iso8859-15
439         FontEncoding     T1|OT1
440         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
441         LangCode         fr_CA
442 End
443
444 Language catalan
445         GuiName          "Catalan"
446         HasGuiSupport    true
447         BabelName        catalan
448         PolyglossiaName  catalan
449         PolyglossiaOpts  "babelshorthands=true"
450         QuoteStyle       french
451         Encoding         iso8859-15
452         FontEncoding     T1|OT1
453         DateFormats      "d / MMMM / yyyy|d / MMM / yyyy|dd/MM/yyyy"
454         LangCode         ca_ES
455 End
456
457 # uses CJK package
458 Language chinese-simplified
459         GuiName          "Chinese (simplified)"
460         HasGuiSupport    true
461         Encoding         euc-cn
462         QuoteStyle       english
463         LangCode         zh_CN
464         DateFormats      "yyyy年M月d日|yyyy-M-d|yy-M-d"
465         Requires         CJK
466 End
467
468 # uses CJK package
469 Language chinese-traditional
470         GuiName         "Chinese (traditional)"
471         HasGuiSupport    true
472         QuoteStyle       cjk
473         Encoding         utf8-cjk
474         LangCode         zh_TW
475         DateFormats      "yyyy年M月d日|yyyy年M月d日|yy年M月d日"
476         Requires         CJK
477 End
478
479 # not supported by babel
480 # FIXME DateFormats
481 Language coptic
482         GuiName          "Coptic"
483         PolyglossiaName  coptic
484         Encoding         utf8
485         LangCode         cop_EG
486 End
487
488 Language croatian
489         GuiName          "Croatian"
490         BabelName        croatian
491         PolyglossiaName  croatian
492         QuoteStyle       polish
493         Encoding         iso8859-2
494         FontEncoding     T1|OT1
495         DateFormats      "d. MMMM yyyy.|d. MMM. yyyy.|dd.MM.yyyy."
496         LangCode         hr_HR
497 End
498
499 Language czech
500         GuiName          "Czech"
501         HasGuiSupport    true
502         BabelName        czech
503         PolyglossiaName  czech
504         QuoteStyle       german
505         Encoding         iso8859-2
506         FontEncoding     T1|OT1
507         DateFormats      "d. MMMM yyyy|d. MMM. yyyy|d.M.yyyy"
508         LangCode         cs_CZ
509 End
510
511 Language danish
512         GuiName          "Danish"
513         HasGuiSupport    true
514         BabelName        danish
515         PolyglossiaName  danish
516         QuoteStyle       danish
517         Encoding         iso8859-15
518         FontEncoding     T1|OT1
519         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd/MM/yyyy"
520         LangCode         da_DK
521 End
522
523 # not supported by babel
524 Language divehi
525         GuiName          "Divehi (Maldivian)"
526         PolyglossiaName  divehi
527         Encoding         utf8
528         DateFormats      "yyyy MMMM dd|yyyy MMM dd|dd/MM/yyyy"
529         LangCode         dv_MV
530 End
531
532 Language dutch
533         GuiName          "Dutch"
534         HasGuiSupport    true
535         BabelName        dutch
536         PolyglossiaName  dutch
537         PolyglossiaOpts  "babelshorthands=true"
538         QuoteStyle       polish
539         Encoding         iso8859-15
540         FontEncoding     T1|OT1
541         DateFormats      "d MMMM yyyy|d MMM yyyy|d-M-yyyy"
542         LangCode         nl_NL
543 End
544
545 Language english
546         GuiName          "English"
547         HasGuiSupport    true
548         BabelName        english
549         PolyglossiaName  english
550         PolyglossiaOpts  "variant=american"
551         QuoteStyle       english
552         DateFormats      "MMMM dd, yyyy|MMM dd, yyyy|M/d/yyyy"
553         Encoding         iso8859-15
554         FontEncoding     ASCII
555         LangCode         en_US
556 End
557
558 # Esperanto has no country code because it is an auxiliary language.
559 # We therefore use the name of its hunspell dictionary.
560 Language esperanto
561         GuiName          "Esperanto"
562         BabelName        esperanto
563         PolyglossiaName  esperanto
564         QuoteStyle       english
565         Encoding         iso8859-3
566         FontEncoding     IL3|T1|OT1
567         DateFormats      "'la' d 'de' MMMM yyyy|'la' d 'de' MMM yyyy|MM/dd/yyyy"
568         LangCode         eo_EO
569 End
570
571 Language estonian
572         GuiName          "Estonian"
573         BabelName        estonian
574         PolyglossiaName  estonian
575         QuoteStyle       german
576         Encoding         iso8859-15
577         FontEncoding     T1|OT1
578         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
579         LangCode         et_EE
580         PostBabelPreamble
581         \addto\extrasestonian{\bbl@deactivate{~}}
582         EndPostBabelPreamble
583 End
584
585 # the preamble definitions are only used due to bugs in the
586 # arabi-package -- remove them if they become unnecessary!
587 Language farsi
588         GuiName          "Farsi"
589         BabelName        farsi
590         PolyglossiaName  farsi
591         Encoding         utf8
592         FontEncoding     LAE,LFE
593         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy/M/d"
594         RTL              true
595         LangCode         fa_IR
596         QuoteStyle       english
597         PostBabelPreamble
598         \DeclareTextSymbol{\guillemotright}{LFE}{62}
599         \DeclareTextSymbol{\guillemotleft}{LFE}{60}
600         EndPostBabelPreamble
601 End
602
603 Language finnish
604         GuiName          "Finnish"
605         HasGuiSupport    true
606         BabelName        finnish
607         PolyglossiaName  finnish
608         QuoteStyle       swedish
609         Encoding         iso8859-15
610         FontEncoding     T1|OT1
611         DateFormats      "d. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
612         LangCode         fi_FI
613 End
614
615 # We redefine \og and \fg (guillemets) for older french language definitions
616 Language french
617         GuiName          "French"
618         HasGuiSupport    true
619         BabelName        french
620         PolyglossiaName  french
621         QuoteStyle       french
622         Encoding         iso8859-15
623         FontEncoding     T1|OT1
624         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
625         LangCode         fr_FR
626         PostBabelPreamble
627         \addto\extrasfrench{%
628            \providecommand{\og}{\leavevmode\flqq~}%
629            \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
630         }
631         EndPostBabelPreamble
632 End
633
634 Language friulan
635         GuiName          "Friulian"
636         HasGuiSupport    true
637         BabelName        friulan
638         PolyglossiaName  friulan
639         QuoteStyle       french
640         Encoding         iso8859-15
641         FontEncoding     T1|OT1
642         DateFormats      "d 'di' MMMM 'dal' yyyy|d 'di' MMM 'dal' yyyy|dd/MM/yyyy"
643         LangCode         fur_IT
644 End
645
646 Language galician
647         GuiName          "Galician"
648         HasGuiSupport    true
649         BabelName        galician
650         PolyglossiaName  galician
651         QuoteStyle       french
652         Encoding         iso8859-15
653         FontEncoding     T1|OT1
654         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|dd/MM/yyyy"
655         LangCode         gl_ES
656         PostBabelPreamble
657         \addto\shorthandsgalician{\galiciandeactivate{~}}
658         EndPostBabelPreamble
659 End
660
661 # FIXME DateFormats
662 Language georgian
663         GuiName          "Georgian"
664         BabelName        georgian
665         QuoteStyle       german
666         Encoding         utf8
667         FontEncoding     T8M
668         LangCode         ka_GE
669 End
670
671 # german does not use a country code (due to the variety)
672 Language german
673         GuiName          "German (old spelling)"
674         BabelName        german
675         PolyglossiaName  german
676         PolyglossiaOpts  "variant=german,spelling=old,babelshorthands=true"
677         QuoteStyle       german
678         Encoding         iso8859-15
679         FontEncoding     T1|OT1
680         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
681         LangCode         de
682         LangVariety      alt
683 End
684
685 Language ngerman
686         GuiName          "German"
687         HasGuiSupport    true
688         BabelName        ngerman
689         PolyglossiaName  german
690         PolyglossiaOpts  "variant=german,spelling=new,babelshorthands=true"
691         QuoteStyle       german
692         Encoding         iso8859-15
693         FontEncoding     T1|OT1
694         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
695         LangCode         de_DE
696 End
697
698 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
699 # We introduce it with LyX 2.2 to give the support time to settle.
700 # In polyglossia, this is supported since release 1.33.6 (May 2015)
701 # We introduce it with LyX 2.3 to give the support time to settle.
702 Language german-ch
703         GuiName          "German (Switzerland)"
704         BabelName        nswissgerman
705         PolyglossiaName  german
706         PolyglossiaOpts  "variant=swiss,spelling=new,babelshorthands=true"
707         QuoteStyle       swiss
708         Encoding         iso8859-15
709         FontEncoding     T1|OT1
710         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
711         LangCode         de_CH
712 End
713
714 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
715 # In polyglossia, this is supported since release 1.33.6 (May 2015)
716 # We introduce it with LyX 2.3 to give the support time to settle.
717 Language german-ch-old
718         GuiName          "German (Switzerland, old spelling)"
719         BabelName        swissgerman
720         PolyglossiaName  german
721         PolyglossiaOpts  "variant=swiss,spelling=old,babelshorthands=true"
722         QuoteStyle       swiss
723         Encoding         iso8859-15
724         FontEncoding     T1|OT1
725         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
726         LangCode         de_CH
727 End
728
729 Language greek
730         GuiName           "Greek"
731         HasGuiSupport     true
732         BabelName         greek
733         PolyglossiaName   greek
734         PolyglossiaOpts   "variant=monotonic"
735         QuoteStyle        french
736         Encoding          iso8859-7
737         InternalEncoding  true
738         FontEncoding      LGR
739         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
740         LangCode          el_GR
741         Provides          textgreek
742 End
743
744 Language polutonikogreek
745         GuiName           "Greek (polytonic)"
746         BabelName         polutonikogreek
747         PolyglossiaName   greek
748         PolyglossiaOpts   "variant=polytonic"
749         QuoteStyle        french
750         Encoding          iso8859-7
751         InternalEncoding  true
752         FontEncoding      LGR
753         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
754         LangCode          el_GR
755         Provides          textgreek
756 End
757
758 Language hebrew
759         GuiName           "Hebrew"
760         HasGuiSupport     true
761         BabelName         hebrew
762         PolyglossiaName   hebrew
763         Encoding          cp1255
764         QuoteStyle        english
765         InternalEncoding  true
766         # babel-hebrew expects the encoding for *other* languages last:
767         # FontEncoding      HE8
768         # Define the font encoding the babel-hebrew way and
769         # work around too simple test for article-like classes in rlbabel.def.
770         PreBabelPreamble
771           \def\HeblatexEncoding{HE8}
772           \def\HeblatexEncodingFile{he8enc}
773           \providecommand{\l@chapter}{\relax}
774         EndPreBabelPreamble
775         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
776         RTL               true
777         LangCode          he_IL
778 End
779
780 # not supported by babel
781 Language hindi
782         GuiName          "Hindi"
783         PolyglossiaName  hindi
784         Encoding         utf8
785         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd-MM-yyyy"
786         LangCode         hi_IN
787 End
788
789 # Currently not supported (file format change!)
790 # "hungarian" is a synonym for the "magyar" babel language option
791 # "hungarian" might be used for special purposes,
792 # see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
793 #Language hungarian
794 #       GuiName         "Hungarian"
795 #       BabelName       hungarian
796 #       Encoding        iso8859-2
797 #       LangCode        hu_HU
798 #       QuoteStyle      polish
799 #End
800
801 # FontEncoding: OT1 misses ð and Þ
802 Language icelandic
803         GuiName          "Icelandic"
804         BabelName        icelandic
805         PolyglossiaName  icelandic
806         QuoteStyle       german
807         Encoding         iso8859-15
808         FontEncoding     T1
809         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
810         LangCode         is_IS
811 End
812
813 # Interlingua has no official country code because it is an auxiliary
814 # language. We therefore the name of its hunspell dictionary.
815 Language interlingua
816         GuiName          "Interlingua"
817         HasGuiSupport    true
818         BabelName        interlingua
819         PolyglossiaName  interlingua
820         Encoding         iso8859-15
821         FontEncoding     ASCII
822         LangCode         ia_IA
823         DateFormats      "'le' d 'de' MMMM yyyy|'le' d 'de' MMM yyyy|yyyy-mm-dd"
824         QuoteStyle       english
825 End
826
827 Language irish
828         GuiName          "Irish"
829         BabelName        irish
830         PolyglossiaName  irish
831         QuoteStyle       english
832         Encoding         iso8859-15
833         FontEncoding     T1|OT1
834         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd/MM/yyyy"
835         LangCode         ga_IE
836 End
837
838 Language italian
839         GuiName          "Italian"
840         HasGuiSupport    true
841         BabelName        italian
842         PolyglossiaName  italian
843         QuoteStyle       french
844         Encoding         iso8859-15
845         FontEncoding     ASCII
846         DateFormats      "dd MMMM yyyy|dd/MMM/yyyy|dd/MM/yyyy"
847         LangCode         it_IT
848 End
849
850 # japanese must be loaded locally with babel options,
851 # not globally via class options
852 # http://www.lyx.org/trac/ticket/4597#c4
853 # Since japanese does not load fontenc, we set
854 # InternalEncoding to true.
855 Language japanese
856         GuiName          "Japanese"
857         HasGuiSupport    true
858         BabelName        japanese
859         Encoding         jis-platex
860         LangCode         ja_JP
861         Requires         japanese
862         InternalEncoding true
863         FontEncoding     None
864         DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
865         QuoteStyle       cjk
866 End
867
868 # uses CJK package
869 Language japanese-cjk
870         GuiName         "Japanese (CJK)"
871         Encoding        euc-jp
872         DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
873         LangCode        ja_JP
874         Requires        CJK
875         QuoteStyle      cjk
876 End
877
878 # not supported by babel
879 Language kannada
880         GuiName          "Kannada"
881         PolyglossiaName  kannada
882         Encoding         utf8
883         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|dd-MM-yyyy"
884         LangCode         kn_IN
885 End
886
887 # not yet supported by polyglossia
888 # not supported by babel
889 Language kazakh
890         GuiName          "Kazakh"
891         Encoding         ascii
892         FontEncoding     T2A
893         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM"
894         LangCode         kk_KZ
895         # FIXME: this sets the global font encoding also
896         # if Kazakh is only used as secondary language.
897         PostBabelPreamble
898         \input{t2aenc.def}
899         \AtBeginDocument{\fontencoding{T2A}\selectfont}
900         EndPostBabelPreamble
901 End
902
903 # not supported by babel
904 Language khmer
905         GuiName          "Khmer"
906         PolyglossiaName  khmer
907         Encoding         utf8
908         DateFormats      "d MMMM yyyy|d MMMM yyyy|dd/MM/yyyy"
909         LangCode         km_KH
910 End
911
912 Language korean
913         GuiName         "Korean"
914         Encoding        euc-kr
915         QuoteStyle      cjkangle
916         DateFormats     "yyyy년 M월 d일|yyyy. M. d.|yy. M. d."
917         LangCode        ko_KR
918         Requires        CJK
919 End
920
921 # not yet supported by polyglossia
922 Language kurmanji
923         GuiName          "Kurmanji"
924         BabelName        kurmanji
925         Encoding         utf8
926         FontEncoding     T1|OT1
927         DateFormats      "d. MMMM yyyy|d. M. yyyy|yyyy-MM-dd"
928         LangCode         kmr
929 End
930
931 # not supported by babel
932 Language lao
933         GuiName          "Lao"
934         PolyglossiaName  lao
935         Encoding         utf8
936         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|dd/MM/yyyy"
937         LangCode         lo_LA
938 End
939
940 # There is no country code for Latin because it is a dead language.
941 # We therefore the name of its hunspell dictionary.
942 # FIXME DateFormats
943 Language latin
944         GuiName          "Latin"
945         BabelName        latin
946         PolyglossiaName  latin
947         Encoding         iso8859-15
948         FontEncoding     T1|OT1
949         LangCode         la_LA
950 End
951
952 # latvian must be loaded locally with babel options,
953 # not globally via class options
954 # FontEncoding: L7x required for hyphenation but not set by Babel
955 Language latvian
956         GuiName          "Latvian"
957         BabelName        latvian
958         PolyglossiaName  latvian
959         QuoteStyle       german
960         Encoding         iso8859-4
961         FontEncoding     L7x|T1|OT1
962         DateFormats      "yyyy. 'gada' d. MMMM|yyyy. 'gada' d. MMM|dd.MM.yyyy"
963         LangCode         lv_LV
964 End
965
966 # lithuanian must be loaded locally with babel options,
967 # not globally via class options
968 # FontEncoding: L7x set by Babel
969 Language lithuanian
970         GuiName          "Lithuanian"
971         BabelName        lithuanian
972         PolyglossiaName  lithuanian
973         QuoteStyle       german
974         Encoding         iso8859-13
975         FontEncoding     L7x
976         DateFormats      "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd"
977         LangCode         lt_LT
978 End
979
980 Language lowersorbian
981         GuiName          "Lower Sorbian"
982         BabelName        lowersorbian
983         PolyglossiaName  lsorbian
984         QuoteStyle       german
985         Encoding         iso8859-2
986         FontEncoding     T1|OT1
987         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
988         LangCode         dsb_DE
989 End
990
991 Language magyar
992         GuiName          "Hungarian"
993         HasGuiSupport    true
994         BabelName        magyar
995         PolyglossiaName  magyar
996         QuoteStyle       polish
997         Encoding         iso8859-2
998         FontEncoding     T1|OT1
999         DateFormats      "yyyy. MMMM d.|yyyy. MMM d.|yyyy.MM.dd."
1000         LangCode         hu_HU
1001 End
1002
1003 # not yet supported by polyglossia
1004 Language macedonian
1005         GuiName          "Macedonian"
1006         BabelName        macedonian
1007         QuoteStyle       german
1008         Encoding         cp1251
1009         FontEncoding     T2A
1010         DateFormats      "dd MMMM yyyy|d MMM yyyy|d.M.yyyy"
1011         LangCode         mk_MK
1012         Provides         textcyrillic
1013 End
1014
1015 # not supported by babel
1016 Language malayalam
1017         GuiName          "Malayalam"
1018         PolyglossiaName  malayalam
1019         Encoding         utf8
1020         QuoteStyle       english
1021         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1022         LangCode         ml_IN
1023 End
1024
1025 # not supported by babel
1026 Language marathi
1027         GuiName          "Marathi"
1028         PolyglossiaName  marathi
1029         Encoding         utf8
1030         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1031         LangCode         mr_IN
1032 End
1033
1034 # mongolian must be loaded locally with babel options,
1035 # not globally via class options
1036 # not yet supported by polyglossia
1037 Language mongolian
1038         GuiName          "Mongolian"
1039         BabelName        mongolian
1040         Encoding         utf8
1041         FontEncoding     T2A
1042         DateFormats      "yyyy оны M сарын d|d-M-yyyy|dd-MM-yyyy"
1043         LangCode         mn_MN
1044         Provides         textcyrillic
1045 End
1046
1047 Language newzealand
1048         GuiName          "English (New Zealand)"
1049         BabelName        newzealand
1050         PolyglossiaName  english
1051         PolyglossiaOpts  "variant=newzealand"
1052         QuoteStyle       english
1053         Encoding         iso8859-15
1054         FontEncoding     ASCII
1055         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1056         LangCode         en_NZ
1057 End
1058
1059 Language norsk
1060         GuiName          "Norwegian (Bokmaal)"
1061         HasGuiSupport    true
1062         BabelName        norsk
1063         PolyglossiaName  norsk
1064         QuoteStyle       swiss
1065         Encoding         iso8859-15
1066         FontEncoding     T1|OT1
1067         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1068         LangCode         nb_NO
1069 End
1070
1071 Language nynorsk
1072         GuiName          "Norwegian (Nynorsk)"
1073         HasGuiSupport    true
1074         BabelName        nynorsk
1075         PolyglossiaName  nynorsk
1076         QuoteStyle       swiss
1077         Encoding         iso8859-15
1078         FontEncoding     T1|OT1
1079         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1080         LangCode         nn_NO
1081 End
1082
1083 # not supported by babel
1084 Language occitan
1085         GuiName          "Occitan"
1086         PolyglossiaName  occitan
1087         QuoteStyle       french
1088         Encoding         utf8
1089         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1090         LangCode         oc_FR
1091 End
1092
1093 # Currently not supported (file format change!)
1094 # Russian orthography from the Petrine orthographic reforms of
1095 # 1708 to the 1917 orthographic reform
1096 # Note: If this is enabled, russian needs to get
1097 #       PolyglossiaOpts  "spelling=modern"
1098 # Language oldrussian
1099 #       GuiName          "Russian (Petrine orthography)"
1100 #       PolyglossiaName  russian
1101 #       PolyglossiaOpts  "spelling=old"
1102 #       LangCode         ru_petr1708
1103 #       QuoteStyle       russian
1104 # End
1105
1106 # FIXME DateFormats
1107 Language piedmontese
1108         GuiName          "Piedmontese"
1109         HasGuiSupport    true
1110         BabelName        piedmontese
1111         PolyglossiaName  piedmontese
1112         QuoteStyle       french
1113         Encoding         iso8859-15
1114         FontEncoding     ASCII
1115         LangCode         pms_IT
1116 End
1117
1118 # FontEncoding: QX required for hyphenation but not set by babel
1119 Language polish
1120         GuiName          "Polish"
1121         HasGuiSupport    true
1122         BabelName        polish
1123         PolyglossiaName  polish
1124         QuoteStyle       polish
1125         Encoding         iso8859-2
1126         FontEncoding     QX|T1|OT1
1127         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
1128         LangCode         pl_PL
1129 End
1130
1131 Language portuguese
1132         GuiName          "Portuguese"
1133         HasGuiSupport    true
1134         BabelName        portuges
1135         PolyglossiaName  portuges
1136         QuoteStyle       french
1137         Encoding         iso8859-15
1138         FontEncoding     T1|OT1
1139         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|yyyy/MM/dd"
1140         LangCode         pt_PT
1141 End
1142
1143 Language romanian
1144         GuiName          "Romanian"
1145         HasGuiSupport    true
1146         BabelName        romanian
1147         PolyglossiaName  romanian
1148         QuoteStyle       polish
1149         Encoding         iso8859-16
1150         FontEncoding     T1|OT1
1151         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1152         LangCode         ro_RO
1153 End
1154
1155 Language romansh
1156         GuiName          "Romansh"
1157         HasGuiSupport    true
1158         BabelName        romansh
1159         PolyglossiaName  romansh
1160         QuoteStyle       german
1161         Encoding         iso8859-15
1162         FontEncoding     ASCII
1163         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1164         LangCode         rm_CH
1165 End
1166
1167 Language russian
1168         GuiName          "Russian"
1169         HasGuiSupport    true
1170         BabelName        russian
1171         PolyglossiaName  russian
1172         QuoteStyle       russian
1173         Encoding         koi8-r
1174         FontEncoding     T2A
1175         DateFormats      "d MMMM yyyy 'г'.|d MMM yyyy 'г'.|dd.MM.yyyy"
1176         LangCode         ru_RU
1177         Provides         textcyrillic
1178 End
1179
1180 # FontEncoding: no hyphenation, but diacritics
1181 Language samin
1182         GuiName          "North Sami"
1183         BabelName        samin
1184         PolyglossiaName  samin
1185         Encoding         iso8859-15
1186         FontEncoding     T1|OT1
1187         DateFormats      "MMMM d. 'b'. yyyy|MMM d. 'b'. yyyy|d.M.yyyy"
1188         LangCode         se_NO
1189 End
1190
1191 # not supported by babel
1192 Language sanskrit
1193         GuiName          "Sanskrit"
1194         PolyglossiaName  sanskrit
1195         Encoding         utf8
1196         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1197         LangCode         sa_IN
1198 End
1199
1200 # Gaidhlig (Scottish Gaelic)
1201 # FontEncoding: no hyphenation, grave accent (à, è, ì, ò, ù)
1202 Language scottish
1203         GuiName          "Scottish"
1204         BabelName        scottish
1205         PolyglossiaName  scottish
1206         QuoteStyle       english
1207         Encoding         iso8859-15
1208         FontEncoding     T1|OT1
1209         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1210         LangCode         gd_GB
1211 End
1212
1213 # Note: script option is uppercase, even if the polyglossia
1214 #       manual states otherwise.
1215 Language serbian
1216         GuiName          "Serbian"
1217         HasGuiSupport    true
1218         BabelName        serbianc
1219         PolyglossiaName  serbian
1220         PolyglossiaOpts  "script=Cyrillic"
1221         QuoteStyle       polish
1222         Encoding         utf8
1223         # Cyrillic font encoding required but not set by "serbianc".
1224         # FontEncoding     T2A
1225         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1226         LangCode         sr_RS
1227 End
1228
1229 # Note: script option is uppercase, even if the polyglossia
1230 #       manual states otherwise.
1231 Language serbian-latin
1232         GuiName          "Serbian (Latin)"
1233         BabelName        serbian
1234         PolyglossiaName  serbian
1235         PolyglossiaOpts  "script=Latin"
1236         QuoteStyle       polish
1237         Encoding         iso8859-2
1238         FontEncoding     T1|OT1
1239         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1240         LangCode         sr_RS-Latin
1241 End
1242
1243 Language slovak
1244         GuiName          "Slovak"
1245         HasGuiSupport    true
1246         BabelName        slovak
1247         PolyglossiaName  slovak
1248         QuoteStyle       german
1249         Encoding         iso8859-2
1250         FontEncoding     T1|OT1
1251         DateFormats      "d. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
1252         LangCode         sk_SK
1253 End
1254
1255 Language slovene
1256         GuiName          "Slovene"
1257         BabelName        slovene
1258         PolyglossiaName  slovenian
1259         QuoteStyle       german
1260         Encoding         iso8859-2
1261         FontEncoding     T1|OT1
1262         DateFormats      "dd. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
1263         LangCode         sl_SI
1264 End
1265
1266 Language spanish
1267         GuiName          "Spanish"
1268         HasGuiSupport    true
1269         BabelName        spanish
1270         PolyglossiaName  spanish
1271         QuoteStyle       french
1272         Encoding         iso8859-15
1273         FontEncoding     T1|OT1
1274         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
1275         LangCode         es_ES
1276         PostBabelPreamble
1277         \addto\shorthandsspanish{\spanishdeactivate{~<>}}
1278         EndPostBabelPreamble
1279 End
1280
1281 # there are no spanish shorthands in polyglossia
1282 Language spanish-mexico
1283         GuiName          "Spanish (Mexico)"
1284         BabelName        spanish
1285         PolyglossiaName  spanish
1286         QuoteStyle       french
1287         Encoding         iso8859-15
1288         FontEncoding     T1|OT1
1289         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
1290         LangCode         es_MX
1291         PostBabelPreamble
1292         \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
1293         EndPostBabelPreamble
1294 End
1295
1296 Language swedish
1297         GuiName          "Swedish"
1298         HasGuiSupport    true
1299         BabelName        swedish
1300         PolyglossiaName  swedish
1301         QuoteStyle       swedish
1302         Encoding         iso8859-15
1303         FontEncoding     T1|OT1
1304         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
1305         LangCode         sv_SE
1306 End
1307
1308 # not supported by babel
1309 Language syriac
1310         GuiName          "Syriac"
1311         PolyglossiaName  syriac
1312         Encoding         utf8
1313         RTL              true
1314         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1315         LangCode         syr_SY
1316 End
1317
1318 # not supported by babel
1319 Language tamil
1320         GuiName          "Tamil"
1321         PolyglossiaName  tamil
1322         Encoding         utf8
1323         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1324         LangCode         ta_IN
1325 End
1326
1327 # not supported by babel
1328 Language telugu
1329         GuiName          "Telugu"
1330         PolyglossiaName  telugu
1331         Encoding         utf8
1332         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1333         LangCode         te_IN
1334 End
1335
1336 Language thai
1337         GuiName          "Thai"
1338         BabelName        thai
1339         PolyglossiaName  thai
1340         QuoteStyle       english
1341         Encoding         tis620-0
1342         FontEncoding     LTH
1343         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1344         LangCode         th_TH
1345         # Fixme: load font package?
1346         # +1 support for font attributes in thai emphasizing etc.
1347         # -1 conflict with custom font settings and other languages' fonts
1348         # PostBabelPreamble
1349         # \usepackage{fonts-tlwg}
1350         # EndPostBabelPreamble
1351 End
1352
1353 # not supported by babel
1354 #FIXME DateFormats
1355 Language tibetan
1356         GuiName          "Tibetan"
1357         PolyglossiaName  tibetan
1358         Encoding         utf8
1359         LangCode         bo_CN
1360 End
1361
1362 Language turkish
1363         GuiName          "Turkish"
1364         HasGuiSupport    true
1365         BabelName        turkish
1366         PolyglossiaName  turkish
1367         QuoteStyle       english
1368         Encoding         iso8859-9
1369         FontEncoding     T1|OT1
1370         LangCode         tr_TR
1371         DateFormats      "d MMMM yyyy|dd.MMM.yyyy|dd.MM.yyyy"
1372         PostBabelPreamble
1373         \usepackage{xkeyval}
1374         EndPostBabelPreamble
1375 End
1376
1377 # turkmen must be loaded locally with babel options,
1378 # not globally via class options
1379 Language turkmen
1380         GuiName          "Turkmen"
1381         BabelName        turkmen
1382         PolyglossiaName  turkmen
1383         QuoteStyle       swiss
1384         Encoding         utf8
1385         FontEncoding     T1|OT1
1386         DateFormats      "yyyy ý. MMMM d|dd.MM.yyyy ý.|dd.MM.yy ý."
1387         LangCode         tk_TM
1388 End
1389
1390 Language ukrainian
1391         GuiName          "Ukrainian"
1392         HasGuiSupport    true
1393         BabelName        ukrainian
1394         PolyglossiaName  ukrainian
1395         QuoteStyle       russian
1396         Encoding         koi8-u
1397         FontEncoding     T2A
1398         DateFormats      "dd MMMM yyyy|d MM yyyy|dd.MM.yyyy"
1399         LangCode         uk_UA
1400         Provides         textcyrillic
1401 End
1402
1403 Language uppersorbian
1404         GuiName          "Upper Sorbian"
1405         BabelName        uppersorbian
1406         PolyglossiaName  usorbian
1407         QuoteStyle       german
1408         Encoding         iso8859-2
1409         FontEncoding     T1|OT1
1410         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1411         LangCode         hsb_DE
1412 End
1413
1414 # not supported by babel
1415 Language urdu
1416         GuiName          "Urdu"
1417         PolyglossiaName  urdu
1418         Encoding         utf8
1419         DateFormats      "d MMMM, yyyy|d MMM yyyy|dd/MM/yyyy"
1420         RTL              true
1421         LangCode         ur_PK
1422 End
1423
1424 Language vietnamese
1425         GuiName          "Vietnamese"
1426         BabelName        vietnamese
1427         PolyglossiaName  vietnamese
1428         QuoteStyle       english
1429         Encoding         utf8
1430         DateFormats      "dd 'tháng' MMMM yyyy|dd-MM-yyyy|dd/MM/yyyy"
1431         FontEncoding     T5
1432         LangCode         vi_VN
1433 End
1434
1435 Language welsh
1436         GuiName          "Welsh"
1437         BabelName        welsh
1438         PolyglossiaName  welsh
1439         QuoteStyle       british
1440         Encoding         iso8859-15
1441         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1442         FontEncoding     T1|OT1
1443         LangCode         cy_GB
1444 End