[postgis-tickets] [PostGIS] #5455: update-po and update-pot result in different output from different machines

PostGIS trac at osgeo.org
Thu Jul 20 02:20:26 PDT 2023


#5455: update-po and update-pot result in different output from different machines
---------------------+---------------------------
  Reporter:  strk    |      Owner:  robe
      Type:  defect  |     Status:  new
  Priority:  medium  |  Milestone:  PostGIS 3.4.0
 Component:  l18n    |    Version:  master
Resolution:          |   Keywords:
---------------------+---------------------------
Comment (by strk):

 This contending pot format is happening between machines with poxml
 4:20.12.0-1 and machines with poxml 4:21.12.3-0ubuntu1. Running `make
 update-pot` on one and on the other result in different newlines, like:

 {{{
 diff --git a/doc/po/templates/administration.xml.pot
 b/doc/po/templates/administration.xml.pot
 index 6f5e7e861..bbddcbd1e 100644
 --- a/doc/po/templates/administration.xml.pot
 +++ b/doc/po/templates/administration.xml.pot
 @@ -288,9 +288,9 @@ msgstr ""
  #: administration.xml:139
  #, no-c-format
  msgid ""
 -"If you are running PostGIS 3 or above, then you should use the <xref "
 -"linkend=\"PostGIS_Extensions_Upgrade\"/> function to upgrade to the
 latest "
 -"version you have installed."
 +"If you are running PostGIS 3 or above, then you should use the <xref
 linkend="
 +"\"PostGIS_Extensions_Upgrade\"/> function to upgrade to the latest
 version "
 +"you have installed."
  msgstr ""

  #. Tag: para
 }}}

 The problem seem to not be even fixable with msgattrib, although from the
 same version.
 Both machines have msgattrib from GNU gettext-tools 0.21, but when running
 this command against the SAME version of
 po/templates/administration.xml.pot:
 {{{
 $ msgattrib --no-wrap po/templates/administration.xml.pot | msgattrib
 --width 79  | grep "PostGIS 3"
 }}}

 They give these two different answers:
 1:
 {{{
 "If you are running PostGIS 3 or above, then you should use the <xref "
 }}}
 2:
 {{{
 "If you are running PostGIS 3 or above, then you should use the <xref
 linkend="
 }}}

 Note that the --no-wrap call results in the SAME output:
 {{{
 $ msgattrib --no-wrap po/templates/administration.xml.pot | grep "PostGIS
 3"
 msgid "If you are running PostGIS 3 or above, then you should use the
 <xref linkend=\"PostGIS_Extensions_Upgrade\"/> function to upgrade to the
 latest version you have installed."
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5455#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list