summaryrefslogtreecommitdiffstats
path: root/src/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/meson.build10
-rw-r--r--src/hostname/org.freedesktop.hostname1.policy.in12
2 files changed, 10 insertions, 12 deletions
diff --git a/src/hostname/meson.build b/src/hostname/meson.build
index 75cc94874b..c35c6688ba 100644
--- a/src/hostname/meson.build
+++ b/src/hostname/meson.build
@@ -21,12 +21,10 @@ if conf.get('ENABLE_HOSTNAMED') == 1
install_data('org.freedesktop.hostname1.service',
install_dir : dbussystemservicedir)
- i18n.merge_file(
- 'org.freedesktop.hostname1.policy',
+ policy = configure_file(
input : 'org.freedesktop.hostname1.policy.in',
output : 'org.freedesktop.hostname1.policy',
- po_dir : po_dir,
- data_dirs : po_dir,
- install : install_polkit,
- install_dir : polkitpolicydir)
+ configuration : substs)
+ install_data(policy,
+ install_dir : polkitpolicydir)
endif
diff --git a/src/hostname/org.freedesktop.hostname1.policy.in b/src/hostname/org.freedesktop.hostname1.policy.in
index b10ca31ac5..4ac82c659c 100644
--- a/src/hostname/org.freedesktop.hostname1.policy.in
+++ b/src/hostname/org.freedesktop.hostname1.policy.in
@@ -19,8 +19,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.hostname1.set-hostname">
- <description>Set host name</description>
- <message>Authentication is required to set the local host name.</message>
+ <description gettext-domain="systemd">Set host name</description>
+ <message gettext-domain="systemd">Authentication is required to set the local host name.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
@@ -29,8 +29,8 @@
</action>
<action id="org.freedesktop.hostname1.set-static-hostname">
- <description>Set static host name</description>
- <message>Authentication is required to set the statically configured local host name, as well as the pretty host name.</message>
+ <description gettext-domain="systemd">Set static host name</description>
+ <message gettext-domain="systemd">Authentication is required to set the statically configured local host name, as well as the pretty host name.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
@@ -40,8 +40,8 @@
</action>
<action id="org.freedesktop.hostname1.set-machine-info">
- <description>Set machine information</description>
- <message>Authentication is required to set local machine information.</message>
+ <description gettext-domain="systemd">Set machine information</description>
+ <message gettext-domain="systemd">Authentication is required to set local machine information.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>