Opened 16 months ago
Closed 16 months ago
#5454 closed defect (fixed)
po files keep growing on `update-po`
Reported by: | strk | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.4.0 |
Component: | l18n | Version: | |
Keywords: | Cc: |
Description
The make update-po
rule leaves old (outdated) translations in the .po files, in lines starting with #~
prefix. This makes these files ever growing, so we need to decide on a trimming policy.
To make an example, the doc/po/ja/reference_processing.xml.po file has 3553 such lines, and only 3016 lines of used translations.
It would be useful to know if these translations are ever used by weblate, as if they are not we could just strip them in the make update-po
rule itself.
Change History (4)
comment:1 by , 16 months ago
comment:2 by , 16 months ago
Effects of removing the obsoleted strings from .po files:
251 files changed, 205 insertions(+), 300034 deletions(-)
Trimming can be done with msgattrib:
In addition to drop the obsoleted translations it also tend to reformat lines (line wrapping)