diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2020-10-28 12:02:04 +0100 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2021-07-29 17:16:35 +0200 |
commit | 96c6fc83538fc28d1b3923b8be1eba2648f30e28 (patch) | |
tree | 319bfbd0c8fe86c3d16e97cb09267507abff2563 /gettext | |
parent | e336bf86d8b8489a4643500925e4da4eeb9000ba (diff) | |
download | polkit-96c6fc83538fc28d1b3923b8be1eba2648f30e28.tar.gz |
build: Migrate from Intltool to Gettext
Recent versions of Gettext are able to translate several formats
that are used in GNOME applications.
This migrates from Intltool to Gettext both autotools and meson
build systems.
Diffstat (limited to 'gettext')
-rw-r--r-- | gettext/Makefile.am | 4 | ||||
-rw-r--r-- | gettext/its/Makefile.am | 4 | ||||
-rw-r--r-- | gettext/its/polkit.its | 8 | ||||
-rw-r--r-- | gettext/its/polkit.loc | 6 |
4 files changed, 22 insertions, 0 deletions
diff --git a/gettext/Makefile.am b/gettext/Makefile.am new file mode 100644 index 0000000..3c088f3 --- /dev/null +++ b/gettext/Makefile.am @@ -0,0 +1,4 @@ + +SUBDIRS = its + +-include $(top_srcdir)/git.mk diff --git a/gettext/its/Makefile.am b/gettext/its/Makefile.am new file mode 100644 index 0000000..68d6d7a --- /dev/null +++ b/gettext/its/Makefile.am @@ -0,0 +1,4 @@ +itsdir = $(datadir)/gettext/its +dist_its_DATA = polkit.loc polkit.its + +-include $(top_srcdir)/git.mk diff --git a/gettext/its/polkit.its b/gettext/its/polkit.its new file mode 100644 index 0000000..1c37e6b --- /dev/null +++ b/gettext/its/polkit.its @@ -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> diff --git a/gettext/its/polkit.loc b/gettext/its/polkit.loc new file mode 100644 index 0000000..c7427ec --- /dev/null +++ b/gettext/its/polkit.loc @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<locatingRules> + <locatingRule name="polkit policy" pattern="*.policy"> + <documentRule localName="policyconfig" target="polkit.its"/> + </locatingRule> +</locatingRules> |