From: Sven S. <m.b...@li...> - 2014-09-10 15:06:50
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "kivitendo ERP". The branch master has been updated via f16a89c99a6adde756ef7a03e8f85f1054e6c751 (commit) from e42bd22a8126074975a303536b126a7eb524ce7e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f16a89c99a6adde756ef7a03e8f85f1054e6c751 Author: Sven Schöling <s.s...@li...> Date: Wed Sep 10 17:05:42 2014 +0200 locales.pl: Optional die Quelldatei von neuen Strings anzeigen falls mal wieder ein String auftaucht, und man ihn einfach nicht findet ----------------------------------------------------------------------- Summary of changes: scripts/locales.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) Full change list: diff --git a/scripts/locales.pl b/scripts/locales.pl index 788c37d..79c88e0 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -30,6 +30,7 @@ $OUTPUT_AUTOFLUSH = 1; my $opt_v = 0; my $opt_n = 0; my $opt_c = 0; +my $opt_f = 0; my $debug = 0; parse_args(); @@ -175,6 +176,15 @@ if (@new_missing) { } } + if ($opt_f) { + for my $string (@new_missing) { + print "new string '$string' in files:\n"; + for my $file (keys %cached) { + print " $file", $/ if $cached{$file}{all}{$string}; + } + } + } + generate_file( file => "$locales_dir/missing", header => $MISSING_HEADER, @@ -244,6 +254,7 @@ sub parse_args { 'check-files' => \$ignore_for_compatiblity, 'no-check-files' => \$opt_no_c, 'verbose' => \$opt_v, + 'filenames' => \$opt_f, 'help' => \$help, 'man' => \$man, 'debug' => \$debug, @@ -739,6 +750,7 @@ 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 -h, --help Show this help hooks/post-receive -- kivitendo ERP |