|
Packit |
667938 |
###### PATCHTAG 00 ###################################################
|
|
Packit |
667938 |
### German/Deutsch
|
|
Packit |
667938 |
### => Ilja Pavkovic <illsen@gumblfarz.de>
|
|
Packit |
667938 |
###### PATCHTAG 10 ###################################################
|
|
Packit |
667938 |
&german
|
|
Packit |
667938 |
###### PATCHTAG 20 ###################################################
|
|
Packit |
667938 |
'german' => \&german,
|
|
Packit |
667938 |
'german' => \&german,
|
|
Packit |
667938 |
###### PATCHTAG 30 ###################################################
|
|
Packit |
667938 |
# German/deutsch
|
|
Packit |
667938 |
'german' =>
|
|
Packit |
667938 |
"
|
|
Packit |
667938 |
Vorbereitet für die Lokalisation von
|
|
Packit |
667938 |
<NOBR>Ilja Pavkovic
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<illsen\@gumblfarz.de></NOBR>",
|
|
Packit |
667938 |
###### PATCHTAG 40 ###################################################
|
|
Packit |
667938 |
$credits::LOCALE{'deutsch'}=$credits::LOCALE{'german'};
|
|
Packit |
667938 |
###### PATCHTAG 50 ###################################################
|
|
Packit |
667938 |
# German
|
|
Packit |
667938 |
|
|
Packit |
667938 |
sub german
|
|
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' => 'Maximaler hereinkommender Traffic in 5 Minuten',
|
|
Packit |
667938 |
'Maximal 5 Minute Outgoing Traffic' => 'Maximaler hinausgehender Traffic in 5 Minuten',
|
|
Packit |
667938 |
'the device' => 'das Gerät',
|
|
Packit |
667938 |
'The statistics were last updated(.*)' => 'Die Statistiken wurden am $1 zuletzt aktualisiert',
|
|
Packit |
667938 |
' Average\) ' => '',
|
|
Packit |
667938 |
'<SMALL>Average(.*)' => '<SMALL>Mittel$1',
|
|
Packit |
667938 |
'<SMALL>Max(.*)' => '<SMALL>Maximal$1',
|
|
Packit |
667938 |
'<SMALL>Current(.*)' => '<SMALL>Aktuell$1',
|
|
Packit |
667938 |
'version' => 'Version',
|
|
Packit |
667938 |
'`Daily\' Graph \((.*) Minute' => 'Tagesübersicht (Skalierung $1 Minute(n)) ',
|
|
Packit |
667938 |
'`Weekly\' Graph \(30 Minute' => 'Wochenübersicht (Skalierung 30 Minuten) ' ,
|
|
Packit |
667938 |
'`Monthly\' Graph \(2 Hour' => 'Monatsübersicht (Skalierung 2 Stunden) ',
|
|
Packit |
667938 |
'`Yearly\' Graph \(1 Day' => 'Jahresübersicht (Skalierung 1 Tag) ',
|
|
Packit |
667938 |
'Incoming Traffic in (\S+) per Second' => 'Hereinkommender Traffic in $1 pro Sekunde',
|
|
Packit |
667938 |
'Outgoing Traffic in (\S+) per Second' => 'Hinausgehender Traffic in $1 pro Sekunde',
|
|
Packit |
667938 |
'Incoming Traffic in (\S+) per Minute' => 'Hereinkommender Traffic in $1 pro Minute',
|
|
Packit |
667938 |
'Outgoing Traffic in (\S+) per Minute' => 'Hinausgehender Traffic in $1 pro Minute',
|
|
Packit |
667938 |
'Incoming Traffic in (\S+) per Hour' => 'Hereinkommender Traffic in $1 pro Stunde',
|
|
Packit |
667938 |
'Outgoing Traffic in (\S+) per Hour' => 'Hinausgehender Traffic in $1 pro Stunde',
|
|
Packit |
667938 |
'at which time (.*) had been up for(.*)' => 'zu diesem Zeitpunkt lief $1 seit $2',
|
|
Packit |
667938 |
'(\S+) per minute' => '$1 pro Minute',
|
|
Packit |
667938 |
'(\S+) per hour' => '$1 pro Stunde',
|
|
Packit |
667938 |
'(.+)/s$' => '$1/s',
|
|
Packit |
667938 |
# '(.+)/min' => '$1/min',
|
|
Packit |
667938 |
'(.+)/h$' => '$1/std',
|
|
Packit |
667938 |
#'([kMG]?)([bB])/s' => '$1$2/s',
|
|
Packit |
667938 |
#'([kMG]?)([bB])/min' => '$1$2/min',
|
|
Packit |
667938 |
#'([kMG]?)([bB])/h' => '$1$2/std',
|
|
Packit |
667938 |
# 'Bits' => 'Bits',
|
|
Packit |
667938 |
# 'Bytes' => 'Bytes'
|
|
Packit |
667938 |
' In:</FONT>' => ' Herein:</FONT>',
|
|
Packit |
667938 |
' Out:</FONT>' => ' Hinaus:</FONT>',
|
|
Packit |
667938 |
' Percentage</FONT>' => ' Prozent:</FONT>',
|
|
Packit |
667938 |
'Ported to OpenVMS Alpha by' => 'Portierung nach OpenVMS von',
|
|
Packit |
667938 |
'Ported to WindowsNT by' => 'Portierung nach WindowsNT von',
|
|
Packit |
667938 |
'and' => 'und',
|
|
Packit |
667938 |
'^GREEN' => 'GRÜN',
|
|
Packit |
667938 |
'BLUE' => 'BLAU',
|
|
Packit |
667938 |
'DARK GREEN' => 'DUNKELGRÜN',
|
|
Packit |
667938 |
# 'MAGENTA' => 'ROSA',
|
|
Packit |
667938 |
# 'AMBER' => 'AMBER',
|
|
Packit |
667938 |
);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
# maybe expansions with replacement of whitespace would be more appropriate
|
|
Packit |
667938 |
foreach $i (keys %translations)
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
if(defined $i && defined $string && $string=~/$i/)
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
(@dollar)=($string=~/()$i/); # I hope this prevents the autovars
|
|
Packit |
667938 |
$string=$translations{$i}; # And it only works from $1-$9
|
|
Packit |
667938 |
for($j=1;$dollar[$j];$j++) # s/// doesn't do any good with saved "$1"-exprs.
|
|
Packit |
667938 |
{
|
|
Packit |
667938 |
@quux=();
|
|
Packit |
667938 |
(@quux)=split(/\$$j/,$string);
|
|
Packit |
667938 |
$string=$quux[0].$dollar[$j].$quux[1];
|
|
Packit |
667938 |
} ;
|
|
Packit |
667938 |
return $string;
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
|
|
Packit |
667938 |
%wday =
|
|
Packit |
667938 |
(
|
|
Packit |
667938 |
'Sunday' => 'Sonntag', 'Sun' => 'So',
|
|
Packit |
667938 |
'Monday' => 'Montag', 'Mon' => 'Mo',
|
|
Packit |
667938 |
'Tuesday' => 'Dienstag', 'Tue' => 'Di',
|
|
Packit |
667938 |
'Wednesday' => 'Mittwoch', 'Wed' => 'Mi',
|
|
Packit |
667938 |
'Thursday' => 'Donnerstag', 'Thu' => 'Do',
|
|
Packit |
667938 |
'Friday' => 'Freitag', 'Fri' => 'Fr',
|
|
Packit |
667938 |
'Saturday' => 'Samstag', 'Sat' => 'Sa'
|
|
Packit |
667938 |
);
|
|
Packit |
667938 |
|
|
Packit |
667938 |
%month =
|
|
Packit |
667938 |
(
|
|
Packit |
667938 |
'January' => 'Januar', 'February' => 'Februar' , 'March' => 'März',
|
|
Packit |
667938 |
'Jan' => 'Jan', 'Feb' => 'Feb', 'Mar' => 'Mär',
|
|
Packit |
667938 |
'April' => 'April', 'May' => 'Mai', 'June' => 'Juni',
|
|
Packit |
667938 |
'Apr' => 'Apr', 'May' => 'Mai', 'Jun' => 'Jun',
|
|
Packit |
667938 |
'July' => 'Juli', 'August' => 'August', 'September' => 'September',
|
|
Packit |
667938 |
'Jul' => 'Jul', 'Aug' => 'Aug', 'Sep' => 'Sep',
|
|
Packit |
667938 |
'October' => 'Oktober', 'November' => 'November', 'December' => 'Dezember',
|
|
Packit |
667938 |
'Oct' => 'Okt', 'Nov' => 'Nov', 'Dec' => 'Dez'
|
|
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]." um ".$quux[1];
|
|
Packit |
667938 |
};
|
|
Packit |
667938 |
return "$wday{$foo[0]}, den $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)." at $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 |
|
|
Packit |
667938 |
|