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

📄 italian.pmd

📁 主要用于监控网络流量并动态产生可视化结果
💻 PMD
字号:
###### PATCHTAG00 #######################################################      Italian/Italiano###      => Andrea Rossi <rouge@shiny.it>###### PATCHTAG10 ####################################################  &italian###### PATCHTAG20 ####################################################  'italian'    	 => \&italian,  'italiano' 	 => \&italian,###### PATCHTAG30 ##################################################### Italian/Italiano   'italian' =>   "  <HR NOSHADE>  <TD WIDTH=388 ALIGN=RIGHT><FONT FACE=\"Arial,Helvetica\" SIZE=2>  Localizzazione effettuata da    <NOBR><A HREF=\"http://shinystat.shiny.it\">Andrea Rossi</A>  <A HREF=\"mailto:rouge\@shiny.it\">  &lt;rouge\@shiny.it&gt;</A></NOBR>",###### PATCHTAG40 ####################################################$credits::LOCALE{'italiano'}=$credits::LOCALE{'italian'};###### PATCHTAG50 ##################################################### Italiansub italian{  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=iso-8859-1',     'Maximal 5 Minute Incoming Traffic'      => 'Traffico massimo in entrata su 5 minuti',     'Maximal 5 Minute Outgoing Traffic'      => 'Traffico massimo in uscita su 5 minuti',     'the device'                             => 'Il dispositivo',     'The statistics were last updated(.*)'   => 'Le statistiche l\' ultima volta sono state aggiornate',     ' Average\)</B><BR>'                     => ' Media)</B><BR>',     '<TD ALIGN=right><SMALL>Average(.*)'     => '<TD ALIGN=right><SMALL>Media$1',     '<TD ALIGN=right><SMALL>Max(.*)'         => '<TD ALIGN=right><SMALL>Max$1',     '<TD ALIGN=right><SMALL>Current(.*)'     => '<TD ALIGN=right><SMALL>Attuale$1',     'version'                                => 'versione',     '<B>`Daily\' Graph \((.*) Minute'        => '<B>Grafico giornaliero (su $1 minuti :',     '<B>`Weekly\' Graph \(30 Minute'         => '<B>Grafico settimanale (su 30 minuti :' ,     '<B>`Monthly\' Graph \(2 Hour'           => '<B>Grafico mensile  (su 2 ore :',     '<B>`Yearly\' Graph \(1 Day'             => '<B>Grafico annuale (su 1 giorno :',      'Incoming Traffic in (\S+) per Second'   => 'Traffico in ingresso in $1 per secondo',     'Outgoing Traffic in (\S+) per Second'   => 'Traffico in uscita in $1 per secondo',     'at which time (.*) had been up for(.*)' => '$1 &eacute attivo da $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;Ingresso:</FONT>',     '&nbsp;Out:</FONT>'                      => '&nbsp;Uscita:</FONT>',     '&nbsp;Percentage</FONT>'                => '&nbsp;Percentuale:</FONT>',     'Ported to OpenVMS Alpha by'             => 'Ported su OpenVMS Alpha da',     'Ported to WindowsNT by'                 => 'Ported su WindowsNT da',     'and'                                    => 'e',     '^GREEN'                                  => 'VERDE',     'BLUE'                                   => 'BLU',     'DARK GREEN'                             => 'VERDE SCURO',     'MAGENTA'                                => 'MAGENTA',     'AMBER'                                  => 'AMBRA'  );# 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'    => 'Domenica',	'Sun' => 'Dom',      'Monday'    => 'Lunedi',		'Mon' => 'Lun',      'Tuesday'   => 'Martedi',		'Tue' => 'Mar',      'Wednesday' => 'Mercoledi',	'Wed' => 'Mer',      'Thursday'  => 'Giovedi',		'Thu' => 'Gio',      'Friday'    => 'Venerdi',		'Fri' => 'Ven',      'Saturday'  => 'Sabato',		'Sat' => 'Sab'     );%month =     (      'January'   => 'Gennaio',   'February'  => 'Febbraio' ,   'March'     => 'Marzo',      'Jan'       => 'Gen',       'Feb'       => 'Feb',         'Mar'       => 'Mar',      'April'     => 'Aprile',    'May'       => 'Maggio',      'June'      => 'Giugno',       'Apr'       => 'Apr',       'May'       => 'Mag',         'Jun'       => 'Giu',      'July'      => 'Luglio',    'August'    => 'Agosto',      'September' => 'Settembre',       'Jul'       => 'Lug',       'Aug'       => 'Ago',         'Sep'       => 'Set',       'October'   => 'Ottobre',   'November'  => 'Novembre',    'December'  => 'Dicembre',       'Oct'       => 'Ott',       'Nov'       => 'Nov',         'Dec'       => 'Dic'     );  @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]." alle ".@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)." &agrave; $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 + -