[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).


    (gettext :mgs "message" :domain "emacs" :lang "de_DE")


    (setenv LANG "de_DE")
    (setenv TEXDOMAIN "emacs")
    (gettext "message")


    (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:


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/             |   (*)/'(*)

reply via email to

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