gettext: Scheme
15.5.6 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 -k_’
Formatting with positions
—
Portability
On platforms without gettext, no translation.
po-mode marking
—
An example is available in the ‘examples’ directory: ‘hello-guile’.