]> git.lyx.org Git - lyx.git/blobdiff - src/support/Messages.cpp
Fix bug 9798.
[lyx.git] / src / support / Messages.cpp
index ef6bb2d022ffc9328b706b6000478a393ecb5b21..26a320b2d243c753c727b19947aade5ebfe0457b 100644 (file)
@@ -127,7 +127,7 @@ void cleanTranslation(docstring & trans)
        }
 }
 
-} // lyx
+} // namespace lyx
 
 
 #ifdef ENABLE_NLS
@@ -167,7 +167,7 @@ string realCode(string code)
        }
        return string();
 }
-}
+} // namespace
 
 
 bool Messages::available(string const & c)
@@ -238,7 +238,7 @@ void StringTable::swapEnd()
 }
 
 
-} // namespace anon
+} // namespace
 
 bool Messages::readMoFile()
 {
@@ -250,7 +250,7 @@ bool Messages::readMoFile()
 
        string const code = realCode(lang_);
        if (code.empty()) {
-               LYXERR0("Cannot find translation for language " << lang_);
+               LYXERR(Debug::LOCALE, "Cannot find translation for language " << lang_);
                return false;
        }
 
@@ -281,7 +281,7 @@ bool Messages::readMoFile()
 
        if (header->magic != 0x950412de) {
                LYXERR0("Wrong magic number for file " << filen
-                       << ".\nExpected 0x950412de, got 0x" << std::hex << header->magic);
+                       << ".\nExpected 0x950412de, got 0x" << std::hex << header->magic << std::dec);
                return false;
        }
 
@@ -366,9 +366,9 @@ docstring const Messages::get(string const & m) const
 }
 
 std::string Messages::language() const
-    {
-        return string();
-    }
+{
+       return string();
+}
 
 bool Messages::available(string const & /* c */)
 {