diff options
author | Marius Vollmer <mvo@zagadka.de> | 2004-09-23 18:45:35 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2004-09-23 18:45:35 +0000 |
commit | fd936c9173aca3d5ab7c05a46c541c2179f6a688 (patch) | |
tree | ea83599022e95ca427b0191f7c0a05a067733f48 /doc/ref/api-i18n.texi | |
parent | e5e5007d34771c85c992b4eb125f182cbe9e145d (diff) | |
download | guile-fd936c9173aca3d5ab7c05a46c541c2179f6a688.tar.gz |
* api-i18n.texi: New file.
* Makefile.am (guile_TEXINFOS): Added it.
Diffstat (limited to 'doc/ref/api-i18n.texi')
-rw-r--r-- | doc/ref/api-i18n.texi | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/ref/api-i18n.texi b/doc/ref/api-i18n.texi new file mode 100644 index 000000000..bf89adb56 --- /dev/null +++ b/doc/ref/api-i18n.texi @@ -0,0 +1,38 @@ +@c -*-texinfo-*- +@c This is part of the GNU Guile Reference Manual. +@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004 +@c Free Software Foundation, Inc. +@c See the file guile.texi for copying conditions. + +@page +@node Internationalization +@section Support for Internationalization + +@deffn {Scheme Procedure} gettext msgid [domain [category]] +@deffnx {C Function} scm_gettext (msgid, domain, category) +Return the translation of @var{msgid} in the message domain @var{domain}. @var{domain} is optional and defaults to the domain set through (textdomain). @var{category} is optional and defaults to LC_MESSAGES. +@end deffn + +@deffn {Scheme Procedure} ngettext msgid msgid_plural n [domain [category]] +@deffnx {C Function} scm_ngettext (msgid, msgid_plural, n, domain, category) +Return the translation of @var{msgid}/@var{msgid_plural} in the message domain @var{domain}, with the plural form being chosen appropriately for the number @var{n}. @var{domain} is optional and defaults to the domain set through (textdomain). @var{category} is optional and defaults to LC_MESSAGES. +@end deffn + +@deffn {Scheme Procedure} textdomain [domainname] +@deffnx {C Function} scm_textdomain (domainname) +If optional parameter @var{domainname} is supplied, set the textdomain. Return the textdomain. +@end deffn + +@deffn {Scheme Procedure} bindtextdomain domainname [directory] +@deffnx {C Function} scm_bindtextdomain (domainname, directory) +If optional parameter @var{directory} is supplied, set message catalogs to directory @{directory}. Return the directory bound to @var{domainname}. +@end deffn + +@deffn {Scheme Procedure} bind-textdomain-codeset domainname [encoding] +@deffnx {C Function} scm_bind_textdomain_codeset (domainname, encoding) +If optional parameter @var{encoding} is supplied, set encoding for message catalogs of @{domainname}. Return the encoding of @var{domainname}. +@end deffn + +@c Local Variables: +@c TeX-master: "guile.texi" +@c End: |