]> git.lyx.org Git - lyx.git/blob - src/messages.h
b426ccf0c3a7ba35a14f0299e9330b6c91edd3e1
[lyx.git] / src / messages.h
1 // -*- C++ -*-
2 * \file messages.h
3 * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef MESSAGES_H
12 #define MESSAGES_H
13
14 #include "LString.h"
15
16 #include <locale>
17
18 ///
19 class Messages {
20 public:
21         ///
22         typedef std::messages<char>::catalog catalog;
23         ///
24         Messages(string const & l, string const & dir);
25         ///
26         ~Messages();
27         ///
28         string const get(string const & msg) const;
29         ///
30         string const & lang() const {
31                 return lang_;
32         }
33         ///
34         string const & localedir() const {
35                 return localedir_;
36         }
37 private:
38         ///
39         string lang_;
40         ///
41         string localedir_;
42         ///
43         std::locale loc_gl;
44         ///
45         std::messages<char> const & mssg_gl;
46         ///
47         catalog cat_gl;
48 };
49
50 #endif