From 8f307d8e93d0040434168639c929cbb4b3aff6b1 Mon Sep 17 00:00:00 2001 From: Gunnar Hjalmarsson Date: Tue, 13 Feb 2018 12:56:17 +0100 Subject: [PATCH] Translate polkit strings https://launchpad.net/bugs/1747272 --- data/polkit/io.snapcraft.snapd.policy | 12 ++++++------ update-pot | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/data/polkit/io.snapcraft.snapd.policy b/data/polkit/io.snapcraft.snapd.policy index 54757eca4..76ef3e4a4 100644 --- a/data/polkit/io.snapcraft.snapd.policy +++ b/data/polkit/io.snapcraft.snapd.policy @@ -8,8 +8,8 @@ http://snapcraft.io - Authenticate on snap daemon - Authorization is required to authenticate on the snap daemon + Authenticate on snap daemon + Authorization is required to authenticate on the snap daemon auth_admin auth_admin @@ -18,8 +18,8 @@ - Install, update, or remove packages - Authentication is required to install, update, or remove packages + Install, update, or remove packages + Authentication is required to install, update, or remove packages auth_admin auth_admin @@ -28,8 +28,8 @@ - Connect, disconnect interfaces - Authentication is required to connect or disconnect interfaces + Connect, disconnect interfaces + Authentication is required to connect or disconnect interfaces auth_admin auth_admin diff --git a/update-pot b/update-pot index c3db0bc9e..300cdd72a 100755 --- a/update-pot +++ b/update-pot @@ -24,6 +24,13 @@ find "$HERE" -name "*.go" -type f -print0 | xargs -0 \ --keyword=i18n.G \ --keyword-plural=i18n.DG +xgettext "$HERE"/data/polkit/*.policy \ + -o "$OUTPUT" \ + --no-location \ + --package-name=snappy \ + --msgid-bugs-address=snappy-devel@lists.ubuntu.com \ + --join-existing + #xgettext -d snappy -o "$OUTPUT" --c++ --from-code=UTF-8 \ # --indent --add-comments=TRANSLATORS: --no-location --sort-output \ # --package-name=snappy \ -- 2.15.1