-french french "French" false iso8859-1 fr_FR "\addto\extrasfrench{\providecommand{\og}{\leavevmode\flqq~}\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}}"
-galician galician "Galician" false iso8859-1 gl_ES ""
-# There are two Galicia's one in Spain one in E.Europe. Because of
-# the font encoding I am assuming this is the one in Spain. (Garst)
-german german "German" false iso8859-1 de_DE ""
-ngerman ngerman "German (new spelling)" false iso8859-1 de_DE ""
-greek greek "Greek" false iso8859-7 el_GR ""
-hebrew hebrew "Hebrew" true cp1255 he_IL ""
-#hungarian hungarian "Hungarian" false iso8859-2 "" ""
-irish irish "Irish" false iso8859-1 ga_IE ""
-italian italian "Italian" false iso8859-1 it_IT ""
-kazakh kazakh "Kazakh" false pt154 kk_KZ ""
-#lsorbian lsorbian "Lsorbian" false iso8859-2 "" ""
-# no ISO listing for lsorbian (Garst)
-lithuanian lithuanian "Lithuanian" false iso8859-13 lt_LT ""
-latvian latvian "Latvian" false iso8859-13 lv_LV ""
-icelandic icelandic "Icelandic" false iso8859-1 "is_IS" ""
-magyar magyar "Magyar" false iso8859-2 hu_HU ""
-norsk norsk "Norsk" false iso8859-1 no_NO ""
-nynorsk nynorsk "Nynorsk" false iso8859-1 nn_NO ""
-polish polish "Polish" false iso8859-2 pl_PL ""
-portuges portuges "Portugese" false iso8859-1 pt_PT ""
-romanian romanian "Romanian" false iso8859-2 ro_RO ""
-russian russian "Russian" false koi8 ru_RU ""
-scottish scottish "Scottish" false iso8859-1 gd_GB ""
-serbian croatian "Serbian" false iso8859-5 sr_HR ""
-serbocroatian croatian "Serbo-Croatian" false iso8859-2 sh_HR ""
-spanish spanish "Spanish" false iso8859-1 es_ES "\deactivatetilden"
-slovak slovak "Slovak" false iso8859-2 sk_SK ""
-slovene slovene "Slovene" false iso8859-2 sl_SI ""
-swedish swedish "Swedish" false iso8859-1 sv_SE ""
-thai thai "Thai" false tis620-0 th_TH "\usepackage{thswitch}"
-turkish turkish "Turkish" false iso8859-9 tr_TR ""
-ukrainian ukrainian "Ukrainian" false koi8-u uk_UA ""
-#usorbian usorbian "Usorbian" false iso8859-2 "" ""
-# no ISO listing for usorbian (Garst)
-welsh welsh "Welsh" false iso8859-1 cy_GB ""
+Language french
+ GuiName "French"
+ BabelName french
+ PolyglossiaName french
+ Encoding iso8859-15
+ LangCode fr_FR
+ PostBabelPreamble
+ \addto\extrasfrench{%
+ \providecommand{\og}{\leavevmode\flqq~}
+ \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}
+ }
+ EndPostBabelPreamble
+End
+
+Language galician
+ GuiName "Galician"
+ BabelName galician
+ PolyglossiaName galician
+ Encoding iso8859-15
+ LangCode gl_ES
+End
+
+# german does not use a country code (due to the variety)
+Language german
+ GuiName "German (old spelling)"
+ BabelName german
+ PolyglossiaName german
+ PolyglossiaOpts "spelling=old,babelshorthands=true"
+ Encoding iso8859-15
+ LangCode de
+ LangVariety alt
+End
+
+Language ngerman
+ GuiName "German"
+ BabelName ngerman
+ PolyglossiaName german
+ PolyglossiaOpts "babelshorthands=true"
+ Encoding iso8859-15
+ LangCode de_DE
+End
+
+# Swiss German is not supported by babel and polyglossia yet
+# We use ngerman for now (spellchecking is supported though!)
+Language german-ch
+ GuiName "German (Switzerland)"
+ BabelName ngerman
+ PolyglossiaName german
+ PolyglossiaOpts "babelshorthands=true"
+ Encoding iso8859-15
+ LangCode de_CH
+End
+
+Language greek
+ GuiName "Greek"
+ BabelName greek
+ PolyglossiaName greek
+ Encoding iso8859-7
+ InternalEncoding true
+ LangCode el_GR
+End
+
+Language polutonikogreek
+ GuiName "Greek (polytonic)"
+ BabelName polutonikogreek
+ PolyglossiaName greek
+ PolyglossiaOpts "variant=polytonic"
+ Encoding iso8859-7
+ InternalEncoding true
+ LangCode el_GR
+End
+
+Language hebrew
+ GuiName "Hebrew"
+ BabelName hebrew
+ PolyglossiaName hebrew
+ Encoding cp1255
+ InternalEncoding true
+ RTL true
+ LangCode he_IL
+End
+
+# Currently not supported (file format change!)
+# Language hindi
+# GuiName "Hindi"
+# PolyglossiaName hindi
+# LangCode hi
+# End
+
+# Currently not supported (file format change!)
+# "hungarian" is a synonym for the "magyar" babel language option
+# "hungarian" might be used for special purposes,
+# see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
+#Language hungarian
+# GuiName "Hungarian"
+# BabelName hungarian
+# Encoding iso8859-2
+# LangCode hu_HU
+#End
+
+Language icelandic
+ GuiName "Icelandic"
+ BabelName icelandic
+ PolyglossiaName icelandic
+ Encoding iso8859-15
+ LangCode is_IS
+End
+
+# Interlingua has no country code because it is an auxiliary language
+Language interlingua
+ GuiName "Interlingua"
+ BabelName interlingua
+ PolyglossiaName interlingua
+ Encoding iso8859-15
+ LangCode ia
+End
+
+Language irish
+ GuiName "Irish"
+ BabelName irish
+ PolyglossiaName irish
+ Encoding iso8859-15
+ LangCode ga_IE
+End
+
+Language italian
+ GuiName "Italian"
+ BabelName italian
+ PolyglossiaName italian
+ Encoding iso8859-15
+ LangCode it_IT
+End
+
+# japanese must be loaded locally with babel options,
+# not globally via class options
+# http://www.lyx.org/trac/ticket/4597#c4
+Language japanese
+ GuiName "Japanese"
+ BabelName japanese
+ Encoding jis-plain
+ LangCode ja_JP
+ AsBabelOptions true
+End
+
+# uses CJK package
+Language japanese-cjk
+ GuiName "Japanese (CJK)"
+ Encoding euc-jp
+ LangCode ja_JP
+End
+
+Language kazakh
+ GuiName "Kazakh"
+ BabelName kazakh
+ Encoding pt154
+ LangCode kk_KZ
+End
+
+# there is no country code for Korean because ko_KR is the same as ko_KI
+Language korean
+ GuiName "Korean"
+ Encoding euc-kr
+ LangCode ko
+End
+
+# Currently not supported (file format change!)
+# Language kurmanji
+# GuiName "Kurmanji"
+# BabelName kurmanji
+# LangCode kmr
+# End
+
+# Currently not supported (file format change!)
+# Language lao
+# GuiName "Lao"
+# PolyglossiaName lao
+# LangCode lo
+# End
+
+# there is no country code for Latin because it is a dead language
+Language latin
+ GuiName "Latin"
+ BabelName latin
+ PolyglossiaName latin
+ Encoding iso8859-15
+ LangCode la
+End
+
+# latvian must be loaded locally with babel options,
+# not globally via class options
+Language latvian
+ GuiName "Latvian"
+ BabelName latvian
+ PolyglossiaName latvian
+ Encoding iso8859-4
+ LangCode lv_LV
+ AsBabelOptions true
+End
+
+# lithuanian must be loaded locally with babel options,
+# not globally via class options
+Language lithuanian
+ GuiName "Lithuanian"
+ BabelName lithuanian
+ PolyglossiaName lithuanian
+ Encoding iso8859-13
+ LangCode lt_LT
+ AsBabelOptions true
+End
+
+Language lowersorbian
+ GuiName "Lower Sorbian"
+ BabelName lowersorbian
+ PolyglossiaName lsorbian
+ Encoding iso8859-2
+ LangCode dsb_DE
+End
+
+Language magyar
+ GuiName "Hungarian"
+ BabelName magyar
+ PolyglossiaName magyar
+ Encoding iso8859-2
+ LangCode hu_HU
+End
+
+# Currently not supported (file format change!)
+# Language marathi
+# GuiName "Marathi"
+# PolyglossiaName marathi
+# LangCode mr
+# End
+
+# mongolian must be loaded locally with babel options,
+# not globally via class options
+Language mongolian
+ GuiName "Mongolian"
+ BabelName mongolian
+ Encoding utf8
+ LangCode mn_MN
+ AsBabelOptions true
+End
+
+Language norsk
+ GuiName "Norwegian (Bokmaal)"
+ BabelName norsk
+ PolyglossiaName norsk
+ Encoding iso8859-15
+ LangCode nb_NO
+End
+
+Language nynorsk
+ GuiName "Norwegian (Nynorsk)"
+ BabelName nynorsk
+ PolyglossiaName nynorsk
+ Encoding iso8859-15
+ LangCode nn_NO
+End
+
+# Currently not supported (file format change!)
+# Language occitan
+# GuiName "Occitan"
+# PolyglossiaName occitan
+# LangCode oc
+# End
+
+# Currently not supported (file format change!)
+# Russian orthography from the Petrine orthographic reforms of
+# 1708 to the 1917 orthographic reform
+# Language oldrussian
+# GuiName "Russian (Petrine orthography)"
+# PolyglossiaName russian
+# PolyglossiaOpts spelling=old
+# LangCode ru_petr1708
+# End
+
+Language polish
+ GuiName "Polish"
+ BabelName polish
+ PolyglossiaName polish
+ Encoding iso8859-2
+ LangCode pl_PL
+End
+
+Language portuguese
+ GuiName "Portuguese"
+ BabelName portuges
+ PolyglossiaName portuges
+ Encoding iso8859-15
+ LangCode pt_PT
+End
+
+Language romanian
+ GuiName "Romanian"
+ BabelName romanian
+ PolyglossiaName romanian
+ Encoding iso8859-2
+ LangCode ro_RO
+End
+
+Language russian
+ GuiName "Russian"
+ BabelName russian
+ PolyglossiaName russian
+ Encoding koi8
+ LangCode ru_RU
+End
+
+Language samin
+ GuiName "North Sami"
+ BabelName samin
+ PolyglossiaName samin
+ Encoding iso8859-15
+ LangCode se_NO
+End
+
+# Currently not supported (file format change!)
+# Language sanskrit
+# GuiName "Sanskrit"
+# PolyglossiaName sanskrit
+# LangCode sa
+# End
+
+Language scottish
+ GuiName "Scottish"
+ BabelName scottish
+ PolyglossiaName scottish
+ Encoding iso8859-15
+ LangCode gd_GB
+End
+
+Language serbian
+ GuiName "Serbian"
+ BabelName serbian
+ PolyglossiaName serbian
+ Encoding iso8859-5
+ LangCode sr_RS
+End
+
+Language serbian-latin
+ GuiName "Serbian (Latin)"
+ BabelName serbian
+ PolyglossiaName serbian
+ PolyglossiaOpts "script=latin"
+ Encoding iso8859-2
+ LangCode sr_RS
+End
+
+Language slovak
+ GuiName "Slovak"
+ BabelName slovak
+ PolyglossiaName slovak
+ Encoding iso8859-2
+ LangCode sk_SK
+End
+
+Language slovene
+ GuiName "Slovene"
+ BabelName slovene
+ PolyglossiaName slovenian
+ Encoding iso8859-2
+ LangCode sl_SI
+End
+
+Language spanish
+ GuiName "Spanish"
+ BabelName spanish
+ PolyglossiaName spanish
+ Encoding iso8859-15
+ LangCode es_ES
+ PostBabelPreamble
+ \addto\shorthandsspanish{\spanishdeactivate{~<>}}
+ EndPostBabelPreamble
+End
+
+# there are no spanish shorthands in polyglossia
+Language spanish-mexico
+ GuiName "Spanish (Mexico)"
+ BabelName spanish
+ PolyglossiaName spanish
+ Encoding iso8859-15
+ LangCode es_MX
+ PostBabelPreamble
+ \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
+ EndPostBabelPreamble
+End
+
+Language swedish
+ GuiName "Swedish"
+ BabelName swedish
+ PolyglossiaName swedish
+ Encoding iso8859-15
+ LangCode sv_SE
+End
+
+# Currently not supported (file format change!)
+# Language syriac
+# GuiName "Syriac"
+# PolyglossiaName syriac
+# LangCode syr
+# End
+
+# Currently not supported (file format change!)
+# Language tamil
+# GuiName "Tamil"
+# PolyglossiaName tamil
+# LangCode Taml
+# End
+
+# Currently not supported (file format change!)
+# Language telugu
+# GuiName "Telugu"
+# PolyglossiaName telugu
+# LangCode te
+# End
+
+Language thai
+ GuiName "Thai"
+ BabelName thai
+ PolyglossiaName thai
+ Encoding tis620-0
+ LangCode th_TH
+ PostBabelPreamble
+ \usepackage{thswitch}
+ EndPostBabelPreamble
+End
+
+Language turkish
+ GuiName "Turkish"
+ BabelName turkish
+ PolyglossiaName turkish
+ Encoding iso8859-9
+ LangCode tr_TR
+End
+
+# turkmen must be loaded locally with babel options,
+# not globally via class options
+Language turkmen
+ GuiName "Turkmen"
+ BabelName turkmen
+ PolyglossiaName turkmen
+ Encoding utf8
+ LangCode tk_TM
+ AsBabelOptions true
+End
+
+Language ukrainian
+ GuiName "Ukrainian"
+ BabelName ukrainian
+ PolyglossiaName ukrainian
+ Encoding koi8-u
+ LangCode uk_UA
+End
+
+Language uppersorbian
+ GuiName "Upper Sorbian"
+ BabelName uppersorbian
+ PolyglossiaName usorbian
+ Encoding iso8859-2
+ LangCode hsb_DE
+End
+
+# Currently not supported (file format change!)
+# Language urdu
+# GuiName "Urdu"
+# PolyglossiaName urdu
+# LangCode ur
+# End
+
+# vietnam must be loaded locally with babel options,
+# not globally via class options, see
+# http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg129417.html
+Language vietnamese
+ GuiName "Vietnamese"
+ BabelName vietnam
+ PolyglossiaName vietnamese
+ Encoding utf8
+ LangCode vi_VN
+ AsBabelOptions true
+End
+
+Language welsh
+ GuiName "Welsh"
+ BabelName welsh
+ PolyglossiaName welsh
+ Encoding iso8859-15
+ LangCode cy_GB
+End