}
}
-} // lyx
+} // namespace lyx
#ifdef ENABLE_NLS
}
return string();
}
-}
+} // namespace
bool Messages::available(string const & c)
}
-} // namespace anon
+} // namespace
bool Messages::readMoFile()
{
}
}
+
+docstring const Messages::getIfFound(string const & m) const
+{
+ if (m.empty())
+ return docstring();
+
+ TranslationMap::const_iterator it = trans_map_.find(m);
+ if (it != trans_map_.end())
+ return it->second;
+ else
+ return docstring();
+}
+
} // namespace lyx
#else // ENABLE_NLS
return false;
}
+docstring const Messages::getIfFound(string const & m) const
+{
+ return docstring();
+}
+
} // namespace lyx
#endif