Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/doc/gettext/textdomain.3.html @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 68:5028fdace37b |
---|---|
1 <!-- Creator : groff version 1.22.3 --> | |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
3 "http://www.w3.org/TR/html4/loose.dtd"> | |
4 <html> | |
5 <head> | |
6 <meta name="generator" content="groff -Thtml, see www.gnu.org"> | |
7 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | |
8 <meta name="Content-Style" content="text/css"> | |
9 <style type="text/css"> | |
10 p { margin-top: 0; margin-bottom: 0; vertical-align: top } | |
11 pre { margin-top: 0; margin-bottom: 0; vertical-align: top } | |
12 table { margin-top: 0; margin-bottom: 0; vertical-align: top } | |
13 h1 { text-align: center } | |
14 </style> | |
15 <title>TEXTDOMAIN</title> | |
16 | |
17 </head> | |
18 <body> | |
19 | |
20 <h1 align="center">TEXTDOMAIN</h1> | |
21 | |
22 <a href="#NAME">NAME</a><br> | |
23 <a href="#SYNOPSIS">SYNOPSIS</a><br> | |
24 <a href="#DESCRIPTION">DESCRIPTION</a><br> | |
25 <a href="#RETURN VALUE">RETURN VALUE</a><br> | |
26 <a href="#ERRORS">ERRORS</a><br> | |
27 <a href="#BUGS">BUGS</a><br> | |
28 <a href="#SEE ALSO">SEE ALSO</a><br> | |
29 | |
30 <hr> | |
31 | |
32 | |
33 <h2>NAME | |
34 <a name="NAME"></a> | |
35 </h2> | |
36 | |
37 | |
38 <p style="margin-left:11%; margin-top: 1em">textdomain | |
39 - set domain for future gettext() calls</p> | |
40 | |
41 <h2>SYNOPSIS | |
42 <a name="SYNOPSIS"></a> | |
43 </h2> | |
44 | |
45 | |
46 <p style="margin-left:11%; margin-top: 1em"><b>#include | |
47 <libintl.h></b></p> | |
48 | |
49 <p style="margin-left:11%; margin-top: 1em"><b>char * | |
50 textdomain (const char *</b> <i>domainname</i><b>);</b></p> | |
51 | |
52 <h2>DESCRIPTION | |
53 <a name="DESCRIPTION"></a> | |
54 </h2> | |
55 | |
56 | |
57 <p style="margin-left:11%; margin-top: 1em">The | |
58 <b>textdomain</b> function sets or retrieves the current | |
59 message domain.</p> | |
60 | |
61 <p style="margin-left:11%; margin-top: 1em">A message | |
62 domain is a set of translatable <i>msgid</i> messages. | |
63 Usually, every software package has its own message domain. | |
64 The domain name is used to determine the message catalog | |
65 where a translation is looked up; it must be a non-empty | |
66 string.</p> | |
67 | |
68 <p style="margin-left:11%; margin-top: 1em">The current | |
69 message domain is used by the <b>gettext</b>, | |
70 <b>ngettext</b> functions, and by the <b>dgettext</b>, | |
71 <b>dcgettext</b>, <b>dngettext</b> and <b>dcngettext</b> | |
72 functions when called with a NULL domainname argument.</p> | |
73 | |
74 <p style="margin-left:11%; margin-top: 1em">If | |
75 <i>domainname</i> is not NULL, the current message domain is | |
76 set to <i>domainname</i>. The string the function stores | |
77 internally is a copy of the <i>domainname</i> argument.</p> | |
78 | |
79 <p style="margin-left:11%; margin-top: 1em">If | |
80 <i>domainname</i> is NULL, the function returns the current | |
81 message domain.</p> | |
82 | |
83 <h2>RETURN VALUE | |
84 <a name="RETURN VALUE"></a> | |
85 </h2> | |
86 | |
87 | |
88 <p style="margin-left:11%; margin-top: 1em">If successful, | |
89 the <b>textdomain</b> function returns the current message | |
90 domain, after possibly changing it. The resulting string is | |
91 valid until the next <b>textdomain</b> call and must not be | |
92 modified or freed. If a memory allocation failure occurs, it | |
93 sets <b>errno</b> to <b>ENOMEM</b> and returns NULL.</p> | |
94 | |
95 <h2>ERRORS | |
96 <a name="ERRORS"></a> | |
97 </h2> | |
98 | |
99 | |
100 <p style="margin-left:11%; margin-top: 1em">The following | |
101 error can occur, among others:</p> | |
102 | |
103 <table width="100%" border="0" rules="none" frame="void" | |
104 cellspacing="0" cellpadding="0"> | |
105 <tr valign="top" align="left"> | |
106 <td width="11%"></td> | |
107 <td width="9%"> | |
108 | |
109 | |
110 <p><b>ENOMEM</b></p></td> | |
111 <td width="2%"></td> | |
112 <td width="43%"> | |
113 | |
114 | |
115 <p>Not enough memory available.</p></td> | |
116 <td width="35%"> | |
117 </td></tr> | |
118 </table> | |
119 | |
120 <h2>BUGS | |
121 <a name="BUGS"></a> | |
122 </h2> | |
123 | |
124 | |
125 <p style="margin-left:11%; margin-top: 1em">The return type | |
126 ought to be <b>const char *</b>, but is <b>char *</b> to | |
127 avoid warnings in C code predating ANSI C.</p> | |
128 | |
129 <h2>SEE ALSO | |
130 <a name="SEE ALSO"></a> | |
131 </h2> | |
132 | |
133 | |
134 | |
135 <p style="margin-left:11%; margin-top: 1em"><b>gettext</b>(3), | |
136 <b>ngettext</b>(3), <b>bindtextdomain</b>(3), | |
137 <b>bind_textdomain_codeset</b>(3)</p> | |
138 <hr> | |
139 </body> | |
140 </html> |