From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: Re: IRC client for Emacs Date: Wed, 14 Aug 2002 21:07:09 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <87fzxhs1ia.fsf@emacswiki.org> References: <873ctot40n.fsf@emacswiki.org> <20020809223753.955308.FMU31823@piglet.prv.splode.com> <200208110355.g7B3tOo06247@wijiji.santafe.edu> <877kixtg8w.fsf@emacswiki.org> <20020811160610.424772.FMU9022@piglet.prv.splode.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029351974 21596 127.0.0.1 (14 Aug 2002 19:06:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2002 19:06:14 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17f3TB-0005cD-00 for ; Wed, 14 Aug 2002 21:06:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17f3sJ-0004Rc-00 for ; Wed, 14 Aug 2002 21:32:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17f3U7-00042c-00; Wed, 14 Aug 2002 15:07:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17f3Sz-0003tz-00 for emacs-devel@gnu.org; Wed, 14 Aug 2002 15:06:01 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17f3Sx-0003tm-00 for emacs-devel@gnu.org; Wed, 14 Aug 2002 15:06:00 -0400 Original-Received: from relay02.cablecom.net ([62.2.33.102]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17f3Sx-0003th-00 for emacs-devel@gnu.org; Wed, 14 Aug 2002 15:05:59 -0400 Original-Received: from smtp.swissonline.ch (mail-4.swissonline.ch [62.2.32.85]) by relay02.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id g7EJ5vZ79056 for ; Wed, 14 Aug 2002 21:05:57 +0200 (CEST) Original-Received: from confusibombus (dclient217-162-239-43.hispeed.ch [217.162.239.43]) by smtp.swissonline.ch (8.11.6/8.11.6/SMTPSOL/AWF/2002040101) with ESMTP id g7EJ5vH24823 for ; Wed, 14 Aug 2002 21:05:57 +0200 (MEST) Original-Received: from alex by confusibombus with local (Exim 3.35 #1 (Debian)) id 17f3U5-000081-00 for ; Wed, 14 Aug 2002 21:07:09 +0200 Original-To: emacs-devel@gnu.org X-Face: ^BC$`[IcggstLPyen&dqF+b2'zyK#r.mU*'Nms}@&4zw%SJ#5!/7SMVjBS7'lb;QK)|IPU5U'o1'522W4TyzB3Ab*IBo^iw]l4|kUbdZuUDO6=Um-.4IzhNiV'B"@K#jy_(wW|Zbk[34flKY^|PrQ?$u2\fKg^]AY>wOX#H32i In-Reply-To: (Karl Eichwalder's message of "Wed, 14 Aug 2002 19:11:05 +0200") Original-Lines: 36 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.90 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6541 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6541 Karl Eichwalder writes: > Noah Friedman writes: > >> I don't know if ERC has been internationalized, but zenirc has a >> a few localization catalogs already. > > Can it serve as an example to internationalized other parts of Emacs, > too? Maybe for applications within Emacs. In erc.el there is code like this: (defun erc-make-message-variable-name (catalog entry) (intern (concat "erc-message-" (symbol-name catalog) "-" (symbol-name entry)))) (defun erc-define-catalog-entry (catalog entry format-spec) (set (erc-make-message-variable-name catalog entry) format-spec)) (defun erc-define-catalog (catalog entries) (dolist (entry entries) (erc-define-catalog-entry catalog (car entry) (cdr entry)))) (erc-define-catalog 'english '((bad-ping-response . "Unexpected PING response from %n (time %t)") (bad-syntax . "Bad syntax") (cannot-find-file . "Cannot find file %f") (cannot-read-file . "Cannot read file %f") (connect . "Connecting to %S:%p... ") etc. Alex.