]> git.lyx.org Git - features.git/commit
Fix usage of multiple varieties of the same polyglossia language.
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Nov 2016 16:07:49 +0000 (17:07 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Nov 2016 16:07:49 +0000 (17:07 +0100)
commit3374b8548b2807def95904d81746fd027e06ebf4
tree97b00c5fc32a69b9d0061c30be86804fc2250992
parent24066805af13c380bf68cfee57e9706fefdfeac8
Fix usage of multiple varieties of the same polyglossia language.

1. We must always output all (diverging) options, including
   default options; if not, default options might get overwritten.

2. Do not output options in \setotherlanguage, since we might have
   multiple "other languages" varieties from the same language (such
   as naustrian, nswissgerman). And the options are output for the
   language switches anyway.

Hence, LaTeXFeatures::getPolyglossiaLanguages() does not have to record
varieties. This was not done correctly anyway, since the map allowed
for one entry per language only.
lib/languages
src/BufferParams.cpp
src/LaTeXFeatures.cpp
src/LaTeXFeatures.h