[Top][All Lists]

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

Re: lynx-dev Lynx and NLS

From: Thomas Dickey
Subject: Re: lynx-dev Lynx and NLS
Date: Tue, 12 Jun 2001 17:46:37 -0400
User-agent: Mutt/1.2.5i

On Tue, Jun 12, 2001 at 03:25:10PM +0000, Patrick Ash   wrote:
> Thanks Doug, but textdomaindir does not work. I guess that I will
> keep trying. 

It's not documented, but reading the code I think what you want can be
done with NLSPATH in the older 0.10.35 gettext, but TEXTDOMAINDIR in
the newer 0.10.38 (that is, GNU gettext doesn't document it - it's fairly
well documented on Solaris).

User Commands                                          gettext(1)

     gettext - retrieve text string from message database

     gettext [ textdomain ] msgid

     gettext retrieves a translated text string corresponding  to
     string msgid from a message object generated with msgfmt(1).
     The message object name is derived from the  optional  argu-
     ment  textdomain  if  present, otherwise from the TEXTDOMAIN
     environment.  If no domain is specified, or if a correspond-
     ing string cannot be found, gettext prints msgid.

     Ordinarily  gettext  looks  for  its   message   object   in
     /usr/lib/locale/lang/LC_MESSAGES  where  lang  is the locale
     name.  If present, the  TEXTDOMAINDIR  environment  variable
     replaces the pathname component up to lang.

     This command interprets C escape sequences such  as  \t  for
     tab.   Use \\ to print a backslash.  To produce a message on
     a line of its own, either put a \n at the end of  msgid,  or
     use this command in conjunction with printf(1).

     LANG Specifies locale name.

          Specifies messaging locale, and  if  present  overrides
          LANG for messages.

          Specifies the text domain name, which is  identical  to
          the message object filename without .mo suffix.

          Specifies the pathname to the message database, and  if
          present replaces /usr/lib/locale.

     See attributes(5) for descriptions of the  following  attri-

    | Availability  |  SUNWcsu        |

     msgfmt(1),  printf(1),  gettext(3C),  setlocale(3C),  attri-

SunOS 5.6           Last change: 11 Jul 1996                    1

User Commands                                          gettext(1)

     This  is  the  shell  equivalent  of  the  library   routine

> On Mon, 11 Jun 2001 19:16:18 -0700 (PDT), Doug Kaufman wrote:
> >
> >> > The next question is: What if one does not use the default install
> >> > path? Is there some environment variable that can be used to point to
> >> 
> >> If you are in a position to compile your own lynx, you can use the
> >> configure option "--with-nls-datadir=".  Sorry, I don't know of an
> >> environment variable.
> >
> >I think it is "TEXTDOMAINDIR".
> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

Thomas E. Dickey <address@hidden>

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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