]> git.lyx.org Git - lyx.git/blobdiff - src/Language.h
de.po
[lyx.git] / src / Language.h
index 390e0a6f7276f8d7e568e73cd8be3d33b5c66ec4..1dabbacaec4c011e44093c1d09f37ea54b9fcf03 100644 (file)
@@ -36,7 +36,7 @@ class Language {
 public:
        ///
        Language() : rightToLeft_(false), encoding_(0), internal_enc_(false),
-                                as_babel_options_(false), has_gui_support_(false) {}
+                                has_gui_support_(false) {}
        /// LyX language name
        std::string const lang() const { return lang_; }
        /// Babel language name
@@ -84,12 +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)
+       /// The most suitable font encoding(s) for the selected document font
        std::string fontenc(BufferParams const &) const;
-       /// fontenc encoding(s)
-       std::vector<std::string> fontencs() const;
-       /// This language needs to be passed to babel itself (not the class)
-       bool asBabelOptions() const { return as_babel_options_; }
+       /// Return the localized date formats (long, medium, short format)
+       std::string dateFormat(size_t i) const;
        /// This language corresponds to a translation of the GUI
        bool hasGuiSupport() const { return has_gui_support_; }
        ///
@@ -136,6 +134,8 @@ private:
        ///
        std::vector<std::string> fontenc_;
        ///
+       std::vector<std::string> dateformats_;
+       ///
        bool internal_enc_;
        ///
        bool as_babel_options_;
@@ -164,6 +164,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;