From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.lisp.guile.devel Subject: Re: i18n, gettext support Date: Tue, 7 Sep 2004 14:38:13 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <200409071438.13021.bruno@clisp.org> References: <200408202226.10769.bruno@clisp.org> <200409041925.15048.bruno@clisp.org> <87d60zey1j.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094560938 2875 80.91.224.253 (7 Sep 2004 12:42:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2004 12:42:18 +0000 (UTC) Cc: guile-devel@gnu.org, Jan Nieuwenhuizen Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 07 14:42:05 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C4fIT-0003Mn-00 for ; Tue, 07 Sep 2004 14:42:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4fNh-0006CK-6K for guile-devel@m.gmane.org; Tue, 07 Sep 2004 08:47:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4fNX-00067d-O1 for guile-devel@gnu.org; Tue, 07 Sep 2004 08:47:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4fNV-00066O-T1 for guile-devel@gnu.org; Tue, 07 Sep 2004 08:47:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4fNV-000665-L9 for guile-devel@gnu.org; Tue, 07 Sep 2004 08:47:17 -0400 Original-Received: from [81.80.162.195] (helo=ftp.ilog.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4fIE-000766-D4; Tue, 07 Sep 2004 08:41:51 -0400 Original-Received: from laposte.ilog.fr (cerbere-qe0 [81.80.162.193]) by ftp.ilog.fr (8.13.1/8.13.0) with ESMTP id i87CfkjJ024354; Tue, 7 Sep 2004 14:41:47 +0200 (MET DST) Original-Received: from honolulu.ilog.fr ([172.16.15.121]) by laposte.ilog.fr (8.13.1/8.13.1) with ESMTP id i87CfeTY026165; Tue, 7 Sep 2004 14:41:40 +0200 (MET DST) Original-Received: from localhost (localhost [127.0.0.1]) by honolulu.ilog.fr (Postfix) with ESMTP id 4BADE377B6; Tue, 7 Sep 2004 12:38:14 +0000 (UTC) Original-To: Kevin Ryde User-Agent: KMail/1.5 In-Reply-To: <87d60zey1j.fsf@zip.com.au> Content-Disposition: inline X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4089 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4089 Kevin Ryde wrote: > > In the GNU 'xgettext' extractor and associated example I will support > > whatever API you provide in guile. > > That'll be (_ "foo") won't it? Being nice and compact, and already > used. The 'xgettext' extractor will recognize 'gettext', 'ngettext'. I can also make it recognize '_' by default, no problem. However, I don't think the _ should be built-in. Rather, applications will define it differently than libraries: For an application, which typically calls set!-textdomain, a programmer does (define _ gettext) For a library, which must not interfere with the main application, a programmer does (define (_ msgid) (gettext msgid "my-domain")) [I hope Scheme has a package system or environment system that makes it possible to distinguish _ in the application from _ in the library!] Bruno _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel