#include "support/Package.h"
#include "support/unicode.h"
-#include <boost/assert.hpp>
+#include "support/assert.h"
#include <cerrno>
# 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;
// The string was not found, use gettext to generate it
- string const oldLANGUAGE = getEnv("LANGUAGE");
- string const oldLC_ALL = getEnv("LC_ALL");
+ static string const oldLANGUAGE = getEnv("LANGUAGE");
+ static string const oldLC_ALL = getEnv("LC_ALL");
if (!lang_.empty()) {
// This GNU extension overrides any language locale
// wrt gettext.
pair<TranslationCache::iterator, bool> result =
cache_.insert(make_pair(m, trans));
- BOOST_ASSERT(result.second);
+ LASSERT(result.second, /**/);
return result.first->second;
}