// -*- C++ -*- /* \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. */ #ifndef MESSAGES_H #define MESSAGES_H #include "support/docstring.h" #include #include namespace lyx { /// class Messages { public: /// messages in the language \p l. /// If \p l is empty, the language will be defined by the environment. Messages(std::string const & l = ""); /// docstring const get(std::string const & msg) const; private: /// std::string lang_; /// typedef std::map TranslationCache; /// Internal cache for gettext translated strings. /// This is needed for performance reason within \c updateLabels() /// under Windows. mutable TranslationCache cache_; }; } // namespace lyx #endif