Revision 1e38e6f53f0c0549d3d75ba76899f53b7b28f2ea authored by Matthias Clasen on 17 January 2023, 22:56:41 UTC, committed by Matthias Clasen on 18 January 2023, 01:56:08 UTC
Move the preallocation into the GString struct,
and add g_string_init and g_string_clear to
enable on-stack use of GString.
1 parent 1aa5304
Raw File
gschema.its
<?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>
back to top