diff -ru systemd-237.orig/debian/changelog systemd-237/debian/changelog --- systemd-237.orig/debian/changelog 2018-02-03 00:30:05.000000000 +0100 +++ systemd-237/debian/changelog 2018-02-10 23:02:11.481059722 +0100 @@ -1,3 +1,15 @@ +systemd (237-1ubuntu3) bionic; urgency=medium + + * debian/rules: + Fix creation of translation template (LP: #1707898): + - State the gettext package "systemd" explicitly. + - Use xgettext() to extract strings which intltool-update() fails + to extract. + Remove the inline translations from the .policy action files and + make use of gettext (LP: #1707898). + + -- Gunnar Hjalmarsson Sat, 10 Feb 2018 23:02:00 +0100 + systemd (237-1ubuntu2) bionic; urgency=medium * Disable gnu-efi on arm64, due to FTBFS. LP: #1746765 diff -ru systemd-237.orig/debian/rules systemd-237/debian/rules --- systemd-237.orig/debian/rules 2018-01-11 12:59:54.000000000 +0100 +++ systemd-237/debian/rules 2018-02-10 22:57:23.158899739 +0100 @@ -163,7 +163,8 @@ dh_auto_build --builddirectory=build-udeb endif # generate POT file for translators - cd build-deb/po; srcdir=../../po intltool-update --pot --verbose + cd build-deb/po; srcdir=../../po intltool-update --pot --verbose --gettext-package=systemd + xgettext -f "po/POTFILES.in" -o "build-deb/po/systemd.pot" --join-existing override_dh_auto_install: dh_auto_install --builddirectory=build-deb \ @@ -257,6 +258,13 @@ install -D --mode=755 debian/extra/dhclient-enter-resolved-hook debian/systemd/etc/dhcp/dhclient-enter-hooks.d/resolved endif + # gettextize .policy action files + for f in debian/systemd/usr/share/polkit-1/actions/* \ + debian/systemd-container/usr/share/polkit-1/actions/*; do \ + sed -r -i -e /xml:lang=/d \ + -e 's/<(message|description)>/<\1 gettext-domain="systemd">/g' $$f; \ + done + override_dh_installinit: dh_installinit --no-start