]> git.lyx.org Git - lyx.git/blobdiff - src/support/Messages.h
Maintain plain layout for separating paragraphs when switching layouts (#11936)
[lyx.git] / src / support / Messages.h
index a6e937256d1ab6ff913ecca1e01fc7211bc5be97..9f33d45e6fd610662da8d73cd534fc0d40c7dc7d 100644 (file)
@@ -21,11 +21,15 @@ namespace lyx {
 ///
 class Messages {
 public:
+       /// dummy instantiation: no translation is done
+       Messages() {}
        /// messages in the language \p l.
-       /// If \p l is empty, the language will be defined by the environment.
-       Messages(std::string const & l = std::string());
-       ///
+       Messages(std::string const & l);
+       /// Return the translation of message \c msg, or the original
+       /// string if no context was found. Context is always removed.
        docstring const get(std::string const & msg) const;
+       ///
+       docstring const getIfFound(std::string const & msg) const;
        /// What is the language associated with this translation?
        std::string language() const;
        /// Is an (at least partial) translation of language with code \p c available?