2002-06-12 09:47:10 +00:00
|
|
|
/**
|
|
|
|
* \file main.C
|
|
|
|
* Copyright 2002 the LyX Team
|
|
|
|
* Read the file COPYING
|
2002-03-21 17:27:08 +00:00
|
|
|
*
|
2002-06-12 09:47:10 +00:00
|
|
|
* \author unknown
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#include <config.h>
|
2000-03-28 02:18:55 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
#include "lyx_main.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
#include "LString.h"
|
1999-10-02 16:21:10 +00:00
|
|
|
#include "support/filetools.h"
|
2001-05-17 15:11:01 +00:00
|
|
|
#include "support/os.h"
|
2002-11-08 11:37:42 +00:00
|
|
|
|
2000-03-28 02:18:55 +00:00
|
|
|
int main(int argc, char * argv[])
|
|
|
|
{
|
2001-05-17 15:11:01 +00:00
|
|
|
os::init(&argc, &argv);
|
2000-06-12 11:27:15 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
// lyx_localedir is used by gettext_init() is we have
|
|
|
|
// i18n support built-in
|
1999-10-02 16:21:10 +00:00
|
|
|
string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
|
1999-09-27 18:44:28 +00:00
|
|
|
if (lyx_localedir.empty())
|
|
|
|
lyx_localedir = LOCALEDIR;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
// initialize for internationalized version *EK*
|
2002-03-21 17:27:08 +00:00
|
|
|
locale_init();
|
|
|
|
gettext_init(lyx_localedir);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2002-06-12 09:47:10 +00:00
|
|
|
LyX lyx(argc, argv);
|
|
|
|
return 0;
|
1999-09-27 18:44:28 +00:00
|
|
|
}
|