File: gschema.its

package info (click to toggle)
gobject-introspection 1.84.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 72,336 kB
  • sloc: ansic: 562,269; python: 23,692; xml: 16,240; yacc: 1,711; perl: 1,624; sh: 1,139; lex: 510; cpp: 487; makefile: 182; javascript: 15; lisp: 1
file content (25 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0"?>
<!--
See the gettext documentation for the file format:
http://www.gnu.org/software/gettext/manual/html_node/Preparing-ITS-Rules.html
-->
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
           xmlns:gt="https://www.gnu.org/s/gettext/ns/its/extensions/1.0"
           version="2.0">
  <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"/>
</its:rules>