mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
let lyx/mac find its locale when relocated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@8426 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1b70127435
commit
0082b84464
@ -10,7 +10,7 @@
|
||||
@iE-mail: alstrup@diku.dk
|
||||
General hacking of user interface stuff
|
||||
and those other bits and pieces.
|
||||
@bPascal Andre
|
||||
@bPascal André
|
||||
@iE-mail: andre@via.ecp.fr
|
||||
external style definition files,
|
||||
linuxdoc sgml support and more
|
||||
@ -51,6 +51,9 @@
|
||||
@bKalle Dalheimer
|
||||
@iE-mail: kalle@kde.org
|
||||
Qt2 port
|
||||
@bDooteo
|
||||
@iE-mail: dooteo@euskalgnu.org
|
||||
Basque documentation and localization
|
||||
@bedscott
|
||||
@iE-mail: edscott@imp.mx
|
||||
Various bug fixes
|
||||
@ -78,6 +81,9 @@ IE-mail: ron@18james.com
|
||||
@bHartmut Haase
|
||||
@iE-mail: hha4491@atomstromfrei.de
|
||||
German translation of the documentation
|
||||
@bHelge Hafting
|
||||
@iE-mail: helgehaf@aitel.hist.no
|
||||
Norwegian documentation and localization
|
||||
@bClaus Hentschel
|
||||
@iE-mail: claus.hentschel@mbau.fh-hannover.de
|
||||
Win32 port of LyX 1.1.x
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-02-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* CREDITS: add dooteo and Helge Hafting
|
||||
|
||||
2004-02-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* lib/LaTeXConfig.lyx.in: add entry for agums
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-02-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* lyx_main.C (init): if running from a Mac OS X bundle, make sure
|
||||
to fixup the locale directory
|
||||
|
||||
2003-12-28 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* text3.C (dispatch): output useful info on receipt of LFUN_GETLAYOUT.
|
||||
|
@ -388,20 +388,35 @@ void LyX::init(bool gui)
|
||||
<< system_lyxdir << '\'' << endl;
|
||||
|
||||
//
|
||||
// Set PATH for LyX/Mac
|
||||
// Set PATH and localedir for LyX/Mac
|
||||
//
|
||||
// LyX/Mac is a relocatable application bundle; here we add to
|
||||
// the PATH so it can find binaries like reLyX inside its own
|
||||
// application bundle, and also append PATH elements that it
|
||||
// needs to run latex, previewers, etc.
|
||||
// needs to run latex, previewers, etc. We also set the
|
||||
// localedir inside the application bundle.
|
||||
//
|
||||
|
||||
if (system_lyxdir == NormalizePath(AddPath(binpath, "../Resources/") +
|
||||
OnlyFilename(binname))) {
|
||||
string oldpath = GetEnv("PATH");
|
||||
string newpath = "PATH=" + oldpath + ":" + binpath + ":";
|
||||
newpath += "/sw/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current";
|
||||
PutEnv(newpath);
|
||||
lyxerr[Debug::INIT] << "Running from LyX/Mac bundle. Setting PATH to: " << GetEnv("PATH") << endl;
|
||||
string oldpath = GetEnv("PATH");
|
||||
string newpath = "PATH=" + oldpath + ":" + binpath + ":";
|
||||
newpath += "/sw/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current";
|
||||
PutEnv(newpath);
|
||||
lyxerr[Debug::INIT] << "Running from LyX/Mac bundle. "
|
||||
"Setting PATH to: " << GetEnv("PATH") << endl;
|
||||
if (GetEnvPath("LYX_LOCALEDIR").empty()) {
|
||||
string const maybe_localedir =
|
||||
NormalizePath(AddPath(system_lyxdir,
|
||||
"../locale"));
|
||||
FileInfo fi(maybe_localedir);
|
||||
if (fi.isOK() && fi.isDir()) {
|
||||
lyxerr[Debug::INIT]
|
||||
<< "Setting locale directory to "
|
||||
<< maybe_localedir << endl;
|
||||
gettext_init(maybe_localedir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
24
status.13x
24
status.13x
@ -35,20 +35,22 @@ What's new
|
||||
- add support for intelligent scrolling with the mouse cursor [Qt only]
|
||||
|
||||
- improvements in LyX/Mac: support for opening files with LyX in
|
||||
finder, the LyX.app bundle can now be moved around and contains its
|
||||
finder; the LyX.app bundle can now be moved around and contains its
|
||||
own fonts (for math equations)
|
||||
|
||||
- add support for \boldsymbol in math editor
|
||||
|
||||
- enable lyx to read documents from versions 0.10 and 0.12
|
||||
|
||||
- add support for agums (generic style for first-time submissions to
|
||||
AGU editors) and g-brief2 (a nice letter class) textclasses
|
||||
- improve support for LaTeX documentclasses: new agums (generic style
|
||||
for first-time submissions to AGU editors) and g-brief2 (a nice
|
||||
letter class) textclasses; allow optional arguments in Author,
|
||||
AuthorAdress and Thanks styles for the elsart layout; add
|
||||
Affiliation layout to jgrga textclass
|
||||
|
||||
- allow optional arguments in Author, AuthorAdress and Thanks styles
|
||||
for the elsart layout; add Affiliation layout to jgrga textclass
|
||||
|
||||
- update the german translation of the User Guide
|
||||
- improve documentation for some languages: basque (new Extended
|
||||
Manual and User Guide; updated Intro and Tutorial), german
|
||||
(updated User Guide) and norwegian (new Intro)
|
||||
|
||||
- update basque, danish, finnish, french, german, italian, nynorsk,
|
||||
romanian, spanish and slovenian interface localizations
|
||||
@ -57,10 +59,6 @@ What's new
|
||||
incomplete to be useful: bulgarian, catalan, czech, hebrew,
|
||||
hungarian, portuguese, swedish, turkish, walloon
|
||||
|
||||
- enable lyx to compile on Itanium machines.
|
||||
|
||||
- add autoconf 2.59 as an supported version.
|
||||
|
||||
|
||||
** Bug fixes
|
||||
|
||||
@ -112,3 +110,7 @@ What's new
|
||||
|
||||
- fix problems with non-GNU make program
|
||||
|
||||
- enable lyx to compile on Itanium machines
|
||||
|
||||
- add autoconf 2.59 as a supported version
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user