mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Sets the default domain</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.textdomain" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">textdomain</h1>
|
|
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">textdomain</span> — <span class="dc-title">Sets the default domain</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.textdomain-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>textdomain</strong></span>
|
|
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$text_domain</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
This function sets the domain to search within when calls are
|
|
made to <span class="function"><a href="gettext.html" class="function">gettext()</a></span>, usually the named after an
|
|
application.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.textdomain-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">text_domain</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The new message domain, or <strong><code>NULL</code></strong> to get the current setting without
|
|
changing it
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.textdomain-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
If successful, this function returns the current message
|
|
domain, after possibly changing it.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |