From effc0282f8a8a9213f29024e3f685ba4578fbcb6 Mon Sep 17 00:00:00 2001 From: shizuki Date: Thu, 5 Feb 2009 13:05:59 +0000 Subject: [PATCH] =?utf8?q?/nucleus/libs/include/=20=E5=86=85=E3=81=AE?= =?utf8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E6=9C=AC=E5=AE=B63?= =?utf8?q?.4RC=E3=81=AB=E4=BC=9A=E3=82=8F=E3=81=9B=E3=81=A6=E6=9B=B4?= =?utf8?q?=E6=96=B0=20/nucleus/documentation/devdocs/plagins.html=20?= =?utf8?q?=E9=80=94=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk/utf8@901 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- nucleus/documentation/devdocs/plugins.html | 258 +++++++++--------- nucleus/documentation/history.html | 1 - nucleus/libs/include/admin-add.template | 284 ++++++++++---------- nucleus/libs/include/admin-edit.template | 336 ++++++++++++------------ nucleus/libs/include/bookmarklet-add.template | 345 +++++++++++++------------ nucleus/libs/include/bookmarklet-edit.template | 340 ++++++++++++------------ nucleus/libs/include/readme.txt | 8 +- 7 files changed, 795 insertions(+), 777 deletions(-) diff --git a/nucleus/documentation/devdocs/plugins.html b/nucleus/documentation/devdocs/plugins.html index 09ca533..3b41395 100755 --- a/nucleus/documentation/devdocs/plugins.html +++ b/nucleus/documentation/devdocs/plugins.html @@ -1965,10 +1965,10 @@ class NP_HelloWorld extends NucleusPlugin {
  • 自分でデータベース接続をする場合、後でNucleusデータベースへの接続を復元するようにしてください。自前処理の後で sql_connect() を呼ぶことで可能です。頻繁な再接続を避けるために、コンストラクタでそれを行うのも良いです。$this- >dbのリンクIDを保持でき、各クエリにそれを渡すことができます。
  • バックアップ機能を使う時は、独自テーブルもバックアップに含めるよう、getTableList() を再定義してください。
  • It's a good idea to make the removal of your database tables optional. This will allow your users to temporarily remove your plugin without losing the data. For instance, you may need to make changes to options or database tables requiring that the install() method be run to execute code neccessary to modify existing tables or options. This will require that your users uninstall the old version and then install the new version and losing their data in the process. To make the deletion of your tables optional, you can add an option like this in install(): -
    $this->createOption('del_uninstall', 'Delete NP_MyPlugin data tables on uninstall?', 'yesno','no');
    +
    $this->createOption('del_uninstall', 'Delete NP_MyPlugin data tables on uninstall?', 'yesno','no');
    and this snippet in uninstall(): -
    if ($this->getOption('del_uninstall') == 'yes')	{
    -	foreach ($this->getTableList() as $table) {
    +	
    if ($this->getOption('del_uninstall') == 'yes')	{
    +	foreach ($this->getTableList() as $table) {
     		sql_query("DROP TABLE $table");
     	}
     }
  • @@ -2034,15 +2034,15 @@ class NP_HelloWorld extends NucleusPlugin { }
  • Optional. Make the QuickMenu entry optional, and restrict who sees it. The following assumes that an option, of type yesno and called quickmenu, exists in install(). It also will restrict viewing of the QuickMenu entry to super-admins and to blog-admins. -
    function event_QuickMenu(&$data) {
    +	
    function event_QuickMenu(&$data) {
         // only show when option enabled
    -    if ($this->getOption('quickmenu') != 'yes') return;
    +    if ($this->getOption('quickmenu') != 'yes') return;
         global $member;
    -    if (!$member->isAdmin() && !count($member->getAdminBlogs())) return;
    +    if (!$member->isAdmin() && !count($member->getAdminBlogs())) return;
         array_push($data['options'],
    -      	array('title' => 'PluginName',
    -       	'url' => $this->getAdminURL(),
    -       	'tooltip' => 'Administer NP_PluginName'));
    +      	array('title' => 'PluginName',
    +       	'url' => $this->getAdminURL(),
    +       	'tooltip' => 'Administer NP_PluginName'));
     }
  • @@ -2133,202 +2133,202 @@ NucleusはこのAPIによって、インストール前に依存関係を検知

    このプラグイン依存チェックは、他のプラグインが依存しているプラグインがアンインストールされることも防ぎます。

    -

    Internationalizing Your Plugin back to top

    +

    プラグインの多国語化back to top

    -

    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 -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.

    +

    あなたと同じ言葉を話さない世界中の人達がプラグインをより使いやすくするために、プラグインを多国語化できます。 +少し手間は増えますが、プラグインが出力する文章を翻訳するだけで可能です。 +以下に Nucleus のコアで用意されている標準的な手順を記載します。 +Andyさん、ありがとう!

      -
    1. Develop your plugin +
    2. プラグインを作る -At first, it is easier to develop it in your language. Use of language files is recommended after the plugin becomes stable.
    3. -
    4. Create plugin directory +先ずはじめに、あなたが普段使っている言葉でプラグインを作ります。プラグインが安定して動作するようになってから、言語ファイルを作成することが推奨されます。
    5. +
    6. プラグインディレクトリを作る -If your plugin name is NP_AbcDef, the plugin directory name is abcdef (always lower case).
    7. -
    8. Create language files +作ったプラグインの名前が NP_AbcDef なら、プラグインディレクトリの名前は abcdef になります(必ず小文字を使用すること)。
    9. +
    10. 言語ファイルを作る -Create the language 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).
    11. -
    12. Define strings +プラグインディレクトリに言語ファイルを作成します。言語ファイルの名前は Nucleus コアが使用しているものと同じにします。例えば、英語なら english.php。日本語の UTF-8 なら japanese-utf8.phpになります(UTF がお勧めです。参考までに日本語の EUC の場合は japanese-euc.php になります)。
    13. +
    14. 文を定義する -Define strings like below in the language file: +次のように言語ファイル内で分を定義します。
      <?php
      -define('_ABCDEF_MESSAGENAME',                  'actual strings in the language');
      +define('_ABCDEF_MESSAGENAME',                  '実際のメッセージ');
         . . .
       ?>
      -You have to define them for all static strings in your plugin. As defined name is used globally in the environment, it is recommended to have a prefix derived from the plugin name(in this case _ABCDEF).
    15. -
    16. Replace static strings +全ての文を定義する必要があります。定数は一回しか定義できないので、既に定義されているものと重複しないようにプラグインの名前をはじめにつけることが推奨されます(この例だと _ABCDEF)。
    17. +
    18. 文の置き換え -Replace static strings in your plugin with the defined names so they will change according to the language file.
    19. -
    20. Create init method +全ての文を、言語ファイルで定義した定数と置き換えます
    21. +
    22. init() メソッドの編集 -Make the init method in the plugin like below +プラグイン内の init() メソッドを、次のように編集します(既に init() メソッドを定義している場合は init() メソッド内にコードを追記します)。
         function init() {
             // include language file for this plugin
             $language = ereg_replace( '[\\|/]', '', getLanguageName());
      -      if (file_exists($this->getDirectory().$language.'.php'))
      -         include_once($this->getDirectory().$language.'.php');
      +      if (file_exists($this->getDirectory().$language.'.php'))
      +         include_once($this->getDirectory().$language.'.php');
             else
      -         include_once($this->getDirectory().'english.php');
      +         include_once($this->getDirectory().'english.php');
          }
      -
    23. -This logic is same as Nucleus・language file setting. -
    24. Add language files +このコードは Nucleus のコアで使用されているものと同一です。
    25. + +
    26. 言語ファイルの追加 -As English is the default language, it is recommended to have at least the English version.
    27. +「英語」が基本の言語になっていますので、「英語」の言語ファイルも追加することが望まれます。
    -

    Formatting your SkinVar output back to top

    +

    スキン変数の出力の書式 back to top

    -

    Some great plugin ideas never receive general use simply because the output generated by the doSkinVar() method is not flexible enough to meet the needs of -different skins or URL schemes. Nucleus provides some tools to help you generalize your output in ways that allow each user to fit it to his or her needs.

    +

    偉大なプラグインのいくつかは、様々なスキンや URL の生成において、必ずしもそのまま使用できるとはいえません。なぜなら、doSkinVar() メソッドによって出力されるものが、 +ユーザーのニーズに十二分に合致するものであるとは言いがたいからです。Nucleus では、出力をここのユーザーによっておのおののニーズに沿ったものにする為に、いくつかのツールを用意しています。

    -

    To create links to Nucleus pages, such as blogs, categories, items, member details, action.php, admin area, or the plugin admin page, use the built in Nucleus functions -and global variables described below:

    +

    各ブログ・カテゴリー・アイテム・メンバー、それから action.php や管理エリア、または各プラグインの管理エリアなどの URL を出力する為に、Nucleus はコアの機能として +いくつかのファンクションとグローバル変数を用意しています。:

    - +
    - + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - + - + - - + - + - - + - + - - + - + - - + - + - - + - +
    Functions and variables useful in creating links to Nucleus pages
    NameWhatParametersDescription名前種類引数説明
    $CONF['AdminURL']Global variableNoneFull URL to the Nucleus Admin Areaグローバル変数なしNucleus の管理領域への絶対 URL
    $CONF['PluginURL']Global variableNoneFull URL to the Nucleus plugins directory. Use it to link to a plugin's admin page, like this $CONF['PluginURL'].'pluginname/'グローバル変数なしNucleus のプラグインディレクトリへの絶対 URL。$CONF['PluginURL'].'pluginname/' の様にして、プラグインの管理エリアへのリンク生成に使用する。
    $CONF['ActionURL']Global variableNoneFull URL to the Nucleus action.php fileグローバル変数なしNucleus の action.php への絶対 URL。
    $CONF['MediaURL']Global variableNoneFull URL to the Nucleus media folderグローバル変数なしNucleus のメディアディレクトリへの絶対 URL。
    $CONF['SkinsURL']Global variableNoneFull URL to the Nucleus skins folderグローバル変数なしNucleus のスキンディレクトリへの絶対 URL。
    $CONF['IndexURL']Global variableNoneFull URL to the main Nucleus directory.グローバル変数なしNucleus のメインディレクトリへの絶対 URL。
    $DIR_NUCLEUSGlobal variableNoneFull system path to the Nucleus Admin folderグローバル変数なしNucleus のメインディレクトリへのシステムルートからのフルパス。
    $DIR_SKINSGlobal variableNoneFull system path to the Nucleus skins folderグローバル変数なしNucleus のスキンディレクトリへのシステムルートからのフルパス。
    $DIR_MEDIAGlobal variableNoneFull system path to the Nucleus media folderグローバル変数なしNucleus のメディアディレクトリへのシステムルートからのフルパス。
    $DIR_PLUGINSGlobal variableNoneFull system path to the Nucleus plugins folderグローバル変数なしNucleus のプラグインディレクトリへのシステムルートからのフルパス。
    $DIR_LANGGlobal variableNoneFull system path to the Nucleus language folderグローバル変数なしNucleus の言語ファイルディレクトリへのシステムルートからのフルパス。
    $DIR_LIBSGlobal variableNoneFull system path to the Nucleus libs folderグローバル変数なしNucleus のコアディレクトリへのシステムルートからのフルパス。
    getAdminURL()method, PLUGIN classNoneReturns the URL of where the admin area of the plugin is located (if there is no such admin area, this information is invalid)PLUGIN クラス内メソッドなしプラグインの管理エリアディレクトリが存在すればその URL を返す(存在しない場合は無効)。
    getDirectory()method, PLUGIN classNoneReturns the full system path where the extra files for the plugin are stored (if there are no such files, this information makes no sense). The result is something like ".../nucleus/plugins/plugname/"PLUGIN クラス内メソッドなしプラグインの追加ファイルが格納されたサーバーのファイルシステムのパスを返します(存在しない場合は無効)。結果は".../nucleus/plugins/plugname/"のようになります。
    createItemLink($itemid, $extra = '')Global function$itemid Integer. ID of item being linked.
    - $extra Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link. +
    グローバルファンクション$itemid 整数。リンクしたいアイテムの ID。
    + $extra 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。
    Returns the full URL, in scheme chosen by user, of item indicated by $itemidユーザーによって選択されたスキームにより、 $itemid に対応したアイテムへのリンクが生成されます。
    createMemberLink($memberid, $extra = '')Global function$memberid Integer. ID of member being linked.
    - $extra Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link. +
    グローバルファンクション$memberid 整数。リンクしたい存在するメンバーの ID。
    + $extra 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。
    Returns the full URL, in scheme chosen by user, of member page indicated by $memberidユーザーによって選択されたスキームにより、 $memberid に対応したメンバーへのリンクが生成されます。
    createCategoryLink($catid, $extra = '')Global function$catid Integer. ID of category being linked.
    - $extra Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link. +
    グローバルファンクション$catid 整数。リンクしたいカテゴリーの ID。
    + $extra 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。
    Returns the full URL, in scheme chosen by user, of category index page indicated by $catidユーザーによって選択されたスキームにより、 $catid に対応したカテゴリーへのリンクが生成されます。
    createArchiveListLink($blogid = '', $extra = '')Global function$blogid Integer. ID of blog whose archivelist is being linked.
    - $extra Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link. +
    グローバルファンクション$blogid 整数。リンクしたいアーカイブ一覧が存在ブログの ID。
    + $extra 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。
    Returns the full URL, in scheme chosen by user, of archivelist page indicated by $blogidユーザーによって選択されたスキームにより、 $blogid に対応したアーカイブ一覧へのリンクが生成されます。
    createArchiveLink($blogid, $archive, $extra = '')Global function$blogid Integer. ID of blog whose archive is being linked.
    - $archive String. Valid archive parameter for date (year-month) being linked.
    - $extra Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link. +
    グローバルファンクション$blogid 整数。リンクしたい月別アーカイブが存在するブログの ID。
    + $archive 文字列。アーカイブのパラメータとして、渡した「日(または年、月)」のものが存在するもの。
    + $extra 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。
    Returns the full URL, in scheme chosen by user, of archive page indicated by $blogid and $archiveユーザーによって選択されたスキームにより、 $blogid に対応した月別アーカイブへのリンクが生成されます。
    createBlogidLink($blogid, $extra = '')Global function$blogid Integer. ID of blog being linked.
    - $extra Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link. +
    グローバルファンクション$blogid 整数。リンクしたいブログの ID。
    + $extra 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。
    Returns the full URL, in scheme chosen by user, of main index page indicated by $blogidユーザーによって選択されたスキームにより、 $blogid に対応したブログへのリンクが生成されます。
    @@ -2340,22 +2340,22 @@ examples below, we will be creating a template with 2 variables, <%foo%
  • Using Plugin Options. This method may be the simplest and will work on all versions 3.2 and higher. It's big disadvantage is that plugin options are deleted during an uninstall, so your users may lose customizations during an upgrade of your plugin. Simply create an option in the install() method like the following: -
    $this->createOption('my_template', 
    +	
    $this->createOption('my_template', 
     		'Template used to format output of plugin.', 
     		'textarea', 
     		'<li><%foo%> loves <%bar%></li>');
    Then in the doSkinVar() method, determine the values of foo and bar and fill the template like this: -
    $mytemplate = $this->getOption('my_template');
    +	
    $mytemplate = $this->getOption('my_template');
     $couples = array(
     			array(
    -				'foo'=>'Ricky',
    -				'bar'=>'Lucy'),
    +				'foo'=>'Ricky',
    +				'bar'=>'Lucy'),
     			array(
    -				'foo'=>'Sid',
    -				'bar'=>'Nancy'),
    +				'foo'=>'Sid',
    +				'bar'=>'Nancy'),
     			array(
    -				'foo'=>'Mickey',
    -				'bar'=>'Minnie')
    +				'foo'=>'Mickey',
    +				'bar'=>'Minnie')
     			);
     foreach ($couples as $values) {
     	echo TEMPLATE::fill($mytemplate,$values);
    @@ -2370,20 +2370,20 @@ foreach ($couples as $values) {
     	being using the database-stored template system and can be exported like other template fields. For a full sample plugin using this method, 
     	see this thread from the support forum. A summary is given here. 
     	First, create the option in install() as in method 1, but now we will use it as a default.
    -	
    $this->createOption('my_template', 
    +	
    $this->createOption('my_template', 
     		'Template used to format output of plugin.', 
     		'textarea', 
     		'<li><%foo%> loves <%bar%></li>');
    Then, subscribe to the TemplateExtraFields event like this:
    function getEventList() { return array('TemplateExtraFields'); }
    Then, create a event_TemplateExtraFields method in your plugin, like this: -
    function event_TemplateExtraFields(&$data) {
    +	
    function event_TemplateExtraFields(&$data) {
         /* Add an element in the $data['fields'] array using your plugin name as the key 
     	and an associative array containing the field name and field label*/
         /* note that your field names should be lowercase and include the name 
     	of your template as shown below. This will ensure that all template field names are unique. */
         $data['fields']['NP_TemplateTest'] = array(
    -        'templatetest_body'=>'TemplateTest Body'
    +        'templatetest_body'=>'TemplateTest Body'
         );
     }
    Then, in the doSkinVar() method, you need to retrieve the template and fill it. Note the skinvar now needs to take @@ -2391,20 +2391,20 @@ foreach ($couples as $values) {
    function doSkinVar($skinType,$template = '') {
     	global $blog, $CONF, $manager,$member;
     
    -	$template =& $manager->getTemplate($template);
    +	$template =& $manager->getTemplate($template);
     	if (trim($template['templatetest_body']) == '')
    -		$template['templatetest_body'] = $this->getOption('my_template');
    +		$template['templatetest_body'] = $this->getOption('my_template');
     		
     	$couples = array(
     			array(
    -				'foo'=>'Ricky',
    -				'bar'=>'Lucy'),
    +				'foo'=>'Ricky',
    +				'bar'=>'Lucy'),
     			array(
    -				'foo'=>'Sid',
    -				'bar'=>'Nancy'),
    +				'foo'=>'Sid',
    +				'bar'=>'Nancy'),
     			array(
    -				'foo'=>'Mickey',
    -				'bar'=>'Minnie')
    +				'foo'=>'Mickey',
    +				'bar'=>'Minnie')
     			);
     	foreach ($couples as $values) {
     		echo TEMPLATE::fill($template['templatetest_body'],$values);
    @@ -2431,7 +2431,7 @@ foreach ($couples as $values) {
     	$highlight = '';
     	$template = 'default/index';
     	$item_array = array($item1,$item2,$item3,$item4);
    -	$blog->readLogFromList($item_array, $template);
    +	$blog->readLogFromList($item_array, $template);
     }
  • diff --git a/nucleus/documentation/history.html b/nucleus/documentation/history.html index aa7aa7d..8f0ff4c 100755 --- a/nucleus/documentation/history.html +++ b/nucleus/documentation/history.html @@ -60,7 +60,6 @@
  • FIXED: (#110(JP)): When an item is added by "new category", a SendPing event doesn't occur. (shizuki)
  • FIXED: (#58(JP)): When database backup, table name and a column name are bound up with back quotat. (shizuki)
  • CHANGED: Eliminate few hardcoded language (shizuki)
  • -
  • FIXED: (#94(JP)): A plugin option isn't generated. (kimitake/shizuki)
  • FIXED: (#79(JP)): Permission setting of upload isn't effective. (shizuki/yu)
  • FIXED: (#77(JP)): [XHTML] When the attribute of the option is hidden,<tr> isn't output. (shizuki)
  • FIXED: (#76(JP)): [XHTML] Validate admin-area. (shizuki)
  • diff --git a/nucleus/libs/include/admin-add.template b/nucleus/libs/include/admin-add.template index 564cc37..030b695 100755 --- a/nucleus/libs/include/admin-add.template +++ b/nucleus/libs/include/admin-add.template @@ -1,139 +1,145 @@ -

    <%text(_ADD_ADDTO)%> '<%bloglink%>'

    - -<%init%> - - - -
    - -
    - - - - -<%ticket%> - - - - - - - - - - - - - - - - - - -<%ifblogsetting(bcomments)%> - - - -<%endif%> - - - - - - - - - - - - <%itemoptions%> - - - - - - - - - -
    <%text(_ADD_CREATENEW)%>
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_ADD_TITLE)%> - tabindex="10" - size="60" - maxlength="160" - value="<%contents(title)%>" - />
    - <%text(_ADD_BODY)%> <%helplink(additem)%> - - <%jsbuttonbar(media+preview)%> - -
    <%text(_ADD_DISABLE_COMMENTS)%> - - -
    <%text(_ADD_CATEGORY)%><%categories(40)%>
    <%text(_SUBMIT)%> - - -

    - - -
    - <%helplink(future)%> -
    - <%text(_ADD_PLACE_ON)%> - 年 - 月 - 日 - - 時 - 分 -
    - フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 - - <%ifblogsetting(ballowpast,0)%> -
    - <%text(_ADD_NOPASTDATES)%> - <%endif%> -
    - <%helplink(draft)%> -
    <%text(_ADD_PLUGIN_EXTRAS)%> - <%pluginextras%> -
    <%text(_ADD_MORE)%>
    <%text(_ADD_MORE)%> -
    <%helplink(extended)%> -
    - <%jsbuttonbar(media+preview)%> - -
    <%text(_SUBMIT)%> - - -
    - -
    -
    - - +

    <%text(_ADD_ADDTO)%> '<%bloglink%>'

    + +<%init%> + +<%ifautosave()%><%endif%> + +
    + +
    + + + + +<%ticket%> + + + + + + <%ifautosave()%> + + + <%endif%> + + + + + + + + + + + +<%ifblogsetting(bcomments)%> + + + +<%endif%> + + + + + + + + + + + + <%itemoptions%> + + + + + + + + + +
    <%text(_ADD_CREATENEW)%>
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_ADD_TITLE)%> + tabindex="10" + size="60" + maxlength="160" + value="<%contents(title)%>" + />
    + <%text(_ADD_BODY)%> <%helplink(additem)%> + + <%jsbuttonbar(media+preview)%> + +
    <%text(_ADD_DISABLE_COMMENTS)%> + + +
    <%text(_ADD_CATEGORY)%><%categories(40)%>
    <%text(_SUBMIT)%> + + +

    + + +
    + <%helplink(future)%> +
    + <%text(_ADD_PLACE_ON)%> + 年 + 月 + 日 + + 時 + 分 +
    フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 + + <%ifblogsetting(ballowpast,0)%> +
    + <%text(_ADD_NOPASTDATES)%> + <%endif%> +
    + <%helplink(draft)%> +
    + +
    <%text(_ADD_PLUGIN_EXTRAS)%> + <%pluginextras%> +
    <%text(_ADD_MORE)%>
    <%text(_ADD_MORE)%> +
    <%helplink(extended)%> +
    + <%jsbuttonbar(media+preview)%> + +
    <%text(_SUBMIT)%> + + <%ifautosave()%> + + <%endif%> +
    + +
    +
    +<%ifautosave()%> + +<%endif%> diff --git a/nucleus/libs/include/admin-edit.template b/nucleus/libs/include/admin-edit.template index 1ed648e..0411253 100755 --- a/nucleus/libs/include/admin-edit.template +++ b/nucleus/libs/include/admin-edit.template @@ -1,166 +1,170 @@ -

    <%text(_EDIT_ITEM)%>

    - -<%init%> - - - -
    -
    - - - - -<%ticket%> - - - - - - - - - - - - - - - - - - - - -<%ifblogsetting(bcomments)%> - - - -<%endif%> - - - - - - - - - - - <%itemoptions%> - - - - - - - - - - -
    <%text(_EDIT_ITEM)%>
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_EDIT_ORIG_AUTHOR)%><%contents(author)%>
    <%text(_ADD_TITLE)%> - tabindex="10" - size="60" - maxlength="160" - value="<%contents(title)%>" /> -
    - <%text(_ADD_BODY)%> - - <%jsbuttonbar(media+preview)%> - -
    - <%text(_ADD_DISABLE_COMMENTS)%> - - tabindex="30" id="closed_yes" /> - tabindex="30" id="closed_no" /> -
    - <%text(_EDIT_COMMENTSNOTE)%> -
    <%text(_ADD_CATEGORY)%><%categories(40)%>
    <%text(_EDIT_SUBMIT)%> - - - -<%ifitemproperty(draft)%> -

    - -
    - <%helplink(future)%> -
    - <%text(_ADD_PLACE_ON)%> - / - / -   - - : - - (yyyy/mm/dd hh:mm) - <%ifblogsetting(ballowpast,0)%> -
    - <%text(_ADD_NOPASTDATES)%> - <%endif%> -
    - <%helplink(draft)%> -
    - -<%endif%> - -<%ifitemproperty(draft,0)%> -

    - - <%ifblogsetting(ballowpast)%> -
    - <%helplink(changedate)%> -
    - 年 - 月 - 日 - - 時 - 分 -
    - フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 -
    - <%endif%> -
    - -<%endif%> - -
    <%text(_ADD_PLUGIN_EXTRAS)%> - <%pluginextras%> -
    <%text(_ADD_MORE)%>
    <%text(_ADD_MORE)%> -
    <%helplink(extended)%> -
    - <%jsbuttonbar(media+preview)%> - -
    <%text(_SUBMIT)%> - - -
    - -
    -
    - - +

    <%text(_EDIT_ITEM)%>

    + +<%init%> + +<%ifautosave()%><%endif%> + +
    +
    + + + + +<%ticket%> + + + + +<%ifautosave()%> + + +<%endif%> + + + + + + + + + + + + + + +<%ifblogsetting(bcomments)%> + + + +<%endif%> + + + + + + + + + + + <%itemoptions%> + + + + + + + + + + +
    <%text(_EDIT_ITEM)%>
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_EDIT_ORIG_AUTHOR)%><%contents(author)%>
    <%text(_ADD_TITLE)%> + tabindex="10" + size="60" + maxlength="160" + value="<%contents(title)%>" /> +
    + <%text(_ADD_BODY)%> + + <%jsbuttonbar(media+preview)%> + +
    + <%text(_ADD_DISABLE_COMMENTS)%> + + tabindex="30" id="closed_yes" /> + tabindex="30" id="closed_no" /> +
    + <%text(_EDIT_COMMENTSNOTE)%> +
    <%text(_ADD_CATEGORY)%><%categories(40)%>
    <%text(_EDIT_SUBMIT)%> + + + +<%ifitemproperty(draft)%> +

    + +
    + <%helplink(future)%> +
    + <%text(_ADD_PLACE_ON)%> + 年 + 月 + 日 + + 時 + 分 +
    フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 + <%ifblogsetting(ballowpast,0)%> +
    + <%text(_ADD_NOPASTDATES)%> + <%endif%> +
    + <%helplink(draft)%> +
    + +<%endif%> + +<%ifitemproperty(draft,0)%> +

    + + <%ifblogsetting(ballowpast)%> +
    + <%helplink(changedate)%> +
    + 年 + 月 + 日 + + 時 + 分 +
    フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 +
    + <%endif%> + <%helplink(draft)%> +
    + +<%endif%> +
    + + +
    <%text(_ADD_PLUGIN_EXTRAS)%> + <%pluginextras%> +
    <%text(_ADD_MORE)%>
    <%text(_ADD_MORE)%> +
    <%helplink(extended)%> +
    + <%jsbuttonbar(media+preview)%> + +
    <%text(_SUBMIT)%> + + <%ifautosave()%><%endif%> +
    + +
    +
    + +<%ifautosave()%><%endif%> diff --git a/nucleus/libs/include/bookmarklet-add.template b/nucleus/libs/include/bookmarklet-add.template index b8179ed..c126171 100755 --- a/nucleus/libs/include/bookmarklet-add.template +++ b/nucleus/libs/include/bookmarklet-add.template @@ -1,171 +1,174 @@ - - - - <%text(_ADD_ADDTO)%> '<%blogname%>' - - - - - - - <%init%> - <%extrahead%> - - - -

    <%text(_ADD_ADDTO)%> '<%bloglink%>'

    -
    - - - - - <%ticket%> - -
    - -
    - - - - -
    -
    - -
    - - - - - - - - - - - - - - - - - - - -
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_ADD_TITLE)%> - - type="text" size="60" maxlength="160" - value="<%contents(title)%>" - />
    - <%text(_ADD_BODY)%> <%helplink(additem)%> - <%jsbuttonbar(media)%> - - -
    - <%text(_ADD_CATEGORY)%><%categories%>
    <%text(_AUTOSAVEDRAFT_NOW)%>
    - - -
    - -
    - - - -
    <%text(_ADD_MORE)%> <%helplink(extended)%> - <%jsbuttonbar(media)%> - -
    -
    -
    - - <%ifblogsetting(bcomments)%> - - - - - <%endif%> - - - - - - - - - - - - <%itemoptions%> -
    <%text(_ADD_DISABLE_COMMENTS)%> - - -
    <%text(_ADD_DRAFTNFUTURE)%> - -
    - <%helplink(future)%> -
    - <%text(_ADD_PLACE_ON)%> - 年 - 月 - 日 - 時 - 分 -
    - フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 - <%ifblogsetting(ballowpast,0)%> -
    - <%text(_ADD_NOPASTDATES)%> - <%endif%> -
    - <%helplink(draft)%> -
    <%text(_ADD_PLUGIN_EXTRAS)%> - <%pluginextras%>
    - - -
    - -
    -

    <%text(_ADD_PREVIEW)%>

    - -   -
    -   -
    -   -
    - -
    - - - - - - + + + + + <%text(_ADD_ADDTO)%> '<%blogname%>' + + + + + + <%ifautosave()%><%endif%> + <%init%> + <%extrahead%> + + + +

    <%text(_ADD_ADDTO)%> '<%bloglink%>'

    +
    + + + + + <%ticket%> + +
    +
    + + + + +
    + + +
    + +
    + + + <%ifautosave()%> + + + <%endif%> + + + + + + + + + + + <%ifautosave()%> + <%endif%> + +
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_ADD_TITLE)%> + + type="text" size="60" maxlength="160" + value="<%contents(title)%>" + />
    + <%text(_ADD_BODY)%> <%helplink(additem)%> + <%jsbuttonbar(media)%> + + +
    + <%text(_ADD_CATEGORY)%><%categories%>
    <%text(_AUTOSAVEDRAFT_NOW)%>
    + + +
    + +
    + + + +
    <%text(_ADD_MORE)%> <%helplink(extended)%> + <%jsbuttonbar(media)%> + +
    +
    +
    + + <%ifblogsetting(bcomments)%> + + + + + <%endif%> + + + + + + + + + + + + <%itemoptions%> +
    <%text(_ADD_DISABLE_COMMENTS)%> + + +
    <%text(_ADD_DRAFTNFUTURE)%> + +
    + <%helplink(future)%> +
    + <%text(_ADD_PLACE_ON)%> + 年 + 月 + 日 + + 時 + 分 +
    フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 + <%ifblogsetting(ballowpast,0)%> +
    + <%text(_ADD_NOPASTDATES)%> + <%endif%> +
    + <%helplink(draft)%> +
    + +
    <%text(_ADD_PLUGIN_EXTRAS)%> + <%pluginextras%>
    + + +
    + +
    +

    <%text(_ADD_PREVIEW)%>

    + +   +
    +   +
    +   +
    + +
    + + <%ifautosave()%><%endif%> + + + \ No newline at end of file diff --git a/nucleus/libs/include/bookmarklet-edit.template b/nucleus/libs/include/bookmarklet-edit.template index 34cf598..0f219d0 100755 --- a/nucleus/libs/include/bookmarklet-edit.template +++ b/nucleus/libs/include/bookmarklet-edit.template @@ -1,167 +1,173 @@ - - - - <%text(_EDIT_ITEM)%> - - - - - - - <%init%> - <%extrahead%> - - - -

    <%text(_EDIT_ITEM)%> (<%contents(itemid)%>)

    -
    - - - - - <%ticket%> - -
    - -
    - - - - -
    -
    - -
    - - - - - - - - - - - - - - - - - - -
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_ADD_TITLE)%> - type="text" size="60" maxlength="160" - value="<%contents(title)%>" - />
    - <%text(_ADD_BODY)%> - - <%jsbuttonbar(media)%> - - -
    <%text(_ADD_CATEGORY)%><%categories%>
    <%text(_AUTOSAVEDRAFT_NOW)%>
    - -
    - -
    - - - -
    <%text(_ADD_MORE)%> <%helplink(extended)%> - <%jsbuttonbar(media)%> - -
    -
    -
    - - <%ifblogsetting(bcomments)%> - - - - - <%endif%> - - - - - - - - - - - <%itemoptions%> -
    <%text(_ADD_DISABLE_COMMENTS)%> - /> - /> -
    Action -
      -
    • -
    • - <%ifblogsetting(ballowpast)%> -
    • - <%helplink(changedate)%> -
      - 年 - 月 - 日 - 時 - 分 -
      - フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 -
      -
    • - <%endif%> -
    -
    <%text(_ADD_PLUGIN_EXTRAS)%> - <%pluginextras%> -
    - -
    - -
    -

    <%text(_ADD_PREVIEW)%>

    - -   -
    -   -
    -   -
    - -
    - - - - - - + + + + + <%text(_EDIT_ITEM)%> + + + + + + <%ifautosave()%><%endif%> + <%init%> + <%extrahead%> + + + +

    <%text(_EDIT_ITEM)%> (<%contents(itemid)%>)

    +
    + + + + + <%ticket%> + +
    +
    + + + + +
    + + +
    + +
    + + <%ifautosave()%> + + + <%endif%> + + + + + + + + + + + <%ifautosave()%> + <%endif%> + +
    <%text(_AUTOSAVEDRAFT)%><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>
    <%text(_ADD_TITLE)%> + type="text" size="60" maxlength="160" + value="<%contents(title)%>" + />
    + <%text(_ADD_BODY)%> + + <%jsbuttonbar(media)%> + + +
    <%text(_ADD_CATEGORY)%><%categories%>
    <%text(_AUTOSAVEDRAFT_NOW)%>
    + +
    + +
    + + + +
    <%text(_ADD_MORE)%> <%helplink(extended)%> + <%jsbuttonbar(media)%> + +
    +
    +
    + + <%ifblogsetting(bcomments)%> + + + + + <%endif%> + + + + + + + + + + + <%itemoptions%> +
    <%text(_ADD_DISABLE_COMMENTS)%> + /> + /> +
    Action +
      +
    • +
    • + <%ifblogsetting(ballowpast)%> +
    • + <%helplink(changedate)%> +
      + 年 + 月 + 日 + + 時 + 分 +
      フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分 +
      +
    • +
    • + <%helplink(draft)%> +
    • + <%endif%> +
    + +
    <%text(_ADD_PLUGIN_EXTRAS)%> + <%pluginextras%> +
    + +
    + +
    +

    <%text(_ADD_PREVIEW)%>

    + +   +
    +   +
    +   +
    + +
    + + <%ifautosave()%><%endif%> + + + + diff --git a/nucleus/libs/include/readme.txt b/nucleus/libs/include/readme.txt index a90aa85..79faeae 100755 --- a/nucleus/libs/include/readme.txt +++ b/nucleus/libs/include/readme.txt @@ -1,7 +1,7 @@ README for the libs/include directory ------------------------------------- -This directory contains templates used by the admin-area. -They're not really intended to be edited by the people using Nucleus (i.e. there's -no documentation and little support). But if you really can't stop yourself, -go ahead :) \ No newline at end of file +このディレクトリのファイルは管理エリア内で使用します。 +本来、これらのファイルはユーザーによって編集されることを意図していません。 +これらのファイルに関するドキュメントもサポートもありませんが、自己責任において +どうしても改造したいというのなら止めはしません。 -- 2.11.0