* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
#include <ostream>
using namespace std;
+using namespace lyx::support;
namespace lyx {
-using support::package;
-
#ifdef ENABLE_NLS
// libstdc++ that is distributed with GNU G++.
class Messages::Pimpl {
public:
- typedef std::messages<char>::catalog catalog;
+ typedef messages<char>::catalog catalog;
Pimpl(string const & l)
: lang_(l),
loc_gl(lang_.c_str()),
- mssg_gl(std::use_facet<std::messages<char> >(loc_gl))
+ mssg_gl(use_facet<messages<char> >(loc_gl))
{
//lyxerr << "Messages: language(" << l
- // << ") in dir(" << dir << ")" << std::endl;
+ // << ") in dir(" << dir << ")" << endl;
string const locale_dir = package().locale_dir().toFilesystemEncoding();
cat_gl = mssg_gl.open(PACKAGE, loc_gl, locale_dir.c_str());
///
string lang_;
///
- std::locale loc_gl;
+ locale loc_gl;
///
- std::messages<char> const & mssg_gl;
+ messages<char> const & mssg_gl;
///
catalog cat_gl;
};
# if HAVE_GETTEXT
# include <libintl.h> // use the header already in the system *EK*
# else
-# include "../intl/libintl.h"
+# include "../../intl/libintl.h"
# endif
// This is a more traditional variant.
: lang_(l)
{
//lyxerr << "Messages: language(" << l
- // << ") in dir(" << dir << ")" << std::endl;
+ // << ") in dir(" << dir << ")" << endl;
}
LYXERR(Debug::DEBUG, "Messages::get()" << '\n'
<< "Error code: " << errno << '\n'
<< "Lang, mess: " << lang_ << " " << m << '\n'
- << "Directory : " << package().locale_dir().absFilename() << '\n'
+ << "Directory : " << package().locale_dir().absFileName() << '\n'
<< "Rtn value : " << c);
}