[postgis-tickets] [PostGIS] #5057: weblate fails to keep translated strings within 80 columns (linewrapping)

PostGIS trac at osgeo.org
Wed Jan 19 00:36:41 PST 2022


#5057: weblate fails to keep translated strings within 80 columns (linewrapping)
---------------------+------------------
  Reporter:  strk    |      Owner:  robe
      Type:  defect  |     Status:  new
  Priority:  medium  |  Milestone:
 Component:  l18n    |    Version:
Resolution:          |   Keywords:
---------------------+------------------

Comment (by strk):

 ok this was about commit [8bb507f8f9084095728dc4062cdcb9431b76e7d4/git] --
 I thought weblate was turning lines to be LONGER than 79, which seems to
 be the default for our msgmerge as invoked by `make update-po` but on a
 closer look while the number of *bytes* are more, the number of *glyphs*
 is actually 78 (+ the double quotes == 80):

 {{{
 $ echo "効率的なバグの報告はPostGISの開発を助ける本質的な方法です。最も効
 率的なバグ報告は、PostGIS開発者がそれを再現できるようにすることで、それ の
 引" | wc -m
 78
 echo "効率的なバグの報告はPostGISの開発を助ける本質的な方法です。最も効率
 的なバグ報告は、PostGIS開発者がそれを再現できるようにすることで、それ の引
 " | wc -c
 204
 }}}

 I guess the weblate behavior is actually correct and it's `msgmerge` which
 bogusly counts bytes instead of UTF8 characters

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