Public bug reported:

When building gnome-software on Ubuntu, dh_translations generates a
translation template (.pot file) to be imported to Rosetta. That
template includes 700+ log messages from
data/appdata/org.gnome.Software.appdata.xml.in. The messages are not
shown to users, and it makes no sense to have those strings translated.
It's worth mentioning that the strings are excluded in upstream's
translation template.

The issue was first reported at the ubuntu-translators mailing list:
https://lists.ubuntu.com/archives/ubuntu-translators/2021-May/007757.html

I stripped the redundant strings from the template and uploaded it to
hirsute manually as a temporary measure.

The reason why this happens seems to be that the appstream package is
included in Build-Depends. appstream installs the file
/usr/share/gettext/its/metainfo.its with rules which make all the log
entries be extracted. But the gettext package installs
/usr/share/gettext-0.21/its/metainfo.its with more sensible rules which
do not make the log entries be extracted. If the former is not present,
xgettext falls back to the latter.

So a solution to this issue is to drop appstream from Build-Depends.
gnome-software seems to build fine without that package (tested in PPA).

** Affects: gnome-software (Ubuntu)
     Importance: High
     Assignee: Gunnar Hjalmarsson (gunnarhj)
         Status: In Progress

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1927149

Title:
  Irrelevant translatable strings

Status in gnome-software package in Ubuntu:
  In Progress

Bug description:
  When building gnome-software on Ubuntu, dh_translations generates a
  translation template (.pot file) to be imported to Rosetta. That
  template includes 700+ log messages from
  data/appdata/org.gnome.Software.appdata.xml.in. The messages are not
  shown to users, and it makes no sense to have those strings
  translated. It's worth mentioning that the strings are excluded in
  upstream's translation template.

  The issue was first reported at the ubuntu-translators mailing list:
  https://lists.ubuntu.com/archives/ubuntu-translators/2021-May/007757.html

  I stripped the redundant strings from the template and uploaded it to
  hirsute manually as a temporary measure.

  The reason why this happens seems to be that the appstream package is
  included in Build-Depends. appstream installs the file
  /usr/share/gettext/its/metainfo.its with rules which make all the log
  entries be extracted. But the gettext package installs
  /usr/share/gettext-0.21/its/metainfo.its with more sensible rules
  which do not make the log entries be extracted. If the former is not
  present, xgettext falls back to the latter.

  So a solution to this issue is to drop appstream from Build-Depends.
  gnome-software seems to build fine without that package (tested in
  PPA).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1927149/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to