lyx_mirror/src/main.C
Jean-Marc Lasgouttes 7d09a8c0e7 gettext cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1715 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-08 14:22:43 +00:00

43 lines
945 B
C

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#include <config.h>
#include "lyx_main.h"
#include "gettext.h"
#include "LString.h"
#include "support/filetools.h"
#include "frontends/GUIRunTime.h"
int main(int argc, char * argv[])
{
int const val = GUIRunTime::initApplication(argc, argv);
if (val)
return val;
// lyx_localedir is used by gettext_init() is we have
// i18n support built-in
string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
if (lyx_localedir.empty())
lyx_localedir = LOCALEDIR;
// initialize for internationalized version *EK*
locale_init();
gettext_init(lyx_localedir);
#ifdef __EMX__
_wildcard(&argc, &argv);
#endif
LyX lyx(&argc, argv);
return 0; // SUCCESS
}