X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flocales.pl;h=3ae38a3b13d3c09926b3afbe039aad578f2e6c93;hb=b873a5bdc5dfbac1daeda52af39cb2dc7ad41575;hp=53c3af5becd7a1a1859675c76edf3c6c8ae834b4;hpb=841d44c00aae1166a0721e40dc2f9ffb7b9ac5b5;p=kivitendo-erp.git diff --git a/scripts/locales.pl b/scripts/locales.pl index 53c3af5be..3ae38a3b1 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -101,7 +101,7 @@ if ($opt_n) { } my @dbplfiles; -foreach my $sub_dir ("Pg-upgrade", "Pg-upgrade2", "Pg-upgrade2-auth") { +foreach my $sub_dir ("Pg-upgrade2", "Pg-upgrade2-auth") { my $dir = "$basedir/sql/$sub_dir"; tie %dir_h, 'IO::Dir', $dir; push @dbplfiles, map { [ $_, $dir ] } grep { /\.pl$/ } keys %dir_h; @@ -120,9 +120,6 @@ if (-f "$locales_dir/lost") { unlink "$locales_dir/lost"; } -my $charset = slurp("$locales_dir/charset") || 'utf-8'; -chomp $charset; - my %old_texts = %{ $self->{texts} || {} }; handle_file(@{ $_ }) for @progfiles; @@ -717,10 +714,7 @@ sub generate_file { open my $fh, '>:encoding(utf8)', $file or die "$! : $file"; - $charset =~ s/\r?\n//g; - my $emacs_charset = lc $charset; - - print $fh "#!/usr/bin/perl\n# -*- coding: $emacs_charset; -*-\n# vim: fenc=$charset\n\nuse utf8;\n\n"; + print $fh "#!/usr/bin/perl\n# -*- coding: utf-8; -*-\n# vim: fenc=utf-8\n\nuse utf8;\n\n"; print $fh $header, "\n" if $header; print $fh "$data_name = $delim[0]\n" if $data_name;