lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Internationalisation version


From: Webmaster Jim
Subject: lynx-dev Internationalisation version
Date: Fri, 17 Apr 1998 01:05:34 -0400

I've built the intl version of lynx supplied me by David Trueman and
Chris Maxwell, although I haven't gotten it to display "Francais" yet.

Some issues to tackle:

*) The CSuite version partly uses configure, but doesn't work right on
my NetBSD machine. I've installed GNU gettext and the "reference" hello
code and they work. The lynx code doesn't. Apparently because BSD has
some locale functions, my OS expects things in different places. Some
things needed to be done by hand (e.g., move the language file into the
right place).

*) The LYMessages_en.h file remains, so some messages are still #defined
in one place, but gettext-ized another way. This will be a brute force,
put it back the old way.

*) The CSuite code has a lot of differences from the current Lynx code.
I'm inclined to only port over the gettext stuff now, but go back for
more things later (like on-screen timers).

=====
My lynx binary has these text strings, indicating that "locale" is not
being set completely right:

$ strings lynx | grep -i locale
/usr/local/share/locale
/usr/local/lib/locale
/usr/local/lib/locale/%L/LC_MESSAGES/%N.cat
_setlocale

$ strings lynx | grep -i lc_messages
LC_MESSAGES
%s/%s/LC_MESSAGES/%s.mo
LC_MESSAGES
%s/%s/LC_MESSAGES/%s.cat
/%L/LC_MESSAGES/%N.cat:
/usr/local/lib/locale/%L/LC_MESSAGES/%N.cat

(I forced LOCALEDIR like this since GNU's gettext files are there:)
lynxintl.h:/** #define LOCALEDIR "@@@CS_ROOT@@@/intl/locale" **/
lynxintl.h:#define LOCALEDIR "/usr/local/share/locale"

NetBSD's locale files are "cat" files, not "mo" files:
$ ls /usr/local/lib/locale
de         fr         no         address@hidden sv
$ ls /usr/local/lib/locale/fr
LC_MESSAGES
$ ls /usr/local/lib/locale/fr/LC_MESSAGES/
gettext.cat

GNU gettext is in a different place; I installed the lynx.mo files by
hand next to the hello files:

$ ls -l /usr/local/share/locale/fr/LC_MESSAGES/
-rw-r--r--  1 jim  wheel    3419 Apr 10 09:54 hello.mo
-rw-r--r--  1 jim  wheel  166980 Apr 16 23:31 lynx.mo

I had to make this change to get LYOptions.c to compile:

*** lynx/src/LYOptions.c        Sun Feb  8 15:35:06 1998
--- lynx-2.7.1ac-0.102-intl/src/LYOptions.c     Thu Apr 16 23:18:37 1998
***************
*** 1238,1244 ****
                DISPLAY_STR,
                L_DISPLAY, L_DISPLAY,
                DISPLAY_F,
!               (display && *display && (strcmp (display, NONE) != 0))
                ? display : _(NONE_STR));
        (*target->isa->put_block)(target, buf, strlen(buf));
  #endif
--- 1238,1244 ----
                DISPLAY_STR,
                L_DISPLAY, L_DISPLAY,
                DISPLAY_F,
!               (display && *display && (strcmp (display, "NONE") != 0))
                ? display : _(NONE_STR));
        (*target->isa->put_block)(target, buf, strlen(buf));
  #endif


++++++++++++++++++++++++++++
Marvin the Paranoid Android.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]