Next: GNU clisp - Common Lisp, Previous: JavaScript, Up: Individual Programming Languages [Contents][Index]
guile
guile-2.0
scm
"abc"
(_ "abc")
, _"abc"
(GIMP script-fu extension)
gettext
, ngettext
textdomain
bindtextdomain
(catch #t (lambda () (setlocale LC_ALL "")) (lambda args #f))
(use-modules (ice-9 format))
use
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.
—
On platforms without gettext, no translation.
—
An example is available in the examples directory: hello-guile
.