X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FMessages.h;h=4ba2737cef1518911c99923991a213b80c511b23;hb=e4051a6bd586befbcc3dd92c50225d68e1833c73;hp=9ef8dc3ae9a0703516346eab43249bef6489dd56;hpb=8995a8387a03361b6a7ff44b447a90a6187b1a14;p=lyx.git diff --git a/src/support/Messages.h b/src/support/Messages.h index 9ef8dc3ae9..4ba2737cef 100644 --- a/src/support/Messages.h +++ b/src/support/Messages.h @@ -26,18 +26,14 @@ public: 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; + /// 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?