1Locale::gettext_pp(3) User Contributed Perl DocumentationLocale::gettext_pp(3)
2
3
4
6 Locale::gettext_pp - Pure Perl Implementation of Uniforum Message
7 Translation
8
10 use gettext_pp (:locale_h :libintl_h);
11
12 gettext $msgid;
13 dgettext $domainname, $msgid;
14 dcgettext $domainname, $msgid, LC_MESSAGES;
15 ngettext $msgid, $msgid_plural, $count;
16 dngettext $domainname, $msgid, $msgid_plural, $count;
17 dcngettext $domainname, $msgid, $msgid_plural, $count, LC_MESSAGES;
18 textdomain $domainname;
19 bindtextdomain $domainname, $directory;
20 bind_textdomain_codeset $domainname, $encoding;
21 my $category = LC_CTYPE;
22 my $category = LC_NUMERIC;
23 my $category = LC_TIME;
24 my $category = LC_COLLATE;
25 my $category = LC_MONETARY;
26 my $category = LC_MESSAGES;
27 my $category = LC_ALL;
28
30 The module Locale::gettext_pp is the low-level interface to message
31 translation according to the Uniforum approach that is for example used
32 in GNU gettext and Sun's Solaris.
33
34 Normally you should not use this module directly, but the high level
35 interface Locale::TextDomain(3) that provides a much simpler inter‐
36 face. This description is therefore deliberately kept
37 brief. Please refer to the GNU gettext documentation available at
38 <http://www.gnu.org/manual/gettext/> for in-depth and background infor‐
39 mation on the topic.
40
42 The module exports by default nothing. Every function has to be
43 imported explicitely or via an export tag ("EXPORT TAGS").
44
45 gettext MSGID
46 See "FUNCTIONS" in Locale::Messages.
47
48 dgettext TEXTDOMAIN, MSGID
49 See "FUNCTIONS" in Locale::Messages.
50
51 dcgettext TEXTDOMAIN, MSGID, CATEGORY
52 See "FUNCTIONS" in Locale::Messages.
53
54 ngettext MSGID, MSGID_PLURAL, COUNT
55 See "FUNCTIONS" in Locale::Messages.
56
57 dngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT
58 See "FUNCTIONS" in Locale::Messages.
59
60 dcngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT, CATEGORY
61 See "FUNCTIONS" in Locale::Messages.
62
63 textdomain TEXTDOMAIN
64 See "FUNCTIONS" in Locale::Messages.
65
66 bindtextdomain TEXTDOMAIN, DIRECTORY
67 See "FUNCTIONS" in Locale::Messages.
68
69 bind_textdomain_codeset TEXTDOMAIN, ENCODING
70 nl_putenv ENVSPEC
71 See "FUNCTIONS" in Locale::Messages.
72
74 You can (maybe) get the same constants from POSIX(3); see there for a
75 detailed description
76
77 LC_CTYPE
78 LC_NUMERIC
79 LC_TIME
80 LC_COLLATE
81 LC_MONETARY
82 LC_MESSAGES
83 LC_ALL
84 See "CONSTANTS" in Locale::Messages for more information.
85
87 This module does not export anything unless explicitely requested. You
88 can import groups of functions via two tags:
89
90 use Locale::gettext_pp (':locale_h')
91 Imports the functions that are normally defined in the C include
92 file locale.h:
93
94 gettext()
95 dgettext()
96 dcgettext()
97 ngettext()
98 dngettext()
99 dcngettext()
100 textdomain()
101 bindtextdomain()
102 bind_textdomain_codeset()
103 use Locale::gettext_pp (':libintl_h')
104 Imports the locale category constants:
105
106 LC_CTYPE
107 LC_NUMERIC
108 LC_TIME
109 LC_COLLATE
110 LC_MONETARY
111 LC_MESSAGES
112 LC_ALL
113
115 Copyright (C) 2002-2004, Guido Flohr <guido@imperia.net>, all rights
116 reserved. See the source code for details.
117
118 This software is contributed to the Perl community by Imperia
119 (<http://www.imperia.net/>).
120
122 Locale::TextDomain(3pm), Locale::Messages(3pm), Encode(3pm), perllo‐
123 cale(3pm), POSIX(3pm), perl(1), gettext(1), gettext(3)
124
125
126
127perl v5.8.8 2006-08-28 Locale::gettext_pp(3)