guile-devel
[Top][All Lists]
Advanced

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

Re: i18n, gettext support?


From: Andreas Rottmann
Subject: Re: i18n, gettext support?
Date: Tue, 17 Aug 2004 16:16:30 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Jan Nieuwenhuizen <address@hidden> 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 "address@hidden address@hidden" "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         | address@hidden      | address@hidden | address@hidden
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?





reply via email to

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