///
typedef std::map<std::string, docstring> TranslationCache;
/// Internal cache for gettext translated strings.
- /// This is needed for performance reason within \c updateLabels()
+ /// This is needed for performance reason within \c updateBuffer()
/// under Windows.
mutable TranslationCache cache_;
};
/// 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();
} // namespace lyx