File: gettext.info, Node: Scheme, Next: Common Lisp, Prev: TypeScript, Up: List of Programming Languages 16.5.7 GNU guile - Scheme ------------------------- RPMs guile Ubuntu packages guile-2.0 File extension ‘scm’ String syntax ‘"abc"’ gettext shorthand ‘(_ "abc")’, ‘_"abc"’ (GIMP script-fu extension) gettext/ngettext functions ‘gettext’, ‘ngettext’ textdomain ‘textdomain’ bindtextdomain ‘bindtextdomain’ setlocale ‘(catch #t (lambda () (setlocale LC_ALL "")) (lambda args #f))’ Prerequisite ‘(use-modules (ice-9 format))’ Use or emulate GNU gettext use Extractor ‘xgettext -L Guile -k_’ ‘xgettext -L Scheme’ and ‘xgettext -L Guile’ are nearly equivalent. They differ in the interpretation of escape sequences in string literals: While ‘xgettext -L Scheme’ assumes the R6RS and R7RS syntax of string literals, ‘xgettext -L Guile’ assumes the syntax of string literals understood by Guile 2.x and 3.0 (without command-line option ‘--r6rs’ or ‘--r7rs’, and before a ‘#!r6rs’ directive is seen). After a ‘#!r6rs’ directive, there is no difference any more between ‘xgettext -L Scheme’ and ‘xgettext -L Guile’ for the rest of the file. Formatting with positions -- Portability On platforms without gettext, no translation. po-mode marking -- An example is available in the ‘examples’ directory: ‘hello-guile’.
