X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLanguage.h;h=85df29d8d98a9700e2e6d116d90e7729e4e82c14;hb=0c05432284f144bcb6c278a60d54d9bc777829e0;hp=ddcc32894c723708ca1c42d844d48d42ee9dd169;hpb=71f0dd3a7ff4c25e1339ed493605e88b25f2779a;p=lyx.git diff --git a/src/Language.h b/src/Language.h index ddcc32894c..85df29d8d9 100644 --- a/src/Language.h +++ b/src/Language.h @@ -15,10 +15,13 @@ #ifndef LANGUAGE_H #define LANGUAGE_H +#include "BufferParams.h" + #include "support/docstring.h" #include "support/trivstring.h" #include +#include namespace lyx { @@ -81,8 +84,10 @@ public: docstring babel_presettings() const { return babel_presettings_; } /// This language internally sets a font encoding bool internalFontEncoding() const { return internal_enc_; } - /// fontenc encoding(s) - std::string const fontenc() const { return fontenc_; } + /// The most suitable font encoding(s) for the selected document font + std::string fontenc(BufferParams const &) const; + /// Return the localized date formats (long, medium, short format) + std::string dateFormat(size_t i) const; /// This language needs to be passed to babel itself (not the class) bool asBabelOptions() const { return as_babel_options_; } /// This language corresponds to a translation of the GUI @@ -129,7 +134,9 @@ private: /// trivdocstring babel_presettings_; /// - trivstring fontenc_; + std::vector fontenc_; + /// + std::vector dateformats_; /// bool internal_enc_; /// @@ -159,6 +166,8 @@ public: /// void read(support::FileName const & filename); /// + Language const * getFromCode(std::string const & code) const; + /// void readLayoutTranslations(support::FileName const & filename); /// Language const * getLanguage(std::string const & language) const;