1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2001 The LyX Team.
9 * ====================================================== */
16 #include "support/filetools.h"
17 #include "support/os.h"
18 #include "frontends/GUIRunTime.h"
21 int main(int argc, char * argv[])
23 os::init(&argc, &argv);
24 int const val = GUIRunTime::initApplication(argc, argv);
28 // lyx_localedir is used by gettext_init() is we have
29 // i18n support built-in
30 string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
31 if (lyx_localedir.empty())
32 lyx_localedir = LOCALEDIR;
34 // initialize for internationalized version *EK*
36 gettext_init(lyx_localedir);