<?xml version="1.0"?>
<!--
  Copyright (C) 2015-2026 Free Software Foundation, Inc.

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <https://www.gnu.org/licenses/>.

  Written by Daiki Ueno.
-->
<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">

  <!-- Documentation of the Glade 2 XML file format:
       https://download.gnome.org/sources/libglade/2.6/libglade-2.6.4.tar.gz
       file libglade-2.6.4/doc/html/libglade-dtd.html
  -->

  <its:translateRule selector="/glade-interface" translate="no"/>
  <its:translateRule
      selector="/glade-interface//property[@translatable = 'yes'] |
                /glade-interface//atkproperty[@translatable = 'yes'] |
                /glade-interface//atkaction/description"
      translate="yes"/>

  <its:locNoteRule selector="/glade-interface//property[@comments] |
                             /glade-interface//atkproperty[@comments]"
                   locNotePointer="@comments"
                   locNoteType="alert"/>
  <gt:escapeRule selector="/glade-interface/property/@comments |
                           /glade-interface//atkproperty/@comments"
		 escape="no"/>

  <gt:contextRule selector="/glade-interface//property[@context = 'yes'] |
                            /glade-interface//property[@context = 'yes']"
                  contextPointer="substring-before(., '|')"
                  textPointer="substring-after(., '|')"/>

  <its:preserveSpaceRule selector="/glade-interface" space="preserve"/>

  <!-- This rule is redundant since gettext 0.23.  -->
  <gt:escapeRule selector="/glade-interface" escape="no"/>
</its:rules>
