Merge pull request #129 from mb21/polyglossia-lang

Change variable to polyglossia-lang.name and .options
This commit is contained in:
John MacFarlane 2015-10-10 13:52:06 -07:00
commit f32abb9617

View file

@ -82,8 +82,10 @@ $endif$
$if(lang)$
\ifxetex
\usepackage{polyglossia}
\setmainlanguage[variant=$polyglossia-variant$]{$polyglossia-lang$}
\setotherlanguages{$for(polyglossia-otherlangs)$$polyglossia-otherlangs$$sep$,$endfor$}
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
$for(polyglossia-otherlangs)$
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
$endfor$
\else
\usepackage[shorthands=off,$babel-lang$]{babel}
\fi