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 - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

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



_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to