// Instanciate static member.
string Messages::main_lang_;
-namespace {
-
void cleanTranslation(docstring & trans)
{
/*
}
}
-} // anonymous
} // lyx
# if HAVE_GETTEXT
# include <libintl.h> // use the header already in the system *EK*
# else
-# include "../../intl/libintl.h"
+# include "intl/libintl.h"
# endif
using namespace lyx::support;
#endif
}
+ // FIXME: gettext sometimes "forgets" the ucs4_codeset we set
+ // in init(), which leads to severe message corruption (#7371)
+ // We set it again here unconditionally. A real fix must be found!
+ LASSERT(bind_textdomain_codeset(PACKAGE, ucs4_codeset), /**/);
+
char const * m_c = m.c_str();
char const * trans_c = gettext(m_c);
docstring trans;