[Top][All Lists]

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

Re: IRC client for Emacs

From: Daiki Ueno
Subject: Re: IRC client for Emacs
Date: Thu, 22 Aug 2002 16:13:42 +0900
User-agent: T-gnus/6.15.7 (based on Oort Gnus v0.07) (revision 02)

>>>>> In <address@hidden> 
>>>>>   Noah Friedman <address@hidden> wrote:

> Persistent hashtables might be useful for other things (such as BBDB), so
> they seem worth considering for reasons beyond localization.

Why don't you consider reading *.mo files themselves?  Even now gettext
0.11.5 has a support to Emacs Lisp.  I have used my gettext.el for that
purpose in my IRC client (Liece) for several years.

Here is the example:

;; Before evaluating the following expressions, it is needed to run
;; ./prepare.sh (attached below) to generate prog.mo in the current
;; directory and to type M-x load-file gettext.el (also, attached below).

(setenv "LANG" "fr")
=> "fr"

(bind-text-domain "prog" ".")
=> (("prog" . "/home/ueno/fr/LC_MESSAGES/prog.mo"))

(dgettext "prog" "'Your command, please?', asked the waiter.")
=> "«Votre commande, s'il vous plait», dit le garçon."

Attachment: prepare.sh
Description: Text document

Attachment: gettext.el
Description: Binary data

Daiki Ueno

reply via email to

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