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