From: arino Date: Thu, 3 Jul 2003 05:28:24 +0000 (+0900) Subject: BugTrack/399: 表示メッセージをen.lng/ja.lngに集約 X-Git-Tag: r1_5_0_rc1~1517 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fb5b3beeed2402d4dc13c5634b8857a4fb8b2488;p=pukiwiki%2Fpukiwiki.git BugTrack/399: 表示メッセージをen.lng/ja.lngに集約 --- diff --git a/plugin/calendar_viewer.inc.php b/plugin/calendar_viewer.inc.php index 870422c..2957313 100644 --- a/plugin/calendar_viewer.inc.php +++ b/plugin/calendar_viewer.inc.php @@ -3,7 +3,7 @@ * PukiWiki calendar_viewer¥×¥é¥°¥¤¥ó * * - *$Id: calendar_viewer.inc.php,v 1.8 2003/06/22 06:37:19 arino Exp $ + *$Id: calendar_viewer.inc.php,v 1.9 2003/07/03 05:18:50 arino Exp $ calendarrecent¥×¥é¥°¥¤¥ó¤ò¸µ¤ËºîÀ® */ /** @@ -40,23 +40,13 @@ */ -function plugin_calendar_viewer_init() -{ - $messages = array( - '_err_calendar_viewer_param' => '°ú¿ô»ØÄꤷ¤Æ¤Í', - '_err_calendar_viewer_param2' => 'Âè2°ú¿ô¤¬ÊѤÀ¤è', - '_msg_calendar_viewer_right' => '¼¡¤Î%d·ï>>', - '_msg_calendar_viewer_left' => '<<Á°¤Î%d·ï' - ); - set_plugin_messages($messages); -} - - function plugin_calendar_viewer_convert() { global $WikiName,$BracketName,$vars,$get,$post,$hr,$script; global $_err_calendar_viewer_param,$_err_calendar_viewer_param2; global $_msg_calendar_viewer_right,$_msg_calendar_viewer_left; + global $_msg_calendar_viewer_restrict; + //*¥Ç¥Õ¥©¥ë¥ÈÃͤò¥»¥Ã¥È //´ð½à¤È¤Ê¤ë¥Ú¡¼¥¸Ì¾ $pagename = ""; @@ -184,7 +174,7 @@ function plugin_calendar_viewer_convert() if (check_readable($page,false,false)) { $body = convert_html(get_source($page)); } else { - $body = $page." ¤Ï±ÜÍ÷À©¸Â¤¬¤«¤«¤Ã¤Æ¤¤¤ë¤¿¤ácalendar_viewer¤Ë¤è¤ë»²¾È¤Ï¤Ç¤­¤Þ¤»¤ó"; + $body = str_replace('$1',$page,$_msg_calendar_viewer_restrict); } $r_page = rawurlencode($page); diff --git a/plugin/deleted.inc.php b/plugin/deleted.inc.php index 65ed1f1..ec8993d 100644 --- a/plugin/deleted.inc.php +++ b/plugin/deleted.inc.php @@ -2,29 +2,10 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: deleted.inc.php,v 1.2 2003/04/01 08:05:26 panda Exp $ +// $Id: deleted.inc.php,v 1.3 2003/07/03 05:19:37 arino Exp $ // //ºï½ü¤µ¤ì¤¿¥Ú¡¼¥¸(BACKUP_DIR¤Ë¤¢¤Ã¤Æ¡¢DATA_DIR¤Ë¤Ê¤¤¥Õ¥¡¥¤¥ë)¤Î°ìÍ÷¤òɽ¼¨¤¹¤ë -function plugin_deleted_init() -{ - if (LANG == 'ja') - { - $messages = array( - '_deleted_plugin_title' => 'ºï½ü¥Ú¡¼¥¸¤Î°ìÍ÷', - '_deleted_plugin_title_withfilename' => 'ºï½ü¥Ú¡¼¥¸¥Õ¥¡¥¤¥ë¤Î°ìÍ÷', - ); - } - else - { - $messages = array( - '_deleted_plugin_title' => 'deleted pages', - '_deleted_plugin_title_withfilename' => 'deleted pages (with filename)', - ); - } - set_plugin_messages($messages); -} - function plugin_deleted_action() { global $get; diff --git a/plugin/ls2.inc.php b/plugin/ls2.inc.php index a8120ac..988c81c 100644 --- a/plugin/ls2.inc.php +++ b/plugin/ls2.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: ls2.inc.php,v 1.14 2003/05/17 11:18:22 arino Exp $ +// $Id: ls2.inc.php,v 1.15 2003/07/03 05:21:48 arino Exp $ // /* @@ -37,19 +37,10 @@ define('LS2_ANCHOR_ORIGIN',0); //¸«½Ð¤·¥ì¥Ù¥ë¤òÄ´À°¤¹¤ë(¥Ç¥Õ¥©¥ë¥ÈÃÍ) define('LS2_LIST_COMPACT',FALSE); -function plugin_ls2_init() -{ - $messages = array('_ls2_messages'=>array( - 'err_nopages' => '

\'$1\' ¤Ë¤Ï¡¢²¼°ÌÁؤΥڡ¼¥¸¤¬¤¢¤ê¤Þ¤»¤ó¡£

', - 'msg_title' => '\'$1\'¤Ç»Ï¤Þ¤ë¥Ú¡¼¥¸¤Î°ìÍ÷', - 'msg_go' => '...', - )); - set_plugin_messages($messages); -} function plugin_ls2_action() { global $vars; - global $_ls2_messages; + global $_ls2_msg_title; $params = array(); foreach (array('title','include','reverse') as $key) @@ -61,14 +52,14 @@ function plugin_ls2_action() return array( 'body'=>$body, - 'msg'=>str_replace('$1',htmlspecialchars($prefix),$_ls2_messages['msg_title']) + 'msg'=>str_replace('$1',htmlspecialchars($prefix),$_ls2_msg_title) ); } function plugin_ls2_convert() { global $script,$vars; - global $_ls2_messages; + global $_ls2_msg_title; $prefix = ''; if (func_num_args()) @@ -97,7 +88,7 @@ function plugin_ls2_convert() array_walk($args, 'ls2_check_arg', &$params); $title = (count($params['_args']) > 0) ? join(',', $params['_args']) : - str_replace('$1',htmlspecialchars($prefix),$_ls2_messages['msg_title']); + str_replace('$1',htmlspecialchars($prefix),$_ls2_msg_title); if ($params['link']) { @@ -117,16 +108,23 @@ function plugin_ls2_convert() } function ls2_show_lists($prefix,&$params) { - global $_ls2_messages; + global $_ls2_err_nopages; - $pages = array(); - foreach (get_existpages() as $_page) + if (strlen($prefix)) { - if (strpos($_page,$prefix) === 0) + $pages = array(); + foreach (get_existpages() as $_page) { - $pages[] = $_page; + if (strpos($_page,$prefix) === 0) + { + $pages[] = $_page; + } } } + else + { + $pages = get_existpages(); + } natcasesort($pages); if ($params['reverse']) @@ -139,7 +137,7 @@ function ls2_show_lists($prefix,&$params) } if (count($pages) == 0) { - return str_replace('$1',htmlspecialchars($prefix),$_ls2_messages['err_nopages']); + return str_replace('$1',htmlspecialchars($prefix),$_ls2_err_nopages); } $params['result'] = array(); @@ -154,7 +152,6 @@ function ls2_show_lists($prefix,&$params) function ls2_get_headings($page,&$params,$level,$include = FALSE) { global $script; - global $_ls2_messages; static $_ls2_anchor = 0; $is_done = (isset($params["page_$page"]) and $params["page_$page"] > 0); //¥Ú¡¼¥¸¤¬É½¼¨ºÑ¤ß¤Î¤È¤­True @@ -193,9 +190,7 @@ function ls2_get_headings($page,&$params,$level,$include = FALSE) $level = strlen($matches[1]); $id = LS2_CONTENT_HEAD.$anchor++; ls2_list_push($params,$level + strlen($level)); - array_push($params['result'], '
  • '.$line. - ''.$_ls2_messages['msg_go'].'' - ); + array_push($params['result'], "
  • $line"); } else if ($params['include'] and preg_match('/^#include\((.+)\)/',$line,$matches) and is_page($matches[1])) diff --git a/plugin/navi.inc.php b/plugin/navi.inc.php index d9036da..f19e8d8 100644 --- a/plugin/navi.inc.php +++ b/plugin/navi.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: navi.inc.php,v 1.14 2003/05/20 10:31:21 arino Exp $ +// $Id: navi.inc.php,v 1.15 2003/07/03 05:22:36 arino Exp $ // /* @@ -40,22 +40,10 @@ define('NAVI_EXCLUDE_PATTERN',''); // ¥¿¥°¤ò½ÐÎϤ¹¤ë (TRUE|FALSE) define('NAVI_LINK_TAGS',FALSE); -function plugin_navi_init() -{ - $messages = array( - '_navi_messages'=>array( - 'msg_prev'=>'Prev', - 'msg_next'=>'Next', - 'msg_up' =>'Up', - 'msg_home' =>'Home' - ) - ); - set_plugin_messages($messages); -} function plugin_navi_convert() { global $vars, $script, $head_tags; - global $_navi_messages; + global $_navi_prev,$_navi_next,$_navi_up,$_navi_home; static $navi = array(); $home = $current = $vars['page']; @@ -105,20 +93,20 @@ function plugin_navi_convert() if ($pos > 0) { $up = substr($current, 0, $pos); - $navi[$home]['up'] = make_pagelink($up,$_navi_messages['msg_up']); + $navi[$home]['up'] = make_pagelink($up,$_navi_up); } if (!$is_home) { $navi[$home]['prev'] = make_pagelink($prev); - $navi[$home]['prev1'] = make_pagelink($prev,$_navi_messages['msg_prev']); + $navi[$home]['prev1'] = make_pagelink($prev,$_navi_prev); } if ($next != '') { $navi[$home]['next'] = make_pagelink($next); - $navi[$home]['next1'] = make_pagelink($next,$_navi_messages['msg_next']); + $navi[$home]['next1'] = make_pagelink($next,$_navi_next); } $navi[$home]['home'] = make_pagelink($home); - $navi[$home]['home1'] = make_pagelink($home,$_navi_messages['msg_home']); + $navi[$home]['home1'] = make_pagelink($home,$_navi_home); // ¥¿¥°¤òÀ¸À®¤¹¤ë : start next prev(previous) parent(up) // ̤Âбþ : contents(toc) search first(begin) last(end) diff --git a/plugin/newpage.inc.php b/plugin/newpage.inc.php index 714b7d6..812c51f 100644 --- a/plugin/newpage.inc.php +++ b/plugin/newpage.inc.php @@ -1,13 +1,5 @@ '¥Ú¡¼¥¸¿·µ¬ºîÀ®' - ); - set_plugin_messages($messages); -} +// $Id: newpage.inc.php,v 1.8 2003/07/03 05:23:08 arino Exp $ function plugin_newpage_convert() { diff --git a/plugin/paint.inc.php b/plugin/paint.inc.php index 84ad74e..b001d37 100644 --- a/plugin/paint.inc.php +++ b/plugin/paint.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: paint.inc.php,v 1.9 2003/05/16 05:55:52 arino Exp $ +// $Id: paint.inc.php,v 1.10 2003/07/03 05:23:47 arino Exp $ // /* @@ -45,23 +45,6 @@ define('PAINT_FORMAT',"\x08MSG\x08 -- \x08NAME\x08 \x08DATE\x08"); //¥á¥Ã¥»¡¼¥¸¤¬¤Ê¤¤¾ì¹ç define('PAINT_FORMAT_NOMSG',"\x08NAME\x08 \x08DATE\x08"); -function plugin_paint_init() -{ - $messages = array( - '_paint_messages'=>array( - 'field_name' => '¤ªÌ¾Á°', - 'field_filename'=> '¥Õ¥¡¥¤¥ë̾', - 'field_comment' => '¥³¥á¥ó¥È', - 'btn_submit' => 'paint', - 'msg_max' => '(ºÇÂç %d x %d)', - 'msg_title' => 'Paint and Attach to $1', - 'msg_title_collided' => '$1 ¤Ç¡Ú¹¹¿·¤Î¾×ÆÍ¡Û¤¬µ¯¤­¤Þ¤·¤¿', - 'msg_collided' => '¤¢¤Ê¤¿¤¬²èÁü¤òÊÔ½¸¤·¤Æ¤¤¤ë´Ö¤Ë¡¢Â¾¤Î¿Í¤¬Æ±¤¸¥Ú¡¼¥¸¤ò¹¹¿·¤·¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤Ç¤¹¡£
    -²èÁü¤È¥³¥á¥ó¥È¤òÄɲä·¤Þ¤·¤¿¤¬¡¢°ã¤¦°ÌÃÖ¤ËÁÞÆþ¤µ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
    ', - ) - ); - set_plugin_messages($messages); -} function plugin_paint_action() { global $script,$vars; diff --git a/plugin/pcomment.inc.php b/plugin/pcomment.inc.php index 990d124..d2e2a79 100644 --- a/plugin/pcomment.inc.php +++ b/plugin/pcomment.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: pcomment.inc.php,v 1.19 2003/06/24 01:17:32 arino Exp $ +// $Id: pcomment.inc.php,v 1.20 2003/07/03 05:24:28 arino Exp $ // /* @@ -53,24 +53,6 @@ define('PCMT_FORMAT',"\x08MSG\x08 -- \x08NAME\x08 \x08DATE\x08"); // ¼«Æ°²áµî¥í¥°²½ 1¥Ú¡¼¥¸¤¢¤¿¤ê¤Î·ï¿ô¤ò»ØÄê 0¤Ç̵¸ú define('PCMT_AUTO_LOG',0); -function plugin_pcomment_init() -{ - $messages = array( - '_pcmt_messages'=>array( - 'btn_name' => '¤ªÌ¾Á°: ', - 'btn_comment' => '¥³¥á¥ó¥È¤ÎÁÞÆþ', - 'msg_comment' => '¥³¥á¥ó¥È: ', - 'msg_recent' => 'ºÇ¿·¤Î%d·ï¤òɽ¼¨¤·¤Æ¤¤¤Þ¤¹¡£', - 'msg_all' => '¥³¥á¥ó¥È¥Ú¡¼¥¸¤ò»²¾È', - 'msg_none' => '¥³¥á¥ó¥È¤Ï¤¢¤ê¤Þ¤»¤ó¡£', - 'title_collided' => '$1 ¤Ç¡Ú¹¹¿·¤Î¾×ÆÍ¡Û¤¬µ¯¤­¤Þ¤·¤¿', - 'msg_collided' => '¤¢¤Ê¤¿¤¬¤³¤Î¥Ú¡¼¥¸¤òÊÔ½¸¤·¤Æ¤¤¤ë´Ö¤Ë¡¢Â¾¤Î¿Í¤¬Æ±¤¸¥Ú¡¼¥¸¤ò¹¹¿·¤·¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤Ç¤¹¡£
    -¥³¥á¥ó¥È¤òÄɲä·¤Þ¤·¤¿¤¬¡¢°ã¤¦°ÌÃÖ¤ËÁÞÆþ¤µ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
    ', - 'err_pagename' => basename(__FILE__).' : ¥Ú¡¼¥¸Ì¾ [[%s]] ¤Ï»ÈÍѤǤ­¤Þ¤»¤ó¡£ Àµ¤·¤¤¥Ú¡¼¥¸Ì¾¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£', - ) - ); - set_plugin_messages($messages); -} function plugin_pcomment_action() { global $script,$post,$vars; diff --git a/plugin/popular.inc.php b/plugin/popular.inc.php index dd790ba..2380d82 100644 --- a/plugin/popular.inc.php +++ b/plugin/popular.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: popular.inc.php,v 1.3 2003/03/03 07:07:28 panda Exp $ +// $Id: popular.inc.php,v 1.4 2003/07/03 05:24:43 arino Exp $ // /* @@ -29,21 +29,6 @@ if (!defined('COUNTER_DIR')) define('COUNTER_DIR', './counter/'); -function plugin_popular_init() -{ - if (LANG == 'ja') - $messages = array( - '_popular_plugin_frame' => '
    ¿Íµ¤¤Î%d·ï
    %s
    ', - '_popular_plugin_today_frame' => '
    º£Æü¤Î%d·ï
    %s
    ', - ); - else - $messages = array( - '_popular_plugin_frame' => '
    popular(%d)
    %s
    ', - '_popular_plugin_today_frame' => '
    today\'s(%d)
    %s
    ', - ); - set_plugin_messages($messages); -} - function plugin_popular_convert() { global $_popular_plugin_frame, $_popular_plugin_today_frame; diff --git a/plugin/rename.inc.php b/plugin/rename.inc.php index 798ca03..7cc194f 100644 --- a/plugin/rename.inc.php +++ b/plugin/rename.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: rename.inc.php,v 1.7 2003/06/18 00:11:09 arino Exp $ +// $Id: rename.inc.php,v 1.8 2003/07/03 05:25:10 arino Exp $ // /* @@ -20,38 +20,6 @@ define('RENAME_LOGPAGE',':RenameLog'); -function plugin_rename_init() -{ - $messages = array( - '_rename_messages'=>array( - 'err' => '

    ¥¨¥é¡¼:%s

    ', - 'err_nomatch' => '¥Þ¥Ã¥Á¤¹¤ë¥Ú¡¼¥¸¤¬¤¢¤ê¤Þ¤»¤ó¡£', - 'err_notvalid' => '¥ê¥Í¡¼¥à¸å¤Î¥Ú¡¼¥¸Ì¾¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£', - 'err_adminpass' => '´ÉÍý¼Ô¥Ñ¥¹¥ï¡¼¥É¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£', - 'err_notpage' => '%s¤Ï¥Ú¡¼¥¸Ì¾¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£', - 'err_norename' => '%s¤ò¥ê¥Í¡¼¥à¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£', - 'err_already' => '¥Ú¡¼¥¸¤¬¤¹¤Ç¤Ë¸ºß¤·¤Þ¤¹¡£:%s', - 'err_already_below' => '°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ç¤Ë¸ºß¤·¤Þ¤¹¡£', - 'msg_title' => '¥Ú¡¼¥¸Ì¾¤ÎÊѹ¹', - 'msg_page' => 'Êѹ¹¸µ¥Ú¡¼¥¸¤ò»ØÄê', - 'msg_regex' => 'Àµµ¬É½¸½¤ÇÃÖ´¹', - 'msg_related' => '´ØÏ¢¥Ú¡¼¥¸', - 'msg_do_related' => '´ØÏ¢¥Ú¡¼¥¸¤â¥ê¥Í¡¼¥à¤¹¤ë', - 'msg_rename' => '%s¤Î̾Á°¤òÊѹ¹¤·¤Þ¤¹¡£', - 'msg_oldname' => '¸½ºß¤Î̾Á°', - 'msg_newname' => '¿·¤·¤¤Ì¾Á°', - 'msg_adminpass' => '´ÉÍý¼Ô¥Ñ¥¹¥ï¡¼¥É', - 'msg_arrow' => '¢ª', - 'msg_exist_none' => '¤½¤Î¥Ú¡¼¥¸¤ò½èÍý¤·¤Ê¤¤', - 'msg_exist_overwrite' => '¤½¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤­¤¹¤ë', - 'msg_confirm' => '°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò¥ê¥Í¡¼¥à¤·¤Þ¤¹¡£', - 'msg_result' => '°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤­¤·¤Þ¤·¤¿¡£', - 'btn_submit' => '¼Â¹Ô', - 'btn_next' => '¼¡¤Ø' - ) - ); - set_plugin_messages($messages); -} function plugin_rename_action() { global $adminpass,$whatsnew,$WikiName,$BracketName; diff --git a/plugin/source.inc.php b/plugin/source.inc.php index a4d8b07..63e3658 100644 --- a/plugin/source.inc.php +++ b/plugin/source.inc.php @@ -2,22 +2,10 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: source.inc.php,v 1.8 2003/03/13 06:00:23 panda Exp $ +// $Id: source.inc.php,v 1.9 2003/07/03 05:25:53 arino Exp $ // // ¥Ú¡¼¥¸¥½¡¼¥¹¤òɽ¼¨ -function plugin_source_init() -{ - $messages = array( - '_source_messages'=>array( - 'msg_title' => '$1¤Î¥½¡¼¥¹', - 'msg_notfound' => '$1¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó', - 'err_notfound' => '¥Ú¡¼¥¸¤Î¥½¡¼¥¹¤òɽ¼¨¤Ç¤­¤Þ¤»¤ó¡£' - ) - ); - set_plugin_messages($messages); -} - function plugin_source_action() { global $vars; diff --git a/plugin/template.inc.php b/plugin/template.inc.php index e4f8c59..7086583 100644 --- a/plugin/template.inc.php +++ b/plugin/template.inc.php @@ -1,5 +1,5 @@ \n"; for ($i = 0; $i < count($lines); $i++) { $lines[$i] = mb_strimwidth($lines[$i],0,MAX_LEN,'...'); @@ -54,7 +56,7 @@ function plugin_template_action() } $begin_select.= "
    \n
    \n"; - $end_select = "½ªÎ»¹Ô:
    \n"; for ($i = 0; $i < count($lines); $i++) { $tag = ($i == count($lines) - 1) ? ' selected="selected"' : ''; @@ -92,7 +94,7 @@ EOD; $select.= "
    \n"; */ } - $s_refer = htmlspecialchars($vars['refer']); + $s_refer = str_replace('$1',htmlspecialchars($vars['refer']),$_msg_template_page); $ret = <<
    @@ -100,13 +102,13 @@ EOD; $begin_select $end_select - ¥Ú¡¼¥¸Ì¾: - + $_msg_template_refer +
    EOD; - $retvar['msg'] = '$1 ¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¤·¤ÆºîÀ®'; + $retvar['msg'] = $_title_template; $retvar['body'] = $ret; return $retvar; diff --git a/plugin/versionlist.inc.php b/plugin/versionlist.inc.php index c16b710..cc0ad9b 100644 --- a/plugin/versionlist.inc.php +++ b/plugin/versionlist.inc.php @@ -5,26 +5,9 @@ * CopyRight 2002 S.YOSHIMURA GPL2 * http://masui.net/pukiwiki/ yosimura@excellence.ac.jp * - * $Id: versionlist.inc.php,v 1.5 2003/03/02 07:25:20 panda Exp $ + * $Id: versionlist.inc.php,v 1.6 2003/07/03 05:27:46 arino Exp $ */ -function plugin_versionlist_init() -{ - if (LANG == 'ja') - { - $messages = array( - '_title_versionlist' => '¹½À®¥Õ¥¡¥¤¥ë¤Î¥Ð¡¼¥¸¥ç¥ó°ìÍ÷' - ); - } - else - { - $messages = array( - '_title_versionlist' => 'version list' - ); - } - set_plugin_messages($messages); -} - function plugin_versionlist_action() { global $_title_versionlist; diff --git a/plugin/vote.inc.php b/plugin/vote.inc.php index 809a64c..2424e77 100644 --- a/plugin/vote.inc.php +++ b/plugin/vote.inc.php @@ -2,28 +2,9 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: vote.inc.php,v 1.13 2003/05/14 10:13:31 arino Exp $ +// $Id: vote.inc.php,v 1.14 2003/07/03 05:28:04 arino Exp $ // -function plugin_vote_init() -{ - if (LANG == 'ja') - { - $messages = array( - '_vote_plugin_choice' => 'ÁªÂò»è', - '_vote_plugin_votes' => 'Åêɼ', - ); - } - else - { - $messages = array( - '_vote_plugin_choice' => 'Selection', - '_vote_plugin_votes' => 'Vote', - ); - } - set_plugin_messages($messages); -} - function plugin_vote_action() { global $post,$vars,$script,$cols,$rows; diff --git a/plugin/yetlist.inc.php b/plugin/yetlist.inc.php index 60ac7b7..cf613a3 100644 --- a/plugin/yetlist.inc.php +++ b/plugin/yetlist.inc.php @@ -2,27 +2,9 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: yetlist.inc.php,v 1.17 2003/06/05 00:32:14 arino Exp $ +// $Id: yetlist.inc.php,v 1.18 2003/07/03 05:28:24 arino Exp $ // -function plugin_yetlist_init() -{ - if (LANG == 'ja') - { - $messages = array( - '_title_yetlist' => '̤ºîÀ®¤Î¥Ú¡¼¥¸°ìÍ÷', - '_err_notexist' => '̤ºîÀ®¤Î¥Ú¡¼¥¸¤Ï¤¢¤ê¤Þ¤»¤ó¡£' - ); - } - else - { - $messages = array( - '_title_yetlist' => 'List of pages, are not made yet', - '_err_notexist' => 'All pages are made.' - ); - } - set_plugin_messages($messages); -} function plugin_yetlist_action() { global $script;