Gnus development mailing list
 help / color / mirror / Atom feed
From: Ralph Schleicher <rs@purple.UL.BaWue.DE>
Cc: ding@ifi.uio.no
Subject: Re: Internationalization
Date: 17 Nov 1996 23:59:17 +0100	[thread overview]
Message-ID: <uf91801g6y.fsf@bravo.purple.UL.BaWue.DE> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 10 Nov 1996 16:31:18 +0100

Lars Magne Ingebrigtsen <larsi@ifi.uio.no> cited below with "Larsi"
writes:

Larsi> If such a thing was to be done, how should one do it?  Has there been
Larsi> done work in this area for other Elisp packages?

Yes, I've finished `gettext.el' that evening (many thanks to Ulrich
Drepper for all the comments in the source code of the `libintl'
library).  This Elisp package is intended for those users who cannot
patch their Emacs or if the user have to work with an old version of
Emacs not supporting GNU gettext.  BTW Larsi, have you talked with
RMS about your idea?

Nevertheless, we should synchronize the calling conventions of the C
and Lisp solution.  Here are the documentation strings of my public
definitions.  Any comments would be appreciated.


Variable: gettext-default-directory "/usr/share/locale"
Where the system's locale database can be found.


Variable: gettext-directory-alist nil
Alist of alternate domain locations.
Cons cells are of the form

    (DOMAIN . DIRECTORY)


Function: gettext-bind-domain (DOMAIN DIRECTORY)
Specify that the message catalogs of DOMAIN can be found in DIRECTORY.


Variable: gettext-domain "messages"
The current message catalog.
Automatically becomes buffer-local when set in any fashion.


Function: gettext-domain (DOMAIN)
Set the current message catalog to DOMAIN (a string).
If DOMAIN is `nil', then return the current domain.
If DOMAIN is `""', then reset to the default of `messages'.


Function: gettext-guess-locale ()
Guess value of current locale from environment variables.
This function first looks at the value of the environment variable
`LANGUAGE'; which is a GNU extension.  If `LANGUAGE' is not set, then
the standard POSIX variables `LC_ALL', `LC_MESSAGES', and `LANG' will
be looked up.  If none of these variables is set, then `"POSIX"' is
returned.


Variable: gettext-locale nil
The current locale.
Automatically becomes buffer-local when set in any fashion.


Function: gettext (DOMAIN MESSAGE &optional LOCALE-PATH)
Look up MESSAGE in the DOMAIN message catalog.
If not found, returns MESSAGE itself (the default text).
If DOMAIN is `nil', then look up MESSAGE in the current domain.
If DOMAIN is `""', then look up MESSAGE in the `messages' domain.
Optional third argument LOCALE-PATH overrides the current locale.

LOCALE-PATH is a colon-separated list of locales.  A single locale can be
specified in either XPG `language[_territory[.codeset]][@modifier]' or CEN
`language[_territory][+audience][+special][,sponsor][_revision]' syntax.
All parts except `language' are optional.  If a given locale can not be
found, then the most specific one is looked up by stripping of the optional
parts in the order `revision', `sponsor', `special', `codeset', `territory',
and `audience/modifier'.


Variable: little-endian
Byte order of little endian machines.


Variable: big-endian
Byte order of big endian machines.


Variable: pdp-endian
Byte order of PDP endian machines.


Function: byte-order
Byte order for this particular machine.


-- 
Ralph * http://www.UL.BaWue.DE/~rs/

GNU -- vivat, crescat, floreat!


      parent reply	other threads:[~1996-11-17 22:59 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-10 15:31 Internationalization Lars Magne Ingebrigtsen
1996-11-10 17:05 ` Internationalization Andy Eskilsson
1996-11-10 17:51   ` Internationalization Kai Grossjohann
1996-11-10 19:02 ` Internationalization David Kågedal
1996-11-11  6:27   ` Internationalization Steinar Bang
1996-11-11 15:20   ` Internationalization Lars Magne Ingebrigtsen
1996-11-11  0:25 ` Internationalization visigoth
1996-11-11 15:25   ` Internationalization Lars Magne Ingebrigtsen
1996-11-11 22:19     ` Internationalization David Moore
1996-11-12 22:45       ` Internationalization Lars Magne Ingebrigtsen
1996-11-11 12:14 ` Internationalization Robert Bihlmeyer
1996-11-11 12:50 ` Internationalization Per Abrahamsen
1996-11-11 15:14   ` Internationalization William Perry
1996-11-11 15:24     ` Internationalization Per Abrahamsen
1996-11-11 22:01   ` Internationalization François Pinard
1996-11-12 10:58     ` Internationalization Per Abrahamsen
1996-11-12 15:59       ` Internationalization François Pinard
1996-11-12 16:57         ` Internationalization Ulrich Drepper
     [not found]           ` <rjwwvqgxz1.fsf@babbage.dina.kvl.dk>
     [not found]             ` <x7ralyf6rx.fsf@myware.rz.uni-karlsruhe.de>
     [not found]               ` <rj3eydhwx5.fsf@babbage.dina.kvl.dk>
1996-11-14 12:28                 ` Internationalization François Pinard
1996-11-12 22:07         ` Internationalization Lars Magne Ingebrigtsen
1996-11-13 19:19           ` Internationalization Jan Vroonhof
1996-11-13 22:05             ` Internationalization William Perry
1996-11-14 19:27               ` Internationalization Ralph Schleicher
1996-11-12 20:12   ` Internationalization Jan Vroonhof
1996-11-11 21:35 ` Internationalization François Pinard
1996-11-12  1:57   ` Internationalization Ulrich Drepper
1996-11-12 19:56   ` Internationalization Lars Magne Ingebrigtsen
1996-11-12 22:40     ` Internationalization Ulrich Drepper
2002-10-20 21:21     ` Internationalization François Pinard
1996-11-17 22:59 ` Ralph Schleicher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uf91801g6y.fsf@bravo.purple.UL.BaWue.DE \
    --to=rs@purple.ul.bawue.de \
    --cc=ding@ifi.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).