X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/faef45c2e723c9fbc80d1d84b8481367204719b7..ab96e204a2beec2302b1850df50f45a6e67a13c4:/SL/Locale.pm diff --git a/SL/Locale.pm b/SL/Locale.pm index e941f003a..a6756fefe 100644 --- a/SL/Locale.pm +++ b/SL/Locale.pm @@ -47,10 +47,14 @@ sub new { my ($type, $country, $NLS_file) = @_; my $self = {}; + $country =~ s|.*/||; + $country =~ s|\.||g; + $NLS_file =~ s|.*/||; + if ($country && -d "locale/$country") { local *IN; $self->{countrycode} = $country; - if (open(IN, "locale/$country/$NLS_file")) { + if (open(IN, "<", "locale/$country/$NLS_file")) { my $code = join("", ); eval($code); close(IN);