]> git.lyx.org Git - lyx.git/blobdiff - src/support/Messages.h
InsetArgument: Set ResetsFontEdit to false
[lyx.git] / src / support / Messages.h
index 08500a9044fc61c15226110d27d3151b34505802..655577c0c784772103ff18fc835a455fd448fbc4 100644 (file)
@@ -26,20 +26,16 @@ public:
        Messages(std::string const & l = std::string());
        ///
        docstring const get(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?
+       static bool available(std::string const & c);
        ///
        static void init();
-       ///
-       static std::string const & defaultLanguage() { return main_lang_; }
 
 private:
-       ///
-       static void setDefaultLanguage();
-       ///
-       static std::string main_lang_;
        ///
        std::string lang_;
-       /// Did we warn about unavailable locale already?
-       mutable bool warned_;
        ///
        typedef std::map<std::string, docstring> TranslationCache;
        /// Internal cache for gettext translated strings.
@@ -55,6 +51,9 @@ extern Messages const & getMessages(std::string const & language);
 /// Implementation is in LyX.cpp.
 extern Messages const & getGuiMessages();
 
+/// Remove the context suffix from \p trans
+extern void cleanTranslation(docstring & trans);
+
 } // namespace lyx
 
 #endif