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

PostGIS trac at osgeo.org
Tue Sep 19 03:09:30 PDT 2023


#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):

 Ok this is actually a nice feature of itstool: the untranslatable tags are
 not fully included in message strings, but just placeholder are, see this
 string obtained with xml2pot:

 {{{
 "The code is built into a single PostgreSQL extension library called "
 "<code>address_standardizer</code> which can be installed with
 <code>CREATE "
 "EXTENSION address_standardizer;</code>. In addition to the "
 "address_standardizer extension, a sample data extension called "
 "<code>address_standardizer_data_us</code> extensions is built, which "
 "contains gaz, lex, and rules tables for US data. This extensions can be "
 "installed via: <code>CREATE EXTENSION
 address_standardizer_data_us;</code>"
 }}}

 Compare to the more succint one obtained with itstool, whereas the <code>
 blocks are removed:
 {{{
 msgid "The code is built into a single PostgreSQL extension library called
 <_:code-1/> which can be installed with <_:code-2/>. In addition to the
 address_standardizer extension, a sample data extension called <_:code-3/>
 extensions is built, which contains gaz, lex, and rules tables for US
 data. This extensions can be installed via: <_:code-4/>"
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5074#comment:3>
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