1@c This file is part of the GNU gettext manual. 2@c Copyright (C) 1995-2020 Free Software Foundation, Inc. 3@c See the file gettext.texi for copying conditions. 4 5@node Scheme 6@subsection GNU guile - Scheme 7@cindex Scheme 8@cindex guile 9 10@table @asis 11@item RPMs 12guile 13 14@item Ubuntu packages 15guile-2.0 16 17@item File extension 18@code{scm} 19 20@item String syntax 21@code{"abc"} 22 23@item gettext shorthand 24@code{(_ "abc")}, @code{_"abc"} (GIMP script-fu extension) 25 26@item gettext/ngettext functions 27@code{gettext}, @code{ngettext} 28 29@item textdomain 30@code{textdomain} 31 32@item bindtextdomain 33@code{bindtextdomain} 34 35@item setlocale 36@code{(catch #t (lambda () (setlocale LC_ALL "")) (lambda args #f))} 37 38@item Prerequisite 39@code{(use-modules (ice-9 format))} 40 41@item Use or emulate GNU gettext 42use 43 44@item Extractor 45@code{xgettext -k_} 46 47@item Formatting with positions 48@c @code{format "~1@@*~D ~0@@*~D~2@@*"}, requires @code{(use-modules (ice-9 format))} 49@c not yet supported 50--- 51 52@item Portability 53On platforms without gettext, no translation. 54 55@item po-mode marking 56--- 57@end table 58 59An example is available in the @file{examples} directory: @code{hello-guile}. 60