1Locale::gettext_xs(3) User Contributed Perl DocumentationLocale::gettext_xs(3)
2
3
4

NAME

6       Locale::gettext_xs - XS Implementation of Uniforum Message Translation
7

SYNOPSIS

9        use gettext_xs (:locale_h :libintl_h);
10
11        gettext $msgid;
12        dgettext $domainname, $msgid;
13        dcgettext $domainname, $msgid, LC_MESSAGES;
14        ngettext $msgid, $msgid_plural, $count;
15        dngettext $domainname, $msgid, $msgid_plural, $count;
16        dcngettext $domainname, $msgid, $msgid_plural, $count, LC_MESSAGES;
17        textdomain $domainname;
18        bindtextdomain $domainname, $directory;
19        bind_textdomain_codeset $domainname, $encoding;
20        my $category = LC_CTYPE;
21        my $category = LC_NUMERIC;
22        my $category = LC_TIME;
23        my $category = LC_COLLATE;
24        my $category = LC_MONETARY;
25        my $category = LC_MESSAGES;
26        my $category = LC_ALL;
27

DESCRIPTION

29       The module Locale::gettext_xs is the low-level interface to message
30       translation according to the Uniforum approach that is for example used
31       in GNU gettext and Sun's Solaris.
32
33       The module does not necessarily work on your system.  It depends on the
34       presence of shared libraries that are not always available.  The
35       higher-level modules Locale::TextDomain::(3), resp.  Locale::Mes‐
36       sages(3) will fall back to a pure Perl version if boostrapping
37       Locale::gettext_xs fails.
38
39       The interface of Locale::gettext_xs is mostly identical to the pure
40       Perl version as described in Locale::gettext_pp(3), see there for
41       details.  Differences are outlined below.
42
43       Locale::gettext_xs is downwards compatible to Locale::gettext(3) by
44       Phillip Vandry <vandry@Mlink.NET>.  You can use it as replacement for
45       Locale::gettext(3).
46
47       Please note that directory names passed to the function bindtextdo‐
48       main() are automatically converted from Perl semantics (slash as direc‐
49       tory separator) to local semantics (for example the backslash for
50       MS-DOS).
51

AUTHOR

53       Copyright (C) 2002-2004, Guido Flohr <guido@imperia.net>, all rights
54       reserved.  See the source code for details.
55
56       The module is based on the work of Phillip Vandry <vandry@Mlink.NET> in
57       Locale::gettext(3).
58
59       This software is contributed to the Perl community by Imperia
60       (<http://www.imperia.net/>).
61

SEE ALSO

63       Locale::TextDomain(3pm), Locale::gettext_pp(3pm), Locale::gettext(3pm),
64       Locale::Messages(3pm), File::Spec(3), perl(1)
65
66
67
68perl v5.8.8                       2006-08-28             Locale::gettext_xs(3)
Impressum