]> git.lyx.org Git - features.git/blobdiff - src/language.h
Angus inseterror patch + Dekel mathed fix + added language_country code and
[features.git] / src / language.h
index 0fe01ff608e47c46b6ad2ef0d8550378ebdd6230..135fac5921607a0d254444154c551a0a66d1e116 100644 (file)
@@ -28,8 +28,10 @@ public:
        Language() : RightToLeft_(false) {}
        ///
        Language(string const & l, string const & d,
-                bool rtl, Encoding const * e)
-               : lang_(l), display_(d), RightToLeft_(rtl) , encoding_(e) {}
+                bool rtl, Encoding const * e, string const & c)
+               : lang_(l), display_(d), RightToLeft_(rtl) , encoding_(e),
+                 code_(c)
+               {}
        ///
        string const & lang() const {
                return lang_;
@@ -46,6 +48,10 @@ public:
        Encoding const * encoding() const {
                return encoding_;
        }
+       ///
+       string const & code() const {
+               return code_;
+       }
 private:
        ///
        string lang_;
@@ -55,6 +61,8 @@ private:
        bool RightToLeft_;
        ///
        Encoding const * encoding_;
+       ///
+       string code_;
 };
 
 #if 0