⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 korean.pmd

📁 主要用于监控网络流量并动态产生可视化结果
💻 PMD
字号:
###### PATCHTAG00 #######################################################      Korean###      => Kensoon Hwang <lovesh@static.co.kr>###### PATCHTAG10 ####################################################  &korean###### PATCHTAG20 ####################################################  'korean'      => \&korean,###### PATCHTAG30 ##################################################### korean   ,'korean' =>   "  <HR NOSHADE>  <TD WIDTH=388 ALIGN=RIGHT><FONT FACE=\"Arial,Helvetica\" SIZE=2>  茄臂拳    <NOBR><A HREF=\"mailto:lovesh\@static.co.kr\">Keonsoon Hwang</A>  </NOBR>",###### PATCHTAG40 ##################################################### $credits::LOCALE{'korean'}=$credits::LOCALE{'korean'};###### PATCHTAG50 ##################################################### Koreansub korean{  my($string)=pop(@_);  my(%translations,%month,%wday);  my($i,$j);  my(@dollar,@quux,@foo);    # regexp => replacement string NOTE does not use autovars $1,$2...  # charset=iso-2022-jp  %translations =  (      # 'charset=iso-8859-1'                     => 'charset=ks_c_5601-1987',     'charset=iso-8859-1'                     => '',     'Maximal 5 Minute Incoming Traffic'      => '5盒埃 弥措 荐脚',     'Maximal 5 Minute Outgoing Traffic'      => '5盒埃 弥措 价脚',     'the device'                             => '厘摹',     'The statistics were last updated(.*)'   => '弥辆 盎脚 老矫: $1',     ' Average\)</B><BR>'                     => ' 乞闭蔼 扁霖)</B><BR>',     '<TD ALIGN=right><SMALL>Average(.*)'     => '<TD ALIGN=right><SMALL>乞闭$1',     '<TD ALIGN=right><SMALL>Max(.*)'         => '<TD ALIGN=right><SMALL>弥措$1',     '<TD ALIGN=right><SMALL>Current(.*)'     => '<TD ALIGN=right><SMALL>泅犁$1',     'version'                                => '滚怜',     '<B>`Daily\' Graph \((.*) Minute'        => '<B>老埃 弊贰橇 ($1 盒 窜困',     '<B>`Weekly\' Graph \(30 Minute'         => '<B>林埃 弊贰橇 (30 盒 窜困' ,     '<B>`Monthly\' Graph \(2 Hour'           => '<B>岿埃 弊贰橇 (2 矫埃 窜困',     '<B>`Yearly\' Graph \(1 Day'             => '<B>斥埃 弊贰橇 (1 老 窜困',      'Incoming Traffic in (\S+) per Second'   => '檬寸 荐脚等 $1',     'Outgoing Traffic in (\S+) per Second'   => '檬寸 价脚等 $1',     'at which time (.*) had been up for(.*)' => '$1 啊悼 矫埃: $2',     # '([kMG]?)([bB])/s'                 => '\$1\$2/s',     # '([kMG]?)([bB])/min'              => '\$1\$2/min',     '([kMG]?)([bB])/h'                       => '$1$2/t',     # 'Bits'                                => 'Bits',     # 'Bytes'                              => 'Bytes'     '&nbsp;In:</FONT>'                      => '&nbsp;荐脚:</FONT>',     '&nbsp;Out:</FONT>'                     => '&nbsp;价脚:</FONT>',     '&nbsp;Percentage</FONT>'               => '&nbsp;欺季飘:</FONT>',     'Ported to OpenVMS Alpha by'             => 'OpenVMS Alpha侩 俺惯',      'Ported to WindowsNT by'                 => 'WindowsNT侩 俺惯',     'and'                                    => '弊府绊',     '^GREEN'                                  => '踌祸',     'BLUE'                                   => '没祸',     'DARK GREEN'                             => '柳茄踌祸',     'MAGENTA'                                => '盒全祸',     'AMBER'                                  => '林炔祸'  );# maybe expansions with replacement of whitespace would be more appropriateforeach $i (keys %translations){  if($string=~/$i/)  {     (@dollar)=($string=~/()$i/); # I hope this prevents the autovars    $string=$translations{$i};  # And it only works from $1-$9    for($j=1;@dollar[$j];$j++)   # s/// doesn't do any good with saved "$1"-exprs.    {      @quux=();      (@quux)=split(/\$$j/,$string);      $string=@quux[0].@dollar[$j].@quux[1];    } ;     return $string;  };};%wday =     (      'Sunday'    => '老夸老',    'Sun' => '老',      'Monday'    => '岿夸老',    'Mon' => '岿',      'Tuesday'   => '拳夸老',    'Tue' => '拳',      'Wednesday' => '荐夸老',    'Wed' => '荐',      'Thursday'  => '格夸老',    'Thu' => '格',      'Friday'    => '陛夸老',    'Fri' => '陛',      'Saturday'  => '配夸老',    'Sat' => '配'     );%month =     (      'January'   => '1岿',  'February'  => '2岿' ,  'March'     => '3岿',      'Jan'       => '1岿',  'Feb'       => '2岿',   'Mar'       => '3岿',      'April'     => '4岿',  'May'       => '3岿',   'June'      => '6岿',       'Apr'       => '4岿',  'May'       => '3岿',   'Jun'       => '6岿',      'July'      => '7岿',  'August'    => '8岿',   'September' => '9岿',       'Jul'       => '7岿',  'Aug'       => '8岿',   'Sep'       => '9岿',       'October'   => '10岿', 'November'  => '11岿',  'December'  => '12岿',       'Oct'       => '10岿', 'Nov'       => '11岿',  'Dec'       => '12岿'     );  @foo=($string=~/(\S+),\s+(\S+)\s+(\S+)(.*)/);  if( $wday{@foo[0]} && $month{@foo[2]} )  {    if(@foo[3]=~(/(.*)at(.*)/))    {       @quux=split(/at/,@foo[3]);#      @foo[3]=@quux[0]." kl.".@quux[1];       @foo[3]=@quux[0];      @foo[4]=@quux[1];     };    return @foo[3]."斥 $month{@foo[2]} @foo[1]老 $wday{@foo[0]} @foo[4]";#    return "$wday{@foo[0]} den @foo[1]. $month{@foo[2]} @foo[3]";   };## handle two different time/date formats:  # return "$wday, $mday $month ".($year+1900)." at $hour:$min";# return "$wday, $mday $month ".($year+1900)." $hour:$min:$sec GMT";## handle nontranslated strings which ought to be translated# print STDERR "$_\n" or print DEBUG "not translated $_";# but then again we might not want/need to translate all strings   return $string;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -