OSDN Git Service

MERGE: リビジョン1873〜1893。skinnable-masterのマージ
[nucleus-jp/nucleus-next.git] / nucleus / documentation / devdocs / plugins.html
index bcc0c16..59d8ef6 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
 <head>
-       <!-- $Id: plugins.html 1545 2011-06-28 21:31:37Z ftruscot $ -->
+       <!-- $Id: plugins.html 1721 2012-03-31 10:18:25Z sakamocchi $ -->
        <title>Nucleus - Plugin API</title>
        <link rel="stylesheet" type="text/css" href="styles/manual.css" />
        <style type="text/css">
@@ -2190,7 +2190,7 @@ refuse to install the plugin if a dependency is missing.</p>
 <h1>Internationalizing Your Plugin <a name="internationalization" href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
 
 <p>Internationalization of a plugin allows your plugin to be easily used by people all over the world, people who do not 
-speak the same language as you do. It requires a little additional work for you, but makes translating the output of your plugin 
+use the same language as you do. It requires a little additional work for you, but makes translating the output of your plugin 
 as easy as translating a few phrases in a text file. Below is a description of the standard method suggested for use by Nucleus plugins. 
 Thanks to Andy Matsubara for the instructions.</p>
 
@@ -2203,7 +2203,7 @@ At first, it is easier to develop it in your language. Use of translation files
 If your plugin name is NP_AbcDef, the plugin directory name is abcdef (always lower case).</li>
        <li><strong>Create translation files</strong>
 
-Create the translation files in the directory of your plugin. The name of the language file must be the same as that of the Nucleus language file name. For example, english.php is for English and default use. japanese-utf8.php for Japanese(UTF-Cool,japanese-euc.php for Japanese(EUC-JP).</li>
+Create the translation files in the directory of your plugin. The name of the language file must be the same as that of the Nucleus translation file name. For example, english.php is for English and default use. japanese-utf8.php for Japanese(UTF-Cool,japanese-euc.php for Japanese(EUC-JP).</li>
        <li><strong>Define strings</strong>
 
 Define strings like below in the translation file:
@@ -2337,7 +2337,7 @@ and global variables described below:</p>
        </tr>
        <tr>
                <td><code>Link::create_item_link($itemid, $extra = '')</code></td>
-               <td>Global function</td>
+               <td>Public function</td>
                <td><code>$itemid</code> Integer. ID of item being linked.<br />
                        <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.
                </td>
@@ -2345,7 +2345,7 @@ and global variables described below:</p>
        </tr>
        <tr>
                <td><code>Link::create_member_link($memberid, $extra = '')</code></td>
-               <td>Global function</td>
+               <td>Public function</td>
                <td><code>$memberid</code> Integer. ID of member being linked.<br />
                        <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.
                </td>
@@ -2353,23 +2353,23 @@ and global variables described below:</p>
        </tr>
        <tr>
                <td><code>Link::create_category_link($catid, $extra = '')</code></td>
-               <td>Global function</td>
+               <td>Public function</td>
                <td><code>$catid</code> Integer. ID of category being linked.<br />
                        <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.
                </td>
                <td>Returns the full URL, in scheme chosen by user, of category index page indicated by <code>$catid</code></td>
        </tr>
        <tr>
-               <td><code>create_archivelist_link($blogid = '', $extra = '')</code></td>
-               <td>Global function</td>
+               <td><code>Link::create_archivelist_link($blogid = '', $extra = '')</code></td>
+               <td>Public function</td>
                <td><code>$blogid</code> Integer. ID of blog whose archivelist is being linked.<br />
                        <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.
                </td>
                <td>Returns the full URL, in scheme chosen by user, of archivelist page indicated by <code>$blogid</code></td>
        </tr>
        <tr>
-               <td><code>create_archive_link($blogid, $archive, $extra = '')</code></td>
-               <td>Global function</td>
+               <td><code>Link::create_archive_link($blogid, $archive, $extra = '')</code></td>
+               <td>Public function</td>
                <td><code>$blogid</code> Integer. ID of blog whose archive is being linked.<br />
                        <code>$archive</code> String. Valid archive parameter for date (year-month) being linked.<br />
                        <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.
@@ -2377,8 +2377,8 @@ and global variables described below:</p>
                <td>Returns the full URL, in scheme chosen by user, of archive page indicated by <code>$blogid</code> and <code>$archive</code></td>
        </tr>
        <tr>
-               <td><code>create_blogid_link($blogid, $extra = '')</code></td>
-               <td>Global function</td>
+               <td><code>Link::create_blogid_link($blogid, $extra = '')</code></td>
+               <td>Public function</td>
                <td><code>$blogid</code> Integer. ID of blog being linked.<br />
                        <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.
                </td>
@@ -2412,7 +2412,7 @@ $couples = array(
                                'bar'=>'Minnie')
                        );
 foreach ($couples as $values) {
-       echo TEMPLATE::fill($mytemplate,$values);
+       echo Template::fill($mytemplate,$values);
 }</code></pre>
        Now the skinvar for our plugin <code>&lt;%TemplateTest%&gt;</code> will output three lines like this:
        <pre class="example"><code>&lt;li&gt;Ricky loves Lucy&lt;/li&gt;
@@ -2461,7 +2461,7 @@ foreach ($couples as $values) {
                                'bar'=>'Minnie')
                        );
        foreach ($couples as $values) {
-               echo TEMPLATE::fill($template['templatetest_body'],$values);
+               echo Template::fill($template['templatetest_body'],$values);
        }       
 }</code></pre>
        Here, the user needs to go to the template he wants to use and enter the formatting he desires into the TemplateTest Body field.