Big oops. I believe my suggestion in my original bug report was wrong.

I compared gnome-chess and gnome-mines (two simple games in Ubuntu
main). gnome-mahjongg in its current release still uses autotools, but
gnome-chess uses meson.

The build produces gnome-mahjongg_3.22.0-3_amd64_translations.tar.gz
In there is a gnome-mahjongg.pot in the source/help/ directory.

gnome-chess doesn't have a .pot in its source/help/, but one can be made
easily by running the help-gnome-chess-pot target.

Both of these builds are also interesting compared to some of the other
packages we've looked at because they produce a second tarball like
gnome-mahjongg_3.22.0-3_static_translations.tar.gz containing the pre-
built help.

By the Way
We don't actually allow translators to translate the help files for 
gnome-mahjongg. I don't know how complicated that would be to support.

Revised suggestion
We should run all the -pot targets offered by meson.

This will do the right thing for all the apps that provide help files.
It will do the right thing for libgweather (which has a second "locations" pot).

I guess we do need to be smart enough to know which one is the main
gettext domain though or at least the one to insert into the .desktop
files that we strip.

Note about gnome-control-center
My suggestion will break for gnome-control-center where the 
gnome-control-center-2.0-timezones-pot meson target isn't runnable. But 
gnome-control-center is an unusual case. I am guessing that those translations 
are somehow built in to the gnome-control-center binary. 


I think the existence of panels/datetime/po-timezones/ is
wrong and that file should be removed. When it's removed, we'll no
longer have the broken gettext domain meson target.

Once we fix this bug, I think we should rebuild all the meson apps in main so 
that the .desktop files will be translatable. We should be able to drop all of 
our manual dh_translations overrides at the same time (although I believe they 
are harmless). These rebuilds can be done as SRUs as this isn't an urgent issue 
because the .desktop files should already be translated by GNOME for popular 

Final Note
Gunnar, I apologize for all the time you spent on this bug. I think there is no 
known reason we would need to specify the gettext domain for either autotools 
or meson (once we handle gnome-control-center).

$ ninja -C obj-x86_64-linux-gnu/ gnome-control-center-2.0-timezones-pot 
ninja: Entering directory `obj-x86_64-linux-gnu/'
[0/1] Running external command gnome-control-center-2.0-timezones-pot.
Could not find file POTFILES in 
FAILED: meson-gnome-control-center-2.0-timezones-pot 
/usr/bin/python3 /usr/bin/meson --internal commandrunner gnome-control-center 
gnome-control-center/obj-x86_64-linux-gnu panels/datetime/po-timezones 
/usr/bin/python3 /usr/bin/meson /usr/bin/python3 /usr/bin/meson --internal 
gettext pot --pkgname=gnome-control-center-2.0-timezones 
ninja: build stopped: subcommand failed.

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  dh_translations doesn't strip .desktop files when more than 1 pot
  target with meson

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to