use '_' instead of '-' in file names of .properties files

This commit is contained in:
Andras Timar 2012-01-03 18:11:13 +01:00
parent 865c12c795
commit 297502d232

View file

@ -63,7 +63,9 @@ close (SDFFILE);
foreach my $lang (keys %languages) {
my $locfilename = $options{i};
$lang =~ s/-/_/;
$locfilename =~ s/en_US\.properties/$lang.properties/;
$lang =~ s/_/-/;
open (INFILE, "<$options{i}") || die "propmerge: cannot open source file: $options{i}";
open (OUTFILE, ">$locfilename") || die "propmerge: cannot open output file: $locfilename";
while (<INFILE>) {