[Bug 1751820] Re: Teach dh_translations how to deal with meson
Gunnar Hjalmarsson
1751820 at bugs.launchpad.net
Sun Apr 8 03:29:26 UTC 2018
Smart way to find the builddir, Laney. :)
I tested with g-c-c and stumbled upon an issue: The introspect command
seems to result in a newline separated list of domains, and in the case
of g-c-c $domain contains the string:
'gnome-control-center-2.0
gnome-control-center-2.0-timezones'
The log file includes:
ninja: error: unknown target 'gnome-control-center-2.0
gnome-control-center-2.0-timezones-pot'
No POT built, and you can imagine what the .desktop and .policy files
look like.
In the patched dh_translations I replaced:
chomp $domain;
with
($domain) = split ' ', $domain;
and could then build g-c-c successfully.
Questions:
1. How do we know that we want the first domain in the list?
2. How do we generally handle packages with multiple gettext domains?
3. Is there a need to create gnome-control-center-2.0-timezones.pot? (If
there is, it's another bug, I suppose.)
A side note - I noticed that this:
# filter out translated fields
next if (/^(Name|GenericName|Comment|X-GNOME-FullName)\[/);
means that the upstream translations of "Icon" and "Keywords" are kept.
Shouldn't those be removed as well, or are they kept intentionally?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkgbinarymangler in Ubuntu.
https://bugs.launchpad.net/bugs/1751820
Title:
Teach dh_translations how to deal with meson
Status in pkgbinarymangler package in Ubuntu:
Triaged
Bug description:
dh_translations is currently not capable to find the gettext domain
and generate the translation template on packages which use the meson
build system. It would be convenient if it was.
I started to think about code changes, but got stuck:
I suppose that we'd better use ninja instead of intltool-update for
such packages, and if so, we need to pass the build directory to the
ninja() call. How would we do that?
Or would we use intltool-update also for such packages?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/1751820/+subscriptions
More information about the foundations-bugs
mailing list