]> git.lyx.org Git - lyx.git/blob - src/main.C
add some authors
[lyx.git] / src / main.C
1 /**
2  * \file main.C
3  * Copyright 2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Lars Gullik Bjønnes
7  * \author Jean Marc Lasgouttes
8  */
9
10 #include <config.h>
11
12 #include "lyx_main.h"
13 #include "gettext.h"
14 #include "LString.h"
15 #include "support/filetools.h"
16 #include "support/os.h"
17
18 int main(int argc, char * argv[])
19 {
20         os::init(&argc, &argv);
21
22         // lyx_localedir is used by gettext_init() is we have
23         //   i18n support built-in
24         string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
25         if (lyx_localedir.empty())
26                 lyx_localedir = LOCALEDIR;
27
28         // initialize for internationalized version *EK*
29         locale_init();
30         gettext_init(lyx_localedir);
31
32         LyX lyx(argc, argv);
33         return 0;
34 }