From: Bernd Bleßmann Date: Mon, 4 Jan 2021 17:36:15 +0000 (+0100) Subject: locales-Skript: Option -n / --no-custom-files raus X-Git-Tag: kivitendo-mebil_0.1-0~9^2~538 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=09a86e5f98486aec907ac313a5c97ae1565e6e0a;p=kivitendo-erp.git locales-Skript: Option -n / --no-custom-files raus Funktioniert so ohnehin nicht mehr (wird ignoriert) und -n war doppelt vergeben (Option n is ambiguous (no-check-files, no-custom-files)) --- diff --git a/scripts/locales.pl b/scripts/locales.pl index dc93a355d..7f1b00624 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -31,7 +31,6 @@ use SL::YAML; $OUTPUT_AUTOFLUSH = 1; my $opt_v = 0; -my $opt_n = 0; my $opt_c = 0; my $opt_f = 0; my $debug = 0; @@ -97,7 +96,6 @@ my @customfiles = grep /_custom/, @bindir_files; push @progfiles, map { m:^(.+)/([^/]+)$:; [ $2, $1 ] } grep { /\.pm$/ } map { find_files($_) } @progdirs; -# put customized files into @customfiles my %dir_h; my @dbplfiles; @@ -263,7 +261,6 @@ sub parse_args { my ($opt_no_c, $ignore_for_compatiblity); GetOptions( - 'no-custom-files' => \$opt_n, 'check-files' => \$ignore_for_compatiblity, 'no-check-files' => \$opt_no_c, 'verbose' => \$opt_v, @@ -768,7 +765,6 @@ locales.pl - Collect strings for translation in kivitendo locales.pl [options] lang_code Options: - -n, --no-custom-files Do not process files whose name contains "_" -c, --check-files Run extended checks on HTML files -f, --filenames Show the filenames where new strings where found -v, --verbose Be more verbose @@ -778,10 +774,6 @@ locales.pl [options] lang_code =over 8 -=item B<-n>, B<--no-custom-files> - -Do not process files whose name contains "_", e.g. "custom_io.pl". - =item B<-c>, B<--check-files> Run extended checks on the usage of templates. This can be used to