From df40de728a833cbba178e87c3df19329255c0f64 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 1 Oct 2018 00:28:26 +0100 Subject: i18n: i18n-diff-auditor: recognise tail concatenation Signed-off-by: Ian Jackson --- i18n-diff-auditor | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n-diff-auditor b/i18n-diff-auditor index 73c77ec..8ec5e9f 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); -- cgit v1.2.3