From: Ian Jackson Date: Sun, 30 Sep 2018 23:28:26 +0000 (+0100) Subject: i18n: i18n-diff-auditor: recognise tail concatenation X-Git-Tag: archive/debian/7.0_pre1~53 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=df40de728a833cbba178e87c3df19329255c0f64 i18n: i18n-diff-auditor: recognise tail concatenation Signed-off-by: Ian Jackson --- diff --git a/i18n-diff-auditor b/i18n-diff-auditor index 73c77eca..8ec5e9f4 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -273,6 +273,15 @@ sub analyse_chunk_core () { elsif ($& ne '%s') { die "unhandled %-subst $&\n"; } $next_y->(); die "expected comma, got $y->{P}\n" unless $y->{E} eq ','; + if (!length $fmt and + !length $xs and + @xs and + $xs[0]{E} eq '.') { + # X has "" . + # Y has "%s" [other args] , + $next_x->(); # eat the '.' + next; + } if ($xs =~ m{^\@}) { $next_y->(); die "\@... => not string" unless is_string($y);