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 * ====================================================== */
17 #include "support/filetools.h"
18 #include "support/os.h"
19 #include "frontends/GUIRunTime.h"
22 int main(int argc, char * argv[])
24 os::init(&argc, &argv);
25 int const val = GUIRunTime::initApplication(argc, argv);
29 // lyx_localedir is used by gettext_init() is we have
30 // i18n support built-in
31 string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
32 if (lyx_localedir.empty())
33 lyx_localedir = LOCALEDIR;
35 // initialize for internationalized version *EK*
37 gettext_init(lyx_localedir);