Fix problem with --disable-nls; fix problem when using -display; add latvian keymap

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@1153 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-10-25 10:38:03 +00:00
parent ef9b09c177
commit f42e02fa63
5 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,19 @@
2000-10-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lib/kbd/latvian.kmap: new file from Janne Pänkälä (epa@iki.fi)
2000-10-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/insets/figinset.C (GhostscriptMsg): use DisplayString() to
open a new display.
(runqueue): ditto.
2000-10-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/gettext.h (locale_init): and re-add it here.
* src/main.C (main): remove call to setlocale
2000-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2000-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/version.h (LYX_VERSION): reset version to 1.1.5fixcvs * src/version.h (LYX_VERSION): reset version to 1.1.5fixcvs

1
README
View File

@ -159,6 +159,7 @@ Does LyX have support for non-English speakers/writers/readers?
Greek Greek
Hebrew Hebrew
Hungarian (Magyar) Hungarian (Magyar)
Latvian
Polish Polish
Portugese Portugese
Romanian Romanian

View File

@ -46,7 +46,7 @@
# ifdef HAVE_LC_MESSAGES # ifdef HAVE_LC_MESSAGES
// LC_TIME, LC_CTYPE, even LC_ALL // LC_TIME, LC_CTYPE, even LC_ALL
# define locale_init() { setlocale (LC_MESSAGES, ""); setlocale (LC_CTYPE, "");} # define locale_init() { setlocale (LC_MESSAGES, ""); setlocale (LC_CTYPE, ""); setlocale (LC_NUMERIC, "C");}
# else # else
# define locale_init() # define locale_init()
# endif # endif

View File

@ -234,7 +234,7 @@ int GhostscriptMsg(FL_OBJECT *, Window, int, int,
addpidwait(forkstat); addpidwait(forkstat);
break; break;
} else { // child } else { // child
tmpdisp = XOpenDisplay(XDisplayName(0)); tmpdisp = XOpenDisplay(DisplayString(fl_get_display()));
XFlush(tmpdisp); XFlush(tmpdisp);
} }
im = XGetImage(tmpdisp, p->bitmap, 0, 0, im = XGetImage(tmpdisp, p->bitmap, 0, 0,
@ -517,7 +517,7 @@ void runqueue()
if (pid == 0) { // child if (pid == 0) { // child
char ** env; char ** env;
int ne = 0; int ne = 0;
Display * tempdisp = XOpenDisplay(XDisplayName(0)); Display * tempdisp = XOpenDisplay(DisplayString(fl_get_display()));
// create translation file // create translation file
ofstream ofs; ofstream ofs;

View File

@ -66,7 +66,6 @@ int main(int argc, char * argv[])
// initialize for internationalized version *EK* // initialize for internationalized version *EK*
locale_init(); locale_init();
setlocale(LC_NUMERIC, "C");
gettext_init(); gettext_init();
#ifdef __EMX__ #ifdef __EMX__