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?
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 center- 2.0-timezones'
gnome-control-
The log file includes:
ninja: error: unknown target 'gnome- control- center- 2.0 center- 2.0-timezones- pot'
gnome-control-
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 GenericName| Comment| X-GNOME- FullName) \[/);
next if (/^(Name|
means that the upstream translations of "Icon" and "Keywords" are kept. Shouldn't those be removed as well, or are they kept intentionally?