Commit 50645b72 authored by Daiki Ueno's avatar Daiki Ueno
Browse files

gsettings: Install gettext ITS rules

Recent gettext has a feature to allow consumer projects to supply their
own string extraction rules for XML files, in ITS format.

Gettext still ships the rule for *.gschema.xml, but it would be better
maintained in the upstream project.

See the gettext documentation for details:
parent ea5ca117
......@@ -746,6 +746,9 @@ gsettings_SOURCES = gsettings-tool.c
schemadir = $(datadir)/glib-2.0/schemas
dist_schema_DATA = gschema.dtd
itsdir = $(datadir)/gettext/its
dist_its_DATA = gschema.loc gschema.its
# ------------------------------------------------------------------------
# gdbus(1) tool
<?xml version="1.0"?>
See the gettext documentation for the file format:
<its:rules xmlns:its=""
<its:translateRule selector="/schemalist" translate="no"/>
<its:translateRule selector="//summary | //description" translate="yes"/>
<its:translateRule selector="//default[@l10n]" translate="yes"/>
<!-- The 'context' attribute should be extracted as msgctxt. -->
<gt:contextRule selector="//default[@context]" contextPointer="@context"/>
<gt:escapeRule selector="//default/@context" escape="no"/>
<!-- Remove whitespaces around the default value. -->
<gt:preserveSpaceRule selector="//default" space="trim"/>
<!-- Extracted strings are consumed by the library and are never
merged back; we don't want to escape special characters. -->
<gt:escapeRule selector="/schemalist" escape="no"/>
<?xml version="1.0"?>
See the gettext documentation for the file format:
<locatingRule name="GSettings" pattern="*.gschema.xml">
<documentRule localName="schemalist" target="gschema.its"/>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment