From f9c3aae82c940238e6162e16cef0431ce782f5f3 Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Sat, 18 May 2019 00:31:06 +0200 Subject: [PATCH 2/2] doc: Insufficient attempt to fix translation of three-line references. * doc/local.mk (xref_command): Catch three-line translations as well, but the multiline sed still covers only two lines. --- doc/local.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/local.mk b/doc/local.mk index 336e961c4f..645e571817 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -88,7 +88,7 @@ PO4A_PARAMS += -f texinfo # texinfo format # reference name, even in untranslated strings. # The last sed is a multiline sed because some references span multiple lines. define xref_command -cat "$@.tmp" | egrep '@p?x?ref' -A1 | sed 'N;s|--\n||g;P;D' | sed 's|^| |g' | \ +cat "$@.tmp" | egrep '@p?x?ref' -A2 | sed 'N;s|--\n||g;P;D' | sed 's|^| |g' | \ tr -d '\012' | sed 's|\(@p\?x\?ref\)|\n\1|g' | egrep '@p?x?ref' | \ sed 's|^.*@p\?x\?ref{\([^,}]*\).*$$|\1|g' | sort | uniq | while read e; do \ line=$$(grep -n "^msgid \"$$e\"" "$<" | cut -f1 --delimiter=":") ;\ -- 2.21.0