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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751820

Title:
  Teach dh_translations how to deal with meson

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/1751820/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to