From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: i18n, gettext support? Date: Tue, 17 Aug 2004 16:16:30 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87vffh7su9.fsf@ivanova.rotty.yi.org> References: <878ycflchx.fsf@peder.flower> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092756328 12318 80.91.224.253 (17 Aug 2004 15:25:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2004 15:25:28 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 17 17:25:11 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 1Bx5Zw-00039k-00 for ; Tue, 17 Aug 2004 17:08:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bx5e6-00084j-S8 for guile-devel@m.gmane.org; Tue, 17 Aug 2004 11:13:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bx5e4-00083l-9Q for guile-devel@gnu.org; Tue, 17 Aug 2004 11:13:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bx5e0-00082o-St for guile-devel@gnu.org; Tue, 17 Aug 2004 11:13:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bx5e0-00082d-O8 for guile-devel@gnu.org; Tue, 17 Aug 2004 11:13:00 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bx5ZR-00059v-Nc for guile-devel@gnu.org; Tue, 17 Aug 2004 11:08:17 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bx5ZO-0006PH-00 for ; Tue, 17 Aug 2004 17:08:16 +0200 Original-Received: from chello080109053157.14.14.univie.teleweb.at ([80.109.53.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Aug 2004 17:08:13 +0200 Original-Received: from a.rottmann by chello080109053157.14.14.univie.teleweb.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Aug 2004 17:08:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: chello080109053157.14.14.univie.teleweb.at User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:lpKfNG51ZmT/8oKJjBu8jaQBq0M= 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:3969 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3969 Jan Nieuwenhuizen writes: > Hi, > > What's the preferred way to internationalise GUILE code? > > I found a short two year old thread on guile-user, that stops short > with a patch that fails. > > For the upcoming LilyPond 3.0, we have moved even more functionality > from C++ to guile, and along with this messages that are exposed to > the user. These need to be ornamented and translated. > > I'm wondering whether we should duplicate a list of all messages in C > code for xgettext to find, and do all printing of user messages > through a C gettext wrapper? > A related (to i18n) issue: it would be nice to have positional argument support in (ice-9 format); e.g.: (format #t "~@2A ~@1A" "World!" "Hello") would print "Hello World!". I just took @ as a position 'prefix', since according to the docs, it is not taken yet. Alternative syntax suggestions welcome. Why do you need this? Say you have a help message format string "This is ~A ~A". When translated to another language, the order of the arguments in the help message might be reversed (yeah, I'm too lame to come up with a real example, but this happens, trust me ;). What do you think about adding such a feature? Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Software Patents: Where do you want to stifle inovation today? _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel