Messages(std::string const & l = std::string());
///
docstring const get(std::string const & msg) const;
+ /// Is an (at least partial) translation of this language available?
+ bool available() const;
///
static void init();
///
/// Access to the unique Messages object for the passed \p language.
/// Implementation is in LyX.cpp.
-extern Messages & getMessages(std::string const & language);
+extern Messages const & getMessages(std::string const & language);
/// Access to the unique Messages object used for GUI element.
/// Implementation is in LyX.cpp.
-extern Messages & getGuiMessages();
+extern Messages const & getGuiMessages();
+
+/// Remove the context suffix from \p trans
+extern void cleanTranslation(docstring & trans);
} // namespace lyx