[Bug 1762889] Re: dh_translations doesn't strip .desktop files when more than 1 pot target with meson
Gunnar Hjalmarsson
1762889 at bugs.launchpad.net
Fri Apr 13 11:23:40 UTC 2018
Okay, I'll switch to an array. I'm used to hashes, and personally find
it just as readable, but maybe not.. And efficiency is indeed not an
issue for this non-runtime code.
On 2018-04-13 10:42, Iain Lane wrote:
> OK, a slight review, it's confusing that --domain only works for
> meson; is there any reason not to make that option cover other build
> systems too?
My thought was that the purpose of adding it was to offer a way to
compensate for the ambiguity wrt some Meson packages. So the way it's
currently done, you can only set a domain from debian/rules which the
introspect command finds. Eliminates the risk that a package maintainer
screws it up. ;)
If we'd switch to a true override, where you can set any domain from
debian/rules, it would make sense to include other build systems. That
might be useful for cases where a gettext domain exists, but the
dh_translations code fails to find it for some reason.
Should I change it to a true override, so to say?
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1762889
Title:
dh_translations doesn't strip .desktop files when more than 1 pot
target with meson
Status in pkgbinarymangler package in Ubuntu:
In Progress
Bug description:
The gnome.help() meson function creates a help-$project-pot target.
This confuses dh_translations which complains:
dh_translations: more than one meson translation domain found (help-
gnome-calculator,gnome-calculator), don't know which one to use
I think the only consequence of this is that the .desktop doesn't have
its translations stripped and replaced with X-Ubuntu-Gettext-Domain=
This means that Ubuntu translators are unable to update those
translations.
Affected Apps
=============
Therefore, this issue affects GNOME apps in main that use meson and also include help files.
gnome-control-center is also affected because it happens to have an
extra gettext domain (but does not ship help).
libgweather gets the warning because it has a second gettext domain
but it doesn't ship any .desktop files so I think the warning is
harmless.
Suggestion
==========
Maybe dh_translations could just exclude targets that start with "help-". That would fix most of these cases.
Other Info
==========
This bug is split off LP: #1751820
pkgbinarymanagler 136 in bionic
References
==========
http://mesonbuild.com/Gnome-module.html#gnomeyelp
http://mesonbuild.com/Localisation.html
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/1762889/+subscriptions
More information about the Ubuntu-sponsors
mailing list