mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
d3ca6ce55d
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5608 a592a061-630c-0410-9148-cb99ea01b6c8
34 lines
632 B
C
34 lines
632 B
C
/**
|
|
* \file main.C
|
|
* Copyright 2002 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author unknown
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "lyx_main.h"
|
|
#include "gettext.h"
|
|
#include "LString.h"
|
|
#include "support/filetools.h"
|
|
#include "support/os.h"
|
|
|
|
int main(int argc, char * argv[])
|
|
{
|
|
os::init(&argc, &argv);
|
|
|
|
// 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);
|
|
|
|
LyX lyx(argc, argv);
|
|
return 0;
|
|
}
|