Rebrand get_info(xchatdir) but remain compatible for Perl and Python

This commit is contained in:
Berke Viktor
2012-10-30 09:59:58 +01:00
parent 66be50f335
commit 29f7a9180c
19 changed files with 48 additions and 48 deletions

View File

@@ -501,14 +501,14 @@ a context cannot be found.</p>
<td></td>
</tr>
<tr>
<td>xchatdir</td> <td>xchat config directory encoded in UTF-8<br />
<td>hexchatdir</td> <td>HexChat config directory encoded in UTF-8<br />
examples:<br />
/home/user/.xchat2<br />
C:\Documents and Settings\user\Application Data\X-Chat 2
/home/user/.config/hexchat<br />
C:\Users\user\Appdata\Roaming\HexChat
</td>
<td></td>
</tr><tr>
<td>xchatdirfs</td> <td>same as xchatdir except encoded in the locale file system encoding</td>
<td>hexchatdirfs</td> <td>same as hexchatdir except encoded in the locale file system encoding</td>
<td></td>
</tr>
</table><p>This function is used to retrieve certain information about the current

View File

@@ -834,8 +834,8 @@ Changed in 2.6.1. If _servname_ is NULL, it finds the channel (or query) by the
<tr><td>version</td><td>HexChat version number.</td></tr>
<tr><td>win_ptr</td><td>native window pointer. Unix: (GtkWindow *) Win32: HWND (since 2.6.0).</td></tr>
<tr><td>win_status</td><td>window status: "active", "hidden" or "normal" (since 2.0.9).</td>
<tr><td>xchatdir</td><td>HexChat config directory, e.g.: /home/user/.config/hexchat <small>This string is encoded in UTF-8, which means you _should_ convert it to "locale" encoding before using functions like open() or OpenFile(). For best <a href="#unicode">Unicode support</a> on Linux, convert this string using g_filename_from_utf8 and on Windows convert this string to UTF-16LE (wide) and use OpenFileW() etc.</small></td></tr>
<tr><td>xchatdirfs</td><td>HexChat config directory, e.g.: /home/user/.config/hexchat (since 2.0.9).<small>This string is encoded in local file system encoding, making it ideal for direct use with functions like open() or OpenFile(). For real Unicode support on Windows, it's best not to use xchatdirfs, but xchatdir instead.</small></td></tr>
<tr><td>hexchatdir</td><td>HexChat config directory, e.g.: /home/user/.config/hexchat <small>This string is encoded in UTF-8, which means you **should** convert it to "locale" encoding before using functions like open() or OpenFile(). For best <a href="#unicode">Unicode support</a> on Linux, convert this string using g_filename_from_utf8 and on Windows convert this string to UTF-16LE (wide) and use OpenFileW() etc.</small></td></tr>
<tr><td>hexchatdirfs</td><td>HexChat config directory, e.g.: /home/user/.config/hexchat.<small>This string is encoded in local file system encoding, making it ideal for direct use with functions like open() or OpenFile(). For real Unicode support on Windows, it's best not to use hexchatdirfs, but hexchatdir instead.</small></td></tr>
</table>
</blockquote>

View File

@@ -162,7 +162,7 @@ are available to be queried:
* **server:** Current server name (what the server claims to be) or None if you are not connected.
* **topic:** Current channel topic.
* **version:** HexChat version number.
* **xchatdir:** HexChat config directory e.g.: "~/.config/hexchat".
* **hexchatdir:** HexChat config directory e.g.: "~/.config/hexchat".
Example:

View File

@@ -95,7 +95,7 @@ before Eggdrop and is broadly considered the industry standard language for auto
<tr valign=top>
<td align=right><b>Example:</b></td>
<td><pre>/tcl puts "Hello, XChat World!"
/tcl xchatdir</pre></td>
/tcl hexchatdir</pre></td>
</tr>
@@ -706,12 +706,12 @@ The following fields are currently defined:
</tr>
<tr>
<td>version </td>
<td> xchat version number.
<td> HexChat version number.
</td>
</tr>
<tr>
<td>xchatdir </td>
<td> xchat config directory, e.g.: /home/user/.xchat.</td>
<td>hexchatdir </td>
<td> HexChat config directory, e.g.: /home/user/.config/hexchat.</td>
</tr>
</table><br>
</td>
@@ -724,7 +724,7 @@ The following fields are currently defined:
<tr valign=top>
<td align=right nowrap><b>See Also:</b></td>
<td><a href='#away'>away</a>, <a href='#channel'>channel</a>, <a href='#host'>host</a>, <a href='#me'>me</a>, <a href='#network'>network</a>, <a href='#server'>server</a>, <a href='#topic'>topic</a>, <a href='#version'>version</a>, <a href='#xchatdir'>xchatdir</a></td>
<td><a href='#away'>away</a>, <a href='#channel'>channel</a>, <a href='#host'>host</a>, <a href='#me'>me</a>, <a href='#network'>network</a>, <a href='#server'>server</a>, <a href='#topic'>topic</a>, <a href='#version'>version</a>, <a href='#hexchatdir'>hexchatdir</a></td>
</tr>
@@ -3581,7 +3581,7 @@ print "[timers]"</pre></td>
<tr valign=top>
<td align=right nowrap><b>See Also:</b></td>
<td><a href='#xchatdir'>xchatdir</a></td>
<td><a href='#hexchatdir'>hexchatdir</a></td>
</tr>
@@ -3594,17 +3594,17 @@ print "[timers]"</pre></td>
<p>
<a name='xchatdir'> </a>
<a name='hexchatdir'> </a>
<table width=100% border=0 bgcolor=#eeeeee cellpadding=3 cellspacing=0>
<tr valign=top>
<td align=right width=1% ><b>Name:</b></td>
<td>xchatdir - Returns the current xchat config directory.</td>
<td>hexchatdir - Returns the current HexChat config directory.</td>
</tr>
<tr valign=top>
<td align=right><b>Synopsis:</b></td>
<td><pre>xchatdir</pre></td>
<td><pre>hexchatdir</pre></td>
</tr>
<tr valign=top>
@@ -3614,7 +3614,7 @@ print "[timers]"</pre></td>
<tr valign=top>
<td align=right><b>Example:</b></td>
<td><pre>print "My XChat config directory is [xchatdir]"</pre></td>
<td><pre>print "My XChat config directory is [hexchatdir]"</pre></td>
</tr>
<tr valign=top>