[postgis-tickets] [PostGIS] #5074: Consider using itstool for localization

PostGIS trac at osgeo.org
Sun Jan 30 16:43:02 PST 2022


#5074: Consider using itstool for localization
---------------------+------------------
  Reporter:  strk    |      Owner:  robe
      Type:  task    |     Status:  new
  Priority:  medium  |  Milestone:
 Component:  l18n    |    Version:
Resolution:          |   Keywords:
---------------------+------------------

Comment (by strk):

 As a first test I tried generating the pot file for the introduction.xml
 with no switches and no configuration (itstool introduction.xml  >
 po/templates/introduction.xml.pot).
 Few interesting things I saw:

   (1) Tags are more informative:
 {{{
 -#. Tag: para
 +#. (itstool) path: chapter/para
 }}}

   (2) The ", no-c-format" line isn't added:
 {{{
  #: introduction.xml:21
 -#, no-c-format
  msgid "Project Steering Committee"
  msgstr ""
 }}}


   (3) Line wrapping doesn't seem to be supported:
 {{{
 -msgid ""
 -"MVT support, Bug fixing, Performance and stability improvements, GitHub
 "
 -"curation, alignment of PostGIS with PostgreSQL releases"
 +msgid "MVT support, Bug fixing, Performance and stability improvements,
 GitHub curation, alignment of PostGIS with PostgreSQL releases"
 }}}

   (4) itstool seems to be including useless portions of the string in the
 msgid (I checked and xml2po/po2xml are keeping the link intact):
 {{{
 -msgid "Boundless"
 +msgid "<ulink url=\"https://www.boundlessgeo.com\">Boundless</ulink>"
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5074#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