[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."
prepare.sh
Description: Text document
gettext.el
Description: Binary data
--
Daiki Ueno
- Re: IRC client for Emacs, (continued)
- Re: IRC client for Emacs, Richard Stallman, 2002/08/15
- Re: IRC client for Emacs, Noah Friedman, 2002/08/20
- Re: IRC client for Emacs, Richard Stallman, 2002/08/20
- Re: IRC client for Emacs, Noah Friedman, 2002/08/20
- Re: IRC client for Emacs, Richard Stallman, 2002/08/21
- Re: IRC client for Emacs, Noah Friedman, 2002/08/21
- Re: IRC client for Emacs,
Daiki Ueno <=
- Re: IRC client for Emacs, Richard Stallman, 2002/08/23
- Re: IRC client for Emacs, Daiki Ueno, 2002/08/24
- Re: IRC client for Emacs, Richard Stallman, 2002/08/25
- Re: IRC client for Emacs, Noah Friedman, 2002/08/26
- Re: IRC client for Emacs, Richard Stallman, 2002/08/27
- Re: IRC client for Emacs, Eli Zaretskii, 2002/08/21
- Re: IRC client for Emacs, Karl Eichwalder, 2002/08/22
- Re: IRC client for Emacs, Karl Eichwalder, 2002/08/15
- Re: IRC client for Emacs, Richard Stallman, 2002/08/12
- Re: IRC client for Emacs, Noah Friedman, 2002/08/12