|
Packit |
667938 |
###### PATCHTAG 00 ####################################################
|
|
Packit |
667938 |
### Italian/Italiano
|
|
Packit |
667938 |
### => Andrea Rossi <rouge@shiny.it>
|
|
Packit |
667938 |
###### PATCHTAG 10 ####################################################
|
|
Packit |
667938 |
&italian
|
|
Packit |
667938 |
###### PATCHTAG 20 ####################################################
|
|
Packit |
667938 |
'italian' => \&italian,
|
|
Packit |
667938 |
'italiano' => \&italian,
|
|
Packit |
667938 |
###### PATCHTAG 30 ####################################################
|
|
Packit |
667938 |
# Italian/Italiano
|
|
Packit |
667938 |
'italian' =>
|
|
Packit |
667938 |
"Localizzazione effettuata da
|
|
Packit |
667938 |
Andrea Rossi
|
|
Packit |
667938 |
<rouge\@shiny.it>",
|
|
Packit |
667938 |
###### PATCHTAG 40 ####################################################
|
|
Packit |
667938 |
$credits::LOCALE{'italiano'}=$credits::LOCALE{'italian'};
|
|
Packit |
667938 |
###### PATCHTAG 50 ####################################################
|
|
Packit |
667938 |
# Italian
|
|
Packit |
667938 |
|
|
Packit |
667938 |
sub italian
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
my $string = shift;
|
|
Packit |
667938 |
return "" unless defined $string;
|
|
Packit |
667938 |
my(%translations,%month,%wday);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
my($i,$j);
|
|
Packit |
667938 |
my(@dollar,@quux,@foo);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
# regexp => replacement string NOTE does not use autovars $1,$2...
|
|
Packit |
667938 |
# charset=iso-2022-jp
|
|
Packit |
667938 |
|
|
Packit |
667938 |
%translations =
|
|
Packit |
667938 |
(
|
|
Packit |
667938 |
#'charset=iso-8859-1' => 'charset=iso-8859-1',
|
|
Packit |
667938 |
'Maximal 5 Minute Incoming Traffic' => 'Traffico massimo in entrata su 5 minuti',
|
|
Packit |
667938 |
'Maximal 5 Minute Outgoing Traffic' => 'Traffico massimo in uscita su 5 minuti',
|
|
Packit |
667938 |
'the device' => 'Il dispositivo',
|
|
Packit |
667938 |
'The statistics were last updated(.*)' => 'Le statistiche l\' ultima volta sono state aggiornate $1',
|
|
Packit |
667938 |
' Average\)' => ' Media)',
|
|
Packit |
667938 |
'Average' => 'Media',
|
|
Packit |
667938 |
'Max' => 'Max',
|
|
Packit |
667938 |
'Current' => 'Attuale',
|
|
Packit |
667938 |
'version' => 'versione',
|
|
Packit |
667938 |
'`Daily\' Graph \((.*) Minute' => 'Grafico giornaliero (su $1 minuti:',
|
|
Packit |
667938 |
'`Weekly\' Graph \(30 Minute' => 'Grafico settimanale (su 30 minuti:' ,
|
|
Packit |
667938 |
'`Monthly\' Graph \(2 Hour' => 'Grafico mensile (su 2 ore:',
|
|
Packit |
667938 |
'`Yearly\' Graph \(1 Day' => 'Grafico annuale (su 1 giorno:',
|
|
Packit |
667938 |
'Incoming Traffic in (\S+) per Second' => 'Traffico in ingresso in $1 per Secondo',
|
|
Packit |
667938 |
'Outgoing Traffic in (\S+) per Second' => 'Traffico in uscita in $1 per Secondo',
|
|
Packit |
667938 |
'Incoming Traffic in (\S+) per Minute' => 'Traffico in ingresso in $1 per Minuto',
|
|
Packit |
667938 |
'Outgoing Traffic in (\S+) per Minute' => 'Traffico in uscita $1 per Minuto',
|
|
Packit |
667938 |
'Incoming Traffic in (\S+) per Hour' => 'Traffico in ingresso $1 per Ora',
|
|
Packit |
667938 |
'Outgoing Traffic in (\S+) per Hour' => 'Traffico in uscita $1 per Ora',
|
|
Packit |
667938 |
'at which time (.*) had been up for(.*)' => '$1 é attivo da $2',
|
|
Packit |
667938 |
'(\S+) per minute' => '$1 per Minuto',
|
|
Packit |
667938 |
'(\S+) per hour' => '$1 per Ora',
|
|
Packit |
667938 |
'(.+)/s$' => '$1/s',
|
|
Packit |
667938 |
# '(.+)/min' => '$1/min',
|
|
Packit |
667938 |
'(.+)/h$' => '$1/ora',
|
|
Packit |
667938 |
# '([kMG]?)([bB])/s' => '\$1\$2/s',
|
|
Packit |
667938 |
# '([kMG]?)([bB])/min' => '\$1\$2/min',
|
|
Packit |
667938 |
# '([kMG]?)([bB])/h' => '$1$2/t',
|
|
Packit |
667938 |
# 'Bits' => 'Bits',
|
|
Packit |
667938 |
# 'Bytes' => 'Bytes'
|
|
Packit |
667938 |
'In' => 'Ingresso',
|
|
Packit |
667938 |
'Out' => 'Uscita',
|
|
Packit |
667938 |
'Percentage' => 'Percentuale',
|
|
Packit |
667938 |
'Ported to OpenVMS Alpha by' => 'Ported su OpenVMS Alpha da',
|
|
Packit |
667938 |
'Ported to WindowsNT by' => 'Ported su WindowsNT da',
|
|
Packit |
667938 |
'and' => 'e',
|
|
Packit |
667938 |
'^GREEN' => 'VERDE',
|
|
Packit |
667938 |
'BLUE' => 'BLU',
|
|
Packit |
667938 |
'DARK GREEN' => 'VERDE SCURO',
|
|
Packit |
667938 |
#'MAGENTA' => 'MAGENTA',
|
|
Packit |
667938 |
#'AMBER' => 'AMBRA'
|
|
Packit |
667938 |
);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
# maybe expansions with replacement of whitespace would be more appropriate
|
|
Packit |
667938 |
|
|
Packit |
667938 |
foreach $i (keys %translations)
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
my $trans = $translations{$i};
|
|
Packit |
667938 |
$trans =~ s/\|/\|/;
|
|
Packit |
667938 |
return $string if eval " \$string =~ s|\${i}|${trans}| ";
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
|
|
Packit |
667938 |
%wday =
|
|
Packit |
667938 |
(
|
|
Packit |
667938 |
'Sunday' => 'Domenica', 'Sun' => 'Dom',
|
|
Packit |
667938 |
'Monday' => 'Lunedi', 'Mon' => 'Lun',
|
|
Packit |
667938 |
'Tuesday' => 'Martedi', 'Tue' => 'Mar',
|
|
Packit |
667938 |
'Wednesday' => 'Mercoledi', 'Wed' => 'Mer',
|
|
Packit |
667938 |
'Thursday' => 'Giovedi', 'Thu' => 'Gio',
|
|
Packit |
667938 |
'Friday' => 'Venerdi', 'Fri' => 'Ven',
|
|
Packit |
667938 |
'Saturday' => 'Sabato', 'Sat' => 'Sab'
|
|
Packit |
667938 |
);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
%month =
|
|
Packit |
667938 |
(
|
|
Packit |
667938 |
'January' => 'Gennaio', 'February' => 'Febbraio' , 'March' => 'Marzo',
|
|
Packit |
667938 |
'Jan' => 'Gen', 'Feb' => 'Feb', 'Mar' => 'Mar',
|
|
Packit |
667938 |
'April' => 'Aprile', 'May' => 'Maggio', 'June' => 'Giugno',
|
|
Packit |
667938 |
'Apr' => 'Apr', 'May' => 'Mag', 'Jun' => 'Giu',
|
|
Packit |
667938 |
'July' => 'Luglio', 'August' => 'Agosto', 'September' => 'Settembre',
|
|
Packit |
667938 |
'Jul' => 'Lug', 'Aug' => 'Ago', 'Sep' => 'Set',
|
|
Packit |
667938 |
'October' => 'Ottobre', 'November' => 'Novembre', 'December' => 'Dicembre',
|
|
Packit |
667938 |
'Oct' => 'Ott', 'Nov' => 'Nov', 'Dec' => 'Dic'
|
|
Packit |
667938 |
);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
@foo=($string=~/(\S+),\s+(\S+)\s+(\S+)(.*)/);
|
|
Packit |
667938 |
if($foo[0] && $wday{$foo[0]} && $foo[2] && $month{$foo[2]} )
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
if($foo[3]=~(/(.*)at(.*)/))
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
@quux=split(/at/,$foo[3]);
|
|
Packit |
667938 |
$foo[3]=$quux[0]." alle ".$quux[1];
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
return "$wday{$foo[0]} $foo[1] $month{$foo[2]} $foo[3]";
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
|
|
Packit |
667938 |
#
|
|
Packit |
667938 |
# handle two different time/date formats:
|
|
Packit |
667938 |
# return "$wday, $mday $month ".($year+1900)." à $hour:$min";
|
|
Packit |
667938 |
# return "$wday, $mday $month ".($year+1900)." $hour:$min:$sec GMT";
|
|
Packit |
667938 |
#
|
|
Packit |
667938 |
|
|
Packit |
667938 |
# handle nontranslated strings which ought to be translated
|
|
Packit |
667938 |
# print STDERR "$_\n" or print DEBUG "not translated $_";
|
|
Packit |
667938 |
# but then again we might not want/need to translate all strings
|
|
Packit |
667938 |
|
|
Packit |
667938 |
return $string;
|
|
Packit |
667938 |
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|