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 Locale::gettext_pp qw(: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 pgettext $msgctxt, $msgid;
19 dpgettext $domainname, $msgctxt, $msgid;
20 dcpgettext $domainname, $msgctxt, $msgid, LC_MESSAGES;
21 npgettext $msgctxt, $msgid, $msgid_plural, $count;
22 dnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count;
23 dcnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count, LC_MESSAGES;
24 textdomain $domainname;
25 bindtextdomain $domainname, $directory;
26 bind_textdomain_codeset $domainname, $encoding;
27 my $category = LC_CTYPE;
28 my $category = LC_NUMERIC;
29 my $category = LC_TIME;
30 my $category = LC_COLLATE;
31 my $category = LC_MONETARY;
32 my $category = LC_MESSAGES;
33 my $category = LC_ALL;
34
36 The module Locale::gettext_pp is the low-level interface to message
37 translation according to the Uniforum approach that is for example used
38 in GNU gettext and Sun's Solaris.
39
40 Normally you should not use this module directly, but the high level
41 interface Locale::TextDomain(3) that provides a much simpler interface.
42 This description is therefore deliberately kept brief. Please refer
43 to the GNU gettext documentation available at
44 <http://www.gnu.org/manual/gettext/> for in-depth and background
45 information on the topic.
46
48 The module exports by default nothing. Every function has to be
49 imported explicitely or via an export tag ("EXPORT TAGS").
50
51 gettext MSGID
52 See "FUNCTIONS" in Locale::Messages.
53
54 dgettext TEXTDOMAIN, MSGID
55 See "FUNCTIONS" in Locale::Messages.
56
57 dcgettext TEXTDOMAIN, MSGID, CATEGORY
58 See "FUNCTIONS" in Locale::Messages.
59
60 ngettext MSGID, MSGID_PLURAL, COUNT
61 See "FUNCTIONS" in Locale::Messages.
62
63 dngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT
64 See "FUNCTIONS" in Locale::Messages.
65
66 dcngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT, CATEGORY
67 See "FUNCTIONS" in Locale::Messages.
68
69 pgettext MSGCTXT, MSGID
70 See "FUNCTIONS" in Locale::Messages.
71
72 dpgettext TEXTDOMAIN, MSGCTXT, MSGID
73 See "FUNCTIONS" in Locale::Messages.
74
75 dcpgettext TEXTDOMAIN, MSGCTXT, MSGID, CATEGORY
76 See "FUNCTIONS" in Locale::Messages.
77
78 npgettext MSGCTXT, MSGID, MSGID_PLURAL, COUNT
79 See "FUNCTIONS" in Locale::Messages.
80
81 dnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT
82 See "FUNCTIONS" in Locale::Messages.
83
84 dcnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT, CATEGORY
85 See "FUNCTIONS" in Locale::Messages.
86
87 textdomain TEXTDOMAIN
88 See "FUNCTIONS" in Locale::Messages.
89
90 bindtextdomain TEXTDOMAIN, DIRECTORY
91 See "FUNCTIONS" in Locale::Messages.
92
93 bind_textdomain_codeset TEXTDOMAIN, ENCODING
94 nl_putenv ENVSPEC
95 See "FUNCTIONS" in Locale::Messages.
96
97 setlocale
98 See "FUNCTIONS" in Locale::Messages.
99
101 You can (maybe) get the same constants from POSIX(3); see there for a
102 detailed description
103
104 LC_CTYPE
105 LC_NUMERIC
106 LC_TIME
107 LC_COLLATE
108 LC_MONETARY
109 LC_MESSAGES
110 LC_ALL
111 See "CONSTANTS" in Locale::Messages for more information.
112
114 This module does not export anything unless explicitely requested. You
115 can import groups of functions via two tags:
116
117 use Locale::gettext_pp qw(':locale_h')
118 Imports the functions that are normally defined in the C include
119 file locale.h:
120
121 gettext()
122 dgettext()
123 dcgettext()
124 ngettext()
125 dngettext()
126 dcngettext()
127 pgettext()
128 Introduced with libintl-perl 1.17.
129
130 dpgettext()
131 Introduced with libintl-perl 1.17.
132
133 dcpgettext()
134 Introduced with libintl-perl 1.17.
135
136 npgettext()
137 Introduced with libintl-perl 1.17.
138
139 dnpgettext()
140 Introduced with libintl-perl 1.17.
141
142 dcnpgettext()
143 Introduced with libintl-perl 1.17.
144
145 textdomain()
146 bindtextdomain()
147 bind_textdomain_codeset()
148 use Locale::gettext_pp (':libintl_h')
149 Imports the locale category constants:
150
151 LC_CTYPE
152 LC_NUMERIC
153 LC_TIME
154 LC_COLLATE
155 LC_MONETARY
156 LC_MESSAGES
157 LC_ALL
158
160 Copyright (C) 2002-2017 Guido Flohr <http://www.guido-flohr.net/>
161 (<mailto:guido.flohr@cantanea.com>), all rights reserved. See the
162 source code for details!code for details!
163
165 Locale::TextDomain(3pm), Locale::Messages(3pm), Encode(3pm),
166 perllocale(3pm), POSIX(3pm), perl(1), gettext(1), gettext(3)
167
169 Hey! The above document had some coding errors, which are explained
170 below:
171
172 Around line 1121:
173 =cut found outside a pod block. Skipping to next block.
174
175
176
177perl v5.28.1 2019-02-02 Locale::gettext_pp(3)