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

📄 dutch.pmd

📁 主要用于监控网络流量并动态产生可视化结果
💻 PMD
字号:
###### PATCHTAG00 #######################################################      Dutch/Nederlands###      => Barry van Dijk <barry@dijk.com>###### PATCHTAG10 ####################################################  &dutch###### PATCHTAG20 ####################################################  'dutch'        => \&dutch,  'nederlands'   => \&dutch,###### PATCHTAG30 ##################################################### Dutch/nederlands   'dutch' =>   "  <HR NOSHADE>  <TD WIDTH=388 ALIGN=RIGHT><FONT FACE=\"Arial,Helvetica\" SIZE=2>  Vertaald naar het Nederlands door    <NOBR><A HREF=\"http://doema.peterson.nl\">Barry van Dijk</A>  <A HREF=\"mailto:barry\@dijk.com\">  &lt;barry\@dijk.com&gt;</A></NOBR>",###### PATCHTAG40 ####################################################$credits::LOCALE{'nederlands'}=$credits::LOCALE{'dutch'};###### PATCHTAG50 ##################################################### Dutchsub dutch{  my($string)=pop(@_);  my(%translations,%month,%wday);  my($i,$j);  my(@dollar,@quux,@foo);    # regexp => replacement string NOTE does not use autovars $1,$2...  %translations =  (       #'charset=iso-8859-1'                     => 'charset=iso-8859-1',     'Maximal 5 Minute Incoming Traffic'      => 'Maximaal inkomend verkeer per 5 minuten',     'Maximal 5 Minute Outgoing Traffic'      => 'Maximaal uitgaand verkeer per 5 minuten',     'the device'                             => 'het apparaat',     'The statistics were last updated(.*)'   => 'Statistieken voor het laatst bijgewerkt op$1',     ' Average\)</B><BR>'                     => ' gemiddeld)</B><BR>',     '<TD ALIGN=right><SMALL>Average(.*)'     => '<TD ALIGN=right><SMALL>Gemiddeld$1',     '<TD ALIGN=right><SMALL>Max(.*)'         => '<TD ALIGN=right><SMALL>Max$1',     '<TD ALIGN=right><SMALL>Current(.*)'     => '<TD ALIGN=right><SMALL>Actueel$1',     'version'                                => 'versie',     '<B>`Daily\' Graph \((.*) Minute'        => '<B>`Dagelijkse\' grafiek ($1 minuten',     '<B>`Weekly\' Graph \(30 Minute'         => '<B>`Weekelijkse\' grafiek (30 minuten' ,     '<B>`Monthly\' Graph \(2 Hour'           => '<B>`Maandelijkse\' grafiek (2 uur',     '<B>`Yearly\' Graph \(1 Day'             => '<B>`Jaarlijkse\' grafiek (1 dag',      'Incoming Traffic in (\S+) per Second'   => 'Inkomend verkeer in $1 per seconde',     'Outgoing Traffic in (\S+) per Second'   => 'Uitgaand verkeer in $1 per seconde',     'at which time (.*) had been up for(.*)' => 'op het moment dat $1 reeds actief is voor$2',     # '([kMG]?)([bB])/s'                 => '\$1\$2/s',     # '([kMG]?)([bB])/min'              => '\$1\$2/min',     '([kMG]?)([bB])/h'                       => '$1$2/u',     # 'Bits'                                => 'Bits',     # 'Bytes'                              => 'Bytes'     # '&nbsp;In:</FONT>'                      => '&nbsp;In:</FONT>',     '&nbsp;Out:</FONT>'                     => '&nbsp;Uit:</FONT>',     '&nbsp;Percentage</FONT>'               => '&nbsp;Procent:</FONT>',     'Ported to OpenVMS Alpha by'             => 'Ported naar OpenVMS door',      'Ported to WindowsNT by'                 => 'Ported naar WindowsNT door',     'and'                                    => 'en',     'DARK GREEN'                             => 'DONKER GROEN',     '^GREEN'                                  => 'GROEN',     'BLUE'                                   => 'BLAUW',     'MAGENTA'                                => 'LILA',     'AMBER'                                  => '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'    => 'Zondag',           'Sun' => 'Zon',      'Monday'    => 'Maandag',          'Mon' => 'Maa',      'Tuesday'   => 'Dinsdag',          'Tue' => 'Din',      'Wednesday' => 'Woensdag',         'Wed' => 'Woe',      'Thursday'  => 'Donderdag',        'Thu' => 'Don',      'Friday'    => 'Vrijdag',          'Fri' => 'Vri',      'Saturday'  => 'Zaterdag',         'Sat' => 'Zat'     );%month =     (      'January'   => 'Januari',   'February'  => 'Februari',    'March'     => 'Maart',      'Jan'       => 'Jan',       'Feb'       => 'Feb',         'Mar'       => 'Mrt',      'April'     => 'April',     'May'       => 'Mei',         'June'      => 'Juni',       'Apr'       => 'Apr',       'May'       => 'Mai',         'Jun'       => 'Jun',      'July'      => 'Juli',      'August'    => 'Augustus',    'September' => 'September',       'Jul'       => 'Jul',       'Aug'       => 'Aug',         'Sep'       => 'Sep',       'October'   => 'Oktober',   'November'  => 'November',    'December'  => 'December',       'Oct'       => 'Okt',       'Nov'       => 'Nov',         'Dec'       => 'Dec'     );  @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]." om".@quux[1];       };      return "$wday{@foo[0]} @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 + -