1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

build-sys: Add i18n support through intltool

And put the PolicyKit policy files up for translation.
This commit is contained in:
Bastien Nocera 2011-07-11 17:01:28 +01:00 committed by Lennart Poettering
parent 2376ce132b
commit 1c7dde3e47
8 changed files with 47 additions and 27 deletions

View File

@ -17,6 +17,8 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
SUBDIRS = po
# Dirs of external packages # Dirs of external packages
dbuspolicydir=@dbuspolicydir@ dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@ dbussessionservicedir=@dbussessionservicedir@
@ -470,11 +472,14 @@ pkgconfigdata_DATA = \
nodist_polkitpolicy_DATA = \ nodist_polkitpolicy_DATA = \
src/org.freedesktop.systemd1.policy src/org.freedesktop.systemd1.policy
dist_polkitpolicy_DATA = \ dist_polkitpolicy_in_files = \
src/org.freedesktop.hostname1.policy \ src/org.freedesktop.hostname1.policy.in \
src/org.freedesktop.locale1.policy \ src/org.freedesktop.locale1.policy.in \
src/org.freedesktop.timedate1.policy \ src/org.freedesktop.timedate1.policy.in \
src/org.freedesktop.login1.policy src/org.freedesktop.login1.policy.in
@INTLTOOL_POLICY_RULE@
polkitpolicy_DATA = $(dist_polkitpolicy_in_files:.policy.in=.policy)
noinst_LTLIBRARIES = \ noinst_LTLIBRARIES = \
libsystemd-basic.la \ libsystemd-basic.la \
@ -1356,6 +1361,7 @@ CLEANFILES = \
$(nodist_man_MANS) \ $(nodist_man_MANS) \
${XML_IN_FILES:.xml.in=.html} \ ${XML_IN_FILES:.xml.in=.html} \
$(pkgconfigdata_DATA) \ $(pkgconfigdata_DATA) \
$(polkitpolicy_DATA) \
src/org.freedesktop.systemd1.policy src/org.freedesktop.systemd1.policy
if HAVE_VALAC if HAVE_VALAC

View File

@ -60,6 +60,7 @@ else
rm -f config.cache rm -f config.cache
libtoolize -c --force libtoolize -c --force
intltoolize -c -f
run_versioned aclocal "$AM_VERSION" -I m4 run_versioned aclocal "$AM_VERSION" -I m4
run_versioned autoconf "$AC_VERSION" -Wall run_versioned autoconf "$AC_VERSION" -Wall
run_versioned autoheader "$AC_VERSION" run_versioned autoheader "$AC_VERSION"

View File

@ -43,6 +43,15 @@ AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
]) ])
# i18n stuff for the PolicyKit policy files
IT_PROG_INTLTOOL([0.40.0])
GETTEXT_PACKAGE=systemd
AC_SUBST(GETTEXT_PACKAGE)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])
AC_PROG_MKDIR_P AC_PROG_MKDIR_P
AC_PROG_LN_S AC_PROG_LN_S
AC_PROG_SED AC_PROG_SED
@ -523,7 +532,7 @@ AC_SUBST([udevrulesdir], [$with_udevrulesdir])
AC_SUBST([pamlibdir], [$with_pamlibdir]) AC_SUBST([pamlibdir], [$with_pamlibdir])
AC_SUBST([rootdir], [$with_rootdir]) AC_SUBST([rootdir], [$with_rootdir])
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile po/Makefile.in])
AC_OUTPUT AC_OUTPUT
echo " echo "

4
po/POTFILES.in Normal file
View File

@ -0,0 +1,4 @@
src/org.freedesktop.hostname1.policy.in
src/org.freedesktop.locale1.policy.in
src/org.freedesktop.login1.policy.in
src/org.freedesktop.timedate1.policy.in

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.hostname1.set-hostname"> <action id="org.freedesktop.hostname1.set-hostname">
<description>Set host name</description> <_description>Set host name</_description>
<message>Authentication is required to set the local host name.</message> <_message>Authentication is required to set the local host name.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -27,8 +27,8 @@
</action> </action>
<action id="org.freedesktop.hostname1.set-static-hostname"> <action id="org.freedesktop.hostname1.set-static-hostname">
<description>Set static host name</description> <_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> <_message>Authentication is required to set the statically configured local host name, as well as the pretty host name.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -37,8 +37,8 @@
</action> </action>
<action id="org.freedesktop.hostname1.set-machine-info"> <action id="org.freedesktop.hostname1.set-machine-info">
<description>Set machine information</description> <_description>Set machine information</_description>
<message>Authentication is required to set local machine information.</message> <_message>Authentication is required to set local machine information.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.locale1.set-locale"> <action id="org.freedesktop.locale1.set-locale">
<description>Set system locale</description> <_description>Set system locale</_description>
<message>Authentication is required to set the system locale.</message> <_message>Authentication is required to set the system locale.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.login1.set-user-linger"> <action id="org.freedesktop.login1.set-user-linger">
<description>Allow non-logged-in users to run programs</description> <_description>Allow non-logged-in users to run programs</_description>
<message>Authentication is required to allow a non-logged-in user to run programs</message> <_message>Authentication is required to allow a non-logged-in user to run programs</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -27,8 +27,8 @@
</action> </action>
<action id="org.freedesktop.login1.attach-device"> <action id="org.freedesktop.login1.attach-device">
<description>Allow attaching devices to seats</description> <_description>Allow attaching devices to seats</_description>
<message>Authentication is required to allow attaching a device to a seat</message> <_message>Authentication is required to allow attaching a device to a seat</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -37,8 +37,8 @@
</action> </action>
<action id="org.freedesktop.login1.flush-devices"> <action id="org.freedesktop.login1.flush-devices">
<description>Flush device to seat attachments</description> <_description>Flush device to seat attachments</_description>
<message>Authentication is required to allow reseting how devices are attached to seats</message> <_message>Authentication is required to allow reseting how devices are attached to seats</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.timedate1.set-time"> <action id="org.freedesktop.timedate1.set-time">
<description>Set system time</description> <_description>Set system time</_description>
<message>Authentication is required to set the system time.</message> <_message>Authentication is required to set the system time.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -27,8 +27,8 @@
</action> </action>
<action id="org.freedesktop.timedate1.set-timezone"> <action id="org.freedesktop.timedate1.set-timezone">
<description>Set system timezone</description> <_description>Set system timezone</_description>
<message>Authentication is required to set the system timezone.</message> <_message>Authentication is required to set the system timezone.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -37,9 +37,9 @@
</action> </action>
<action id="org.freedesktop.timedate1.set-local-rtc"> <action id="org.freedesktop.timedate1.set-local-rtc">
<description>Set RTC to local timezone or UTC</description> <_description>Set RTC to local timezone or UTC</_description>
<message>Authentication is required to control whether <_message>Authentication is required to control whether
the RTC stores the local or UTC time.</message> the RTC stores the local or UTC time.</_message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>