#include <cerrno>
-using lyx::support::package;
-using lyx::support::getEnv;
-using lyx::support::setEnv;
-using lyx::char_type;
-using lyx::docstring;
-using lyx::from_ascii;
+namespace lyx {
+
+using support::package;
+using support::getEnv;
+using support::setEnv;
using std::string;
using std::endl;
docstring const get(string const & m) const
{
if (m.empty())
- return lyx::from_ascii(m);
+ return from_ascii(m);
// In this order, see support/filetools.C:
string lang = getEnv("LC_ALL");
lyxerr << "Undefined result from gettext" << endl;
translated = from_ascii(tmp);
} else if (msg == tmp) {
- lyxerr << "Same as entered returned" << endl;
+ //lyxerr << "Same as entered returned" << endl;
translated = from_ascii(tmp);
} else {
lyxerr << "We got a translation" << endl;
- lyx::char_type const * ucs4 = reinterpret_cast<lyx::char_type const *>(msg);
+ char_type const * ucs4 = reinterpret_cast<char_type const *>(msg);
translated = ucs4;
}
#endif
~Pimpl() {}
- string const get(string const & m) const
+ docstring const get(string const & m) const
{
- return m;
+ return from_ascii(m);
}
};
#endif
{
return pimpl_->get(msg);
}
+
+
+} // namespace lyx