head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2001.06.30.16.54.36;	author dan;	state Exp;
branches;
next	;


desc
@Internationalization with message text files for other languages.
@


1.1
log
@Initial revision
@
text
@INTERNATIONALIZATION (I18N) and LOCALIZATION (L18N) for swhoisd
===============================================================
$Id$

Swhoisd has been internationalized (I18N). That means, with the proper
localized  (L18N)  message  text file, swhoisd can display messages in
your local language ("localized"). For example, for Spanish (Espaol),
LANG=es_MX, the above example would appear as follows:

$ whois -h localhost fred
SWHOIS Daemon Release 2.0
Buscando fred. Se encontraron 1 archivo(s) que corresponde con fred.

Persona:                 (Manija FF-DRYDOG)
Nombre:                  Fred Flintstone
Direccin de correo-e:   fred@@drydog.com
Direccin:               3990 Rock Bottom Dr., San Diego, CA 92111
Pais:                    US
Telfono:                858-853-1212
Numero del Facsmile:    630-555-0654
Actualizado pasado:      Sat Jun 23 18:31:55 PDT 2001

Para seleccionar un expediente, busquelo con "!XXX", usando XXX como manija.

To  use  a message text file for swhoisd, you should already have your
$LANG (or $LC_*) environment variable set to your language and country
code  (e.g., "es_MX"). Set it your /etc/profile file so the in.swhoisd
daemon  will  read  it.  If you start in.swhoisd with xinetd or inetd,
check  to see that /etc/init.d/*inetd doesn't unset $LANG or set it to
another  value.  For  example,  RedHat's xinetd sets "$LANG to "en_US"
Comment out lines setting these variables: LANG, LANGUAGE, LC_ALL, and
LC_MESSAGES

The following language files are available:
  * Espaol Espaol / Spanish (swhoisd 2.0 6/2001)
       + Text: swhoisd.es.po
       + Binary:  swhoisd.es.mo  (x86  format for Linux or Solaris
         x86)

Creating a .po Language File
If  you  don't  have the binary .mo file, you need to convert the text
file  (.po) to a binary .mo file, To convert a .po file to a .mo file,
run
msgfmt swhoisd.es.po -o swhoisd.es.mo
Substitute "es" by with your two-letter language code.

Installing a .po Language File
Copy  the  binary  .po  file to your locale directory. The location of
your  locale  directory  varies  according  to  what OS you're running
(Linux  or  Solaris)  and  the  value of the first two letters of your
$LANG environment variable (an example for "es_MX" is shown here):
  * Directory /usr/share/locale/es/LC_MESSAGES/ for RedHat Linux
  * Directory /usr/lib/locale/es/LC_MESSAGES/ for Solaris

For  example,  for German (Deutsche), LANG=de_DE, on RedHat Linux, run
this command to install the file in the proper directory:
cp swhoisd.es.mo /usr/share/locale/de/LC_MESSAGES/swhoisd.mo

Adding New Language Files
To  localize,  copy  and  translate text file swhoisd.po with your
favorite  editor.  Convert  to a .mo file as above. Here's one example
for a German swhoisd.po file:

	msgid "Email address:         "
	msgstr "E-Mail Adresse:        "

File  swhoisd.po is provided with the binary swhoisd packages, but
is also File available here for your convenience.

If  you  translate  file  swhoisd.po  to  another language, please
email  a  copy to me at dan@@drydog.com (or use my comment form
at https://dan.drydog.com/comment.html)
@
