[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i18n/gettext?
From: |
Karl Eichwalder |
Subject: |
Re: i18n/gettext? |
Date: |
Tue, 04 Dec 2001 05:58:52 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) |
address@hidden (Pavel Janík) writes:
> > François Pinard did some prototyping and these bits are still present in
> > po-mode.el coming with GNU gettext.
>
> can François prepare some demonstration for us?
Hello François,
may I ask you to lend us your hands? Can you tell us how to start to
add native language support to Emacs?
Emacs needs `gettext()' to query message catalogs. This essentially
means you want to line Emacs with GNU libintl (coming with glibc
resp. GNU gettext).
Then
(gettext :mgs "message" :domain "emacs" :lang "de_DE")
or
(setenv LANG "de_DE")
(setenv TEXDOMAIN "emacs")
(gettext "message")
resp.
(gettext MSG &optional DOMAIN LANG)
will return the German translation for "message" from the textdomain
"emacs"; usually, those translation are stored in a file like:
/usr/local/share/locale/de/LC_MESSAGES/emacs.mo
Tools to create .mo files are already available.
--
address@hidden (work) / address@hidden (home): |
http://www.suse.de/~ke/ | ,__o
Free Translation Project: | _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)
- Re: i18n/gettext?, Pavel Janík, 2001/12/03
- Re: i18n/gettext?,
Karl Eichwalder <=
- Re: i18n/gettext?, Richard Stallman, 2001/12/04
- Re: i18n/gettext?, François Pinard, 2001/12/05
- Re: i18n/gettext?, Richard Stallman, 2001/12/06
- Re: i18n/gettext?, Eli Zaretskii, 2001/12/07
- Re: i18n/gettext?, Paul Eggert, 2001/12/07
- Re: i18n/gettext?, Eli Zaretskii, 2001/12/08
- Re: i18n/gettext?, Paul Eggert, 2001/12/08
- Re: i18n/gettext?, Eli Zaretskii, 2001/12/09