Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5043 closed defect (fixed)

Duplicated msgid in using_postgis_dataman.xml

Reported by: strk Owned by: robe
Priority: medium Milestone: PostGIS 3.3.0
Component: documentation Version: 3.2.x
Keywords: Cc:

Description

Our using_postgis_dataman.xml contains two different tags containing the same content: TRIANGLE ((0 0, 0 9, 9 0, 0 0)) — one is a <programlisting> tag on line 190 and another is a <para> tag on line 553. This results in xml2pot creating 2 msgid strings being the same, and msgmerge fail when trying to update the corresponding .po files.

To reproduce: make -C doc/ update-po

Note that the failure in make update-po results in Transifex not receiving a translation file on make push-tx .

Change History (4)

comment:1 by strk, 2 years ago

NOTE: if both places use the same tag there's no duplicated MSGID resulting. For some reason the list of examples on line 553 is using <para> instead of <programlisting>, maybe we should always use <programlisting> there instead ?

comment:2 by strk, 2 years ago

Regina I see that we have a similar problem with spatial_relationship.xml whereas the SAME text is used for both <refpurpose> and <para> in the description, resulting in the same msgid. In git history I see you changed some po files to include the tag in the msgid, see commit [e357e0a7381a8c2f36c62375380acbf800da697d/git] — did you find that approach to actually work ?

comment:3 by Sandro Santilli <strk@…>, 2 years ago

Resolution: fixed
Status: newclosed

In 990bec9/git:

Use different triangle WKT in example

This is the smallest workaround to a duplicated msgid resulting
from xml2pot. Closes #5043

comment:4 by Sandro Santilli <strk@…>, 2 years ago

In b67f6c8/git:

Include tag in duplicated msgid for ProperlyContains

See #5043

As of this commit my run of make update-po completes without
printed errors.

Note: See TracTickets for help on using tickets.