From: Sam S. <sd...@gn...> - 2005-02-25 15:22:55
|
> * Yaroslav Kavenchuk <xnirapuhx@wragl.ol> [2005-02-25 12:40:29 +0200]: > > Sam Steingold: > >> > In init.lisp: >> > .... >> > #+GETTEXT (LOAD "german") ; German messages >> > #+(and GETTEXT UNICODE) (LOAD "french") ; French messages >> > #+(and GETTEXT UNICODE) (LOAD "spanish") ; Spanish messages >> > #+GETTEXT (LOAD "dutch") ; Dutch messages >> > #+(and GETTEXT UNICODE) (LOAD "russian") ; Russian messages >> > .... >> > >> > I cannot find where appears GETTEXT. >> > UNICODE it is declared. >> >> see src/spvw.d:init_object_tab() >> > Thanks. > But I have got confused: > > src/spvw.d: > ... > #ifdef GNU_GETTEXT > " :GETTEXT" > #endif > ... > > src/lispbibl.d: > ... > # Whether to use the GNU gettext library for internationalization: > #if defined(ENABLE_NLS) && !defined(NO_GETTEXT) > #define GNU_GETTEXT > #endif > ... > > src/genclisph.d: > ... > #ifndef LANGUAGE_STATIC > #ifndef GNU_GETTEXT > printf("#define GETTEXT(english) english\n"); > printf("#define CLSTEXT ascii_to_string\n"); > #else > printf("#define GNU_GETTEXT\n"); > ... > > build-full/clisp.h > ... > #define ENABLE_NLS 1 > ... > #define GETTEXT(english) english > ... > > build-full/unixconf.h: (this for win32?) alas, unixconf.h, although generated on all platforms, is only used on unix (for the sake of msvc users). it really should change, but this is not trivial. if you want to work on this, change lispbibl.d around "# Determine properties of compiler and environment:" so that __MINGW32__ is the same as UNIX and see what happens (you will probably have to put much of win32.d under "#ifndef __MINGW32__") for now, adding #if defined(__MINGW32__) #define ENABLE_NLS 1 #endif to win32.d should fix the immediate problem. > ... > #define ENABLE_NLS 1 > ... > > build-full/config.log: > ... > configure:5306: checking whether NLS is requested > configure:5315: result: yes > ... > ## ----------------- ## > ## Output variables. ## > ## ----------------- ## > ... > USE_NLS='yes' > ... > > > What order of run *.d(c)? > "src/spvw.d" depends on "src/lispbibl.d" or "src/genclisph.d -> clisp.h"? > Where a root undefinition GNU_GETTEXT? -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.iris.org.il> <http://www.honestreporting.com> <http://www.memri.org/> <http://pmw.org.il/> <http://www.mideasttruth.com/> As a computer, I find your faith in technology amusing. |