#include "support/Messages.h"
#include "support/Package.h"
-#ifdef HAVE_LOCALE_H
-# include <locale.h>
-#endif
-
using namespace std;
namespace lyx {
}
-void locale_init()
-{
-#ifdef ENABLE_NLS
-# ifdef HAVE_LC_MESSAGES
- setlocale(LC_MESSAGES, "");
-# endif
- setlocale(LC_CTYPE, "");
- if (support::packageInitialized()) {
- Messages::init();
- }
-#endif
- setlocale(LC_NUMERIC, "C");
-}
-
-
docstring const translateIfPossible(docstring const & name)
{
if (support::isAscii(name) && !name.empty())