X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmessages.h;h=39c7246ecddf5f2fc3f527644ce0ca94447742d5;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=b426ccf0c3a7ba35a14f0299e9330b6c91edd3e1;hpb=4fbd6bcd95521b065d991bd6843a541c06eb67ea;p=lyx.git diff --git a/src/messages.h b/src/messages.h index b426ccf0c3..39c7246ecd 100644 --- a/src/messages.h +++ b/src/messages.h @@ -1,50 +1,41 @@ // -*- C++ -*- -* \file messages.h -* This file is part of LyX, the document processor. +/* \file messages.h + * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Lars Gullik Bjønnes * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef MESSAGES_H #define MESSAGES_H -#include "LString.h" +#include "support/docstring.h" -#include +#include +#include + + +namespace lyx { /// class Messages { public: - /// - typedef std::messages::catalog catalog; - /// - Messages(string const & l, string const & dir); + /// messages in the language defined by the environment + Messages(); + /// messages in the language \p l + Messages(std::string const & l); /// ~Messages(); /// - string const get(string const & msg) const; - /// - string const & lang() const { - return lang_; - } - /// - string const & localedir() const { - return localedir_; - } + docstring const get(std::string const & msg) const; private: - /// - string lang_; - /// - string localedir_; - /// - std::locale loc_gl; - /// - std::messages const & mssg_gl; - /// - catalog cat_gl; + class Pimpl; + boost::scoped_ptr pimpl_; }; + +} // namespace lyx + #endif