po: add a copy of polkit its rules
It's just a few lines, but this way we avoid a dependency on polkit, and can use meson's i18n stuff on older distros.
This commit is contained in:
parent
c81217920e
commit
d79a2f5fab
2
README
2
README
|
@ -149,7 +149,7 @@ REQUIREMENTS:
|
||||||
libpython (optional)
|
libpython (optional)
|
||||||
libidn2 or libidn (optional)
|
libidn2 or libidn (optional)
|
||||||
elfutils >= 158 (optional)
|
elfutils >= 158 (optional)
|
||||||
polkit >= 0.113-22-gc78819245f (optional)
|
polkit (optional)
|
||||||
pkg-config
|
pkg-config
|
||||||
gperf
|
gperf
|
||||||
docbook-xsl (optional, required for documentation)
|
docbook-xsl (optional, required for documentation)
|
||||||
|
|
8
po/its/polkit.its
Normal file
8
po/its/polkit.its
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
|
||||||
|
version="2.0">
|
||||||
|
<its:translateRule selector="//*" translate="no"/>
|
||||||
|
<its:translateRule selector="//action/description |
|
||||||
|
//action/message"
|
||||||
|
translate="yes"/>
|
||||||
|
</its:rules>
|
6
po/its/polkit.loc
Normal file
6
po/its/polkit.loc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<locatingRules>
|
||||||
|
<locatingRule name="polkit policy" pattern="*.policy">
|
||||||
|
<documentRule localName="policyconfig" target="polkit.its"/>
|
||||||
|
</locatingRule>
|
||||||
|
</locatingRules>
|
|
@ -202,6 +202,7 @@ i18n.merge_file(
|
||||||
input : policy_in,
|
input : policy_in,
|
||||||
output : 'org.freedesktop.systemd1.policy',
|
output : 'org.freedesktop.systemd1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ if conf.get('ENABLE_HOSTNAMED') == 1
|
||||||
input : 'org.freedesktop.hostname1.policy.in',
|
input : 'org.freedesktop.hostname1.policy.in',
|
||||||
output : 'org.freedesktop.hostname1.policy',
|
output : 'org.freedesktop.hostname1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -59,6 +59,7 @@ if conf.get('ENABLE_IMPORTD') == 1
|
||||||
input : 'org.freedesktop.import1.policy.in',
|
input : 'org.freedesktop.import1.policy.in',
|
||||||
output : 'org.freedesktop.import1.policy',
|
output : 'org.freedesktop.import1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ if conf.get('ENABLE_LOCALED') == 1
|
||||||
input : 'org.freedesktop.locale1.policy.in',
|
input : 'org.freedesktop.locale1.policy.in',
|
||||||
output : 'org.freedesktop.locale1.policy',
|
output : 'org.freedesktop.locale1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -76,6 +76,7 @@ if conf.get('ENABLE_LOGIND') == 1
|
||||||
input : 'org.freedesktop.login1.policy.in',
|
input : 'org.freedesktop.login1.policy.in',
|
||||||
output : 'org.freedesktop.login1.policy',
|
output : 'org.freedesktop.login1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ if conf.get('ENABLE_MACHINED') == 1
|
||||||
input : 'org.freedesktop.machine1.policy.in',
|
input : 'org.freedesktop.machine1.policy.in',
|
||||||
output : 'org.freedesktop.machine1.policy',
|
output : 'org.freedesktop.machine1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,6 +9,7 @@ if conf.get('ENABLE_TIMEDATED') == 1
|
||||||
input : 'org.freedesktop.timedate1.policy.in',
|
input : 'org.freedesktop.timedate1.policy.in',
|
||||||
output : 'org.freedesktop.timedate1.policy',
|
output : 'org.freedesktop.timedate1.policy',
|
||||||
po_dir : po_dir,
|
po_dir : po_dir,
|
||||||
|
data_dirs : po_dir,
|
||||||
install : install_polkit,
|
install : install_polkit,
|
||||||
install_dir : polkitpolicydir)
|
install_dir : polkitpolicydir)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue