Skip to content

Commit

Permalink
Add replaceable tags to constants where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Dec 20, 2024
1 parent 0969994 commit 27c81cc
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 22 deletions.
5 changes: 3 additions & 2 deletions reference/memcached/memcached/getresultcode.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1d8068ecb070fdc360d750e0c1f3f15796e61ec0 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 976425d4f6eec32448be3cc22ec063015921b753 Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="memcached.getresultcode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Memcached::getResultCode</refname>
Expand All @@ -14,7 +15,7 @@
<void/>
</methodsynopsis>
<para>
<function>Memcached::getResultCode</function> 返回 <constant>Memcached::RES_*</constant> 系列常量中的一个来表明最后一次执行 Memcached 方法的结果。
<function>Memcached::getResultCode</function> 返回 <constant>Memcached::RES_<replaceable>*</replaceable></constant> 系列常量中的一个来表明最后一次执行 Memcached 方法的结果。
</para>
</refsect1>

Expand Down
27 changes: 23 additions & 4 deletions reference/memcached/memcached/setoption.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1d8068ecb070fdc360d750e0c1f3f15796e61ec0 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 7e6d80ad17ddaad007be2d981fc4bd6e75a042c7 Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="memcached.setoption" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Memcached::setOption</refname>
Expand Down Expand Up @@ -28,7 +29,7 @@
<term><parameter>option</parameter></term>
<listitem>
<para>
<literal>Memcached::OPT_*</literal> 常量之一。
<constant>Memcached::OPT_<replaceable>*</replaceable></constant> 常量之一。
参阅 <link linkend="memcached.constants">Memcached 常量</link>获取更多信息。
</para>
</listitem>
Expand All @@ -43,8 +44,26 @@
<para>
下面的选项列表需要通过特定的常量指定值。
<simplelist>
<member><literal>Memcached::OPT_HASH</literal> 需要 <literal>Memcached::HASH_*</literal> 值。</member>
<member><literal>Memcached::OPT_DISTRIBUTION</literal> 需要 <literal>Memcached::DISTRIBUTION_*</literal> 值。</member>
<member>
<constant>Memcached::OPT_HASH</constant> 需要
<constant>Memcached::HASH_<replaceable>*</replaceable></constant>
值。
</member>
<member>
<constant>Memcached::OPT_DISTRIBUTION</constant> 需要
<constant>Memcached::DISTRIBUTION_<replaceable>*</replaceable></constant>
值。
</member>
<member>
<constant>Memcached::OPT_SERIALIZER</constant> 需要
<constant>Memcached::SERIALIZER_<replaceable>*</replaceable></constant>
值。
</member>
<member>
<constant>Memcached::OPT_COMPRESSION_TYPE</constant> 需要
<constant>Memcached::COMPRESSION_<replaceable>*</replaceable></constant>
值。
</member>
</simplelist>
</para>
</note>
Expand Down
5 changes: 3 additions & 2 deletions reference/mysqli/mysqli/commit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 63b99082ef83eade08151f8cb528246fded81db9 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 976425d4f6eec32448be3cc22ec063015921b753 Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="mysqli.commit" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli::commit</refname>
Expand Down Expand Up @@ -37,7 +38,7 @@
<term><parameter>flags</parameter></term>
<listitem>
<para>
<constant>MYSQLI_TRANS_COR_*</constant> 常量的位掩码。
<constant>MYSQLI_TRANS_COR_<replaceable>*</replaceable></constant> 常量的位掩码。
</para>
</listitem>
</varlistentry>
Expand Down
2 changes: 1 addition & 1 deletion reference/mysqli/mysqli/kill.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 7ce9e1661da0479fe49641e3da2c2761cf029d5c Maintainer: yuanyuqiang Status: ready -->
<!-- EN-Revision: 9b1673cf114a1e10c4563ab9223cb56aed552b89 Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="mysqli.kill" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down
2 changes: 1 addition & 1 deletion reference/mysqli/mysqli/ping.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 7ce9e1661da0479fe49641e3da2c2761cf029d5c Maintainer: yuanyuqiang Status: ready -->
<!-- EN-Revision: 9b1673cf114a1e10c4563ab9223cb56aed552b89 Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="mysqli.ping" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down
2 changes: 1 addition & 1 deletion reference/mysqli/mysqli/refresh.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 7ce9e1661da0479fe49641e3da2c2761cf029d5c Maintainer: yuanyuqiang Status: ready -->
<!-- EN-Revision: 9b1673cf114a1e10c4563ab9223cb56aed552b89 Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="mysqli.refresh" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down
6 changes: 3 additions & 3 deletions reference/mysqli/mysqli/rollback.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 63b99082ef83eade08151f8cb528246fded81db9 Maintainer: Yf D Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 976425d4f6eec32448be3cc22ec063015921b753 Maintainer: Yf D Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="mysqli.rollback" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli::rollback</refname>
Expand Down Expand Up @@ -38,7 +38,7 @@
<term><parameter>flags</parameter></term>
<listitem>
<para>
<constant>MYSQLI_TRANS_COR_*</constant> 常量的位掩码。
<constant>MYSQLI_TRANS_COR_<replaceable>*</replaceable></constant> 常量的位掩码。
</para>
</listitem>
</varlistentry>
Expand Down
8 changes: 4 additions & 4 deletions reference/oauth/oauth/fetch.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: af5f2f87b3b0bb9ee0f83ccb787a4e7db1eb6bd4 Maintainer: ichenshy Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 976425d4f6eec32448be3cc22ec063015921b753 Maintainer: ichenshy Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="oauth.fetch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>OAuth::fetch</refname>
Expand Down Expand Up @@ -46,10 +46,10 @@
<term><parameter>http_method</parameter></term>
<listitem>
<para>
<constant>OAUTH_HTTP_METHOD_*</constant> 系列 <link linkend="oauth.constants">OAUTH 常量</link>之一,GET、POST、PUT、HEAD 或 DELETE 其中的一个。
<constant>OAUTH_HTTP_METHOD_<replaceable>*</replaceable></constant> 系列 OAUTH 常量之一,GET、POST、PUT、HEAD 或 DELETE 其中的一个。
</para>
<para>
HEAD (<constant>OAUTH_HTTP_METHOD_HEAD</constant> )可以用于先于请求发现信息(如果 OAuth 证书在 <literal>Authorization</literal> 头部)。
HEAD (<constant>OAUTH_HTTP_METHOD_HEAD</constant>)可以用于先于请求发现信息(如果 OAuth 证书在 <literal>Authorization</literal> 头部)。
</para>
</listitem>
</varlistentry>
Expand Down
7 changes: 3 additions & 4 deletions reference/oauth/oauthprovider/checkoauthrequest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6b65b2d86df7e3ac423c23a3c8358672b0d9033c Maintainer: ichenshy Status: ready -->
<!-- Reviewed: no -->

<!-- EN-Revision: 976425d4f6eec32448be3cc22ec063015921b753 Maintainer: ichenshy Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="oauthprovider.checkoauthrequest" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>OAuthProvider::checkOAuthRequest</refname>
Expand Down Expand Up @@ -39,7 +38,7 @@
<term><parameter>method</parameter></term>
<listitem>
<para>
<acronym>HTTP</acronym> 方法。 可选 <constant>OAUTH_HTTP_METHOD_*</constant> <link linkend="oauth.constants">OAuth 常量</link> 其中之一传递
<acronym>HTTP</acronym> 方法。可选 <constant>OAUTH_HTTP_METHOD_<replaceable>*</replaceable></constant> OAuth 常量其中之一传递
</para>
</listitem>
</varlistentry>
Expand Down

0 comments on commit 27c81cc

Please sign in to comment.