Change variable to polyglossia-lang.name and .options

This commit is contained in:
mb21 2015-10-07 22:46:44 +02:00
parent cddd99ccb2
commit 77cb2e5cfa

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