+ // }}}
+ // {{{ defineMultilanguage()
+
+ /**
+ * Multi language support
+ */
+ function defineMultilanguage()
+ {
+ $multilang = array(
+ '_NPTAGEX_ERASE_FLG' => array(
+ 'Erase data when uninstall ?',
+ 'アンインストール時にデータを消去しますか?',
+ ),
+ '_NPTAGEX_EDT_TAGORDER' => array(
+ 'editform tag order',
+ 'アイテム追加/編集時のタグの並び順',
+ ),
+ '_NPTAGEX_ORDER_VALUE' => array(
+ "amount(desc)|1|amount(asc)|2|tag's order|3|random|4",
+ 'アイテムの多い順|1|アイテムの少ない順|2|タグ順(キャラクターコード順)|3|ランダム|4',
+ ),
+ '_NPTAGEX_TPL_AND' => array(
+ "template for 'and'",
+ "'and' リンクのテンプレート',
+ ),
+ '_NPTAGEX_TPL_OR' => array(
+ "template for 'or'",
+ "'or' リンクのテンプレート',
+ ),
+ '_NPTAGEX_TPL_TAGIDX' => array(
+ "template for 'tagIndex'",
+ 'タグのリンクのテンプレート'
+ ),
+ '_NPTAGEX_TPL_ITEMHEAD' => array(
+ "template for 'tagItemHeader'",
+ 'タグを含むアイテムごとのヘッダ',
+ ),
+ '_NPTAGEX_TPL_TAGITEMS' => array(
+ "template for 'tagItem'",
+ 'タグを含むアイテム',
+ ),
+ '_NPTAGEX_TPL_ITEMSEPL' => array(
+ "template for 'tagItemSeparator'",
+ 'タグを含むアイテムのセパレータ',
+ ),
+ '_NPTAGEX_TPL_ITEMFOOT' => array(
+ "template for 'tagItemFooter'",
+ 'タグを含むアイテムごとのフッタ',
+ ),
+ '_NPTAGEX_TPL_IDXSEP' => array(
+ "template for 'tagIndexSeparator'",
+ 'タグのリンクのセパレータ'
+ ),
+ '_NPTAGEX_ONLY_CURRENT' => array(
+ 'show tags only current blog have',
+ '表示中のブログのアイテムに登録してあるタグのみ表示'
+ ),
+ '_NPTAGEX_HILIGHT_MODE' => array(
+ 'colorful highlight mode ?',
+ 'カラフルハイライトモードにしますか?'
+ ),
+ '_NPTAGEX_HILIGHT_NORM' => array(
+ 'template for normal highlightmode',
+ 'ノーマルハイライトモードの時のテンプレート'
+ ),
+ '_NPTAGEX_MAX_TAGLEBEL' => array(
+ 'MAX tag lebel',
+ 'タグレベルの最大値'
+ ),
+ '_NPTAGEX_MIN_TAGLEBEL' => array(
+ 'MAX tag lebel',
+ 'タグレベルの最小値'
+ ),
+ );
+ switch (ereg_replace('[\\|/]', '', getLanguageName())) {
+ case 'japanese-euc':
+ foreach ($multilang as $key => $value) {
+ define($key, mb_convert_encoding($value[1], 'EUC-JP', 'UTF-8'));
+ }
+ break;
+ case 'japanese-utf8':
+ foreach ($multilang as $key => $value) {
+ define($key, $value[1]);
+ }
+ break;
+ default:
+ foreach ($multilang as $key => $value) {
+ define($key, $value[0]);
+ }
+ }
+ }
+
+ // }}}
+ // {{{ init()
+
+ /**
+ * initialize plugin
+ */
+ function init()
+ {
+ global $CONF;
+ $this->defineMultilanguage;
+ $usePathInfo = ($CONF['URLMode'] == 'pathinfo');
+ $this->maURL = (($this->plugCheck('MagicalURL2') || $this->plugCheck('Magical')) && $usePathInfo);
+ $this->cuURL = ($this->plugCheck('CustomURL') && $usePathInfo);
+ }
+
+ // }}}
+ // {{{ uninstall()
+
+ /**
+ * Plugin uninstall and clear plugin's all data if you want.
+ */