📄 classi18n.html
字号:
<td class="mdname" nowrap> <em>param3</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The same as the first method, just with only three parameters. Just for your convenience.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>textdomain</em> </td><td>
The textdomain that should be used. </td></tr>
<tr><td valign=top><em>msgid</em> </td><td>
The msgid that should be translated. </td></tr>
<tr><td valign=top><em>param1</em> </td><td>
Substitution string for $0. </td></tr>
<tr><td valign=top><em>param2</em> </td><td>
Substitution string for $1. </td></tr>
<tr><td valign=top><em>param3</em> </td><td>
Substitution string for $2. </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
The translated string. </dl> </td>
</tr>
</table>
<a name="d3" doxytag="I18N::i18n"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> string I18N::i18n </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const string & </td>
<td class="mdname" nowrap> <em>textdomain</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>msgid</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>param1</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>param2</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The same as the first method, just with only two parameters. Just for your convenience.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>textdomain</em> </td><td>
The textdomain that should be used. </td></tr>
<tr><td valign=top><em>msgid</em> </td><td>
The msgid that should be translated. </td></tr>
<tr><td valign=top><em>param1</em> </td><td>
Substitution string for $0. </td></tr>
<tr><td valign=top><em>param2</em> </td><td>
Substitution string for $1. </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
The translated string. </dl> </td>
</tr>
</table>
<a name="d2" doxytag="I18N::i18n"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> string I18N::i18n </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const string & </td>
<td class="mdname" nowrap> <em>textdomain</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>msgid</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>param</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The same as the first method, just with only one parameters. Just for your convenience.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>textdomain</em> </td><td>
The textdomain that should be used. </td></tr>
<tr><td valign=top><em>msgid</em> </td><td>
The msgid that should be translated. </td></tr>
<tr><td valign=top><em>param</em> </td><td>
Substitution string for $0. </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
The translated string. </dl> </td>
</tr>
</table>
<a name="d1" doxytag="I18N::i18n"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> string I18N::i18n </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const string & </td>
<td class="mdname" nowrap> <em>textdomain</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>msgid</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>string </td>
<td class="mdname" nowrap> <em>params</em>[], </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>count</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Translates the string msgid. The string msgid will be translated using the glibc gettext() function. Additionally the string can include special substitution characters, which will be substituted with the strings in the array params. EG: "This is a test arg $0, and this is another one: $1" $0 will be substituted by params[0], $1 will be substituted by params[1], etc.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>textdomain</em> </td><td>
The textdomain that should be used. </td></tr>
<tr><td valign=top><em>msgid</em> </td><td>
The msgid that should be translated. </td></tr>
<tr><td valign=top><em>params</em> </td><td>
The strings that should be inserted into the translated message. </td></tr>
<tr><td valign=top><em>count</em> </td><td>
The size of the array params. </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
The translated string. </dl> </td>
</tr>
</table>
<a name="d0" doxytag="I18N::init"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void I18N::init </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const string & </td>
<td class="mdname" nowrap> <em>textdomain</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const string & </td>
<td class="mdname" nowrap> <em>locale_dir</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Initialize the i18n subsystem. Will be called by libsmtp++ when the library is loaded but must be called again if messages that belongs to another textdomain than "libsmtp++" should be translated.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>textdomain</em> </td><td>
The textdomain that should be added. </td></tr>
<tr><td valign=top><em>locale_dir</em> </td><td>
The directory that contains the message files for this textdomain. </td></tr>
</table>
</dl> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="i18n_8h-source.html">i18n.h</a><li>i18n.cpp</ul>
<hr><address align="right"><small>Generated on Tue Jan 28 17:09:59 2003 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -