lilypond-devel
[Top][All Lists]
Advanced

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

Re: LilyPond Odd Jobs


From: Han-Wen Nienhuys
Subject: Re: LilyPond Odd Jobs
Date: Mon, 01 Jan 2007 15:02:12 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061219)

Werner LEMBERG escreveu:
>>> I wonder how those strings can be internationalized.  The normal
>>> gettext mechanism might work (and is probably the right approach),
>>> but how to get the translations from the PO files into the texinfo
>>> file?
>> you could surround them by (_ "") that's a performance hit. It would
>> be better to write a bit of Scheme code that extracts the strings
>> directly from the output of procedure-source
> 
> Please elaborate.  I think I don't fully understand what you say.

Normally, one extracts strings by running gettext on a source file.

However, Scheme supports introspection, so it is possible to extract
the strings from a program, by loading a Scheme file, and inspecting
the source code of the loaded procedures from within a Scheme program.

-- 

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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