]> git.lyx.org Git - lyx.git/blobdiff - src/Language.cpp
some less language hardcoding
[lyx.git] / src / Language.cpp
index cbe425d3b9dcc6a3a092e03a5ef4c74652282c2b..ddb63e3b28f2983e10bd3392c84e04d46878ab3c 100644 (file)
@@ -74,6 +74,7 @@ bool Language::readLanguage(Lexer & lex)
                LA_POLYGLOSSIAOPTS,
                LA_POSTBABELPREAMBLE,
                LA_PREBABELPREAMBLE,
+               LA_REQUIRES,
                LA_RTL
        };
 
@@ -91,6 +92,7 @@ bool Language::readLanguage(Lexer & lex)
                { "polyglossiaopts",      LA_POLYGLOSSIAOPTS },
                { "postbabelpreamble",    LA_POSTBABELPREAMBLE },
                { "prebabelpreamble",     LA_PREBABELPREAMBLE },
+               { "requires",             LA_REQUIRES },
                { "rtl",                  LA_RTL }
        };
 
@@ -152,6 +154,9 @@ bool Language::readLanguage(Lexer & lex)
                        babel_presettings_ =
                                lex.getLongString("EndPreBabelPreamble");
                        break;
+               case LA_REQUIRES:
+                       lex >> requires_;
+                       break;
                case LA_RTL:
                        lex >> rightToLeft_;
                        break;