[gnome-user-docs] gnome-help.its: Adding custom ITS rule for <gui>



commit 171654f2684a6938aaaae3407e444e31873517ca
Author: Shaun McCance <shaunm gnome org>
Date:   Fri May 20 15:38:35 2011 -0400

    gnome-help.its: Adding custom ITS rule for <gui>

 gnome-help/C/gnome-help.its                        |   14 ++++++++++++++
 gnome-help/C/nautilus-behavior.page                |    5 +++++
 gnome-help/C/nautilus-display.page                 |    3 +++
 gnome-help/C/nautilus-file-properties-basic.page   |    3 +++
 .../C/nautilus-file-properties-permissions.page    |    3 +++
 gnome-help/C/nautilus-list.page                    |    3 +++
 gnome-help/C/nautilus-preview.page                 |    3 +++
 gnome-help/C/nautilus-views.page                   |    3 +++
 gnome-help/C/net-editcon.page                      |    3 +++
 gnome-help/C/printing-differentsize.page           |    3 +++
 10 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/gnome-help/C/gnome-help.its b/gnome-help/C/gnome-help.its
new file mode 100644
index 0000000..75dfa6f
--- /dev/null
+++ b/gnome-help/C/gnome-help.its
@@ -0,0 +1,14 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its";
+           xmlns:mal="http://projectmallard.org/1.0/";
+           version="1.0">
+  <!--
+  It's common to use a gui element alone as a title for a terms item, or
+  as the only text in a list item. Make it so translators don't have to
+  deal with this extra markup.
+  -->
+  <its:withinTextRule
+      selector="//mal:gui[
+                (parent::mal:title or parent::mal:p) and
+                not(preceding-sibling::node() or following-sibling::node())]"
+      withinText="no"/>
+</its:rules>
diff --git a/gnome-help/C/nautilus-behavior.page b/gnome-help/C/nautilus-behavior.page
index 069d1cd..f4ab04e 100644
--- a/gnome-help/C/nautilus-behavior.page
+++ b/gnome-help/C/nautilus-behavior.page
@@ -19,6 +19,11 @@
       <email>shaunm gnome org</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its";
+               xmlns:mal="http://projectmallard.org/1.0/";
+               its:version="1.0">
+      <its:withinTextRule withinText="no" selector="//mal:item/mal:title/mal:gui[not(preceding-sibling::node() or following-sibling::node())]"/>
+    </its:rules>
   </info>
 
 <title>File manager behavior preferences</title>
diff --git a/gnome-help/C/nautilus-display.page b/gnome-help/C/nautilus-display.page
index d6e685b..06d7549 100644
--- a/gnome-help/C/nautilus-display.page
+++ b/gnome-help/C/nautilus-display.page
@@ -15,6 +15,9 @@
       <email>shaunm gnome org</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
 
 <title>File manager display preferences</title>
diff --git a/gnome-help/C/nautilus-file-properties-basic.page b/gnome-help/C/nautilus-file-properties-basic.page
index e562f3f..4173cc5 100644
--- a/gnome-help/C/nautilus-file-properties-basic.page
+++ b/gnome-help/C/nautilus-file-properties-basic.page
@@ -19,6 +19,9 @@
      <email>shaunm gnome org</email>
    </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
   <title>File properties</title>
 
diff --git a/gnome-help/C/nautilus-file-properties-permissions.page b/gnome-help/C/nautilus-file-properties-permissions.page
index c2367ee..2d99725 100644
--- a/gnome-help/C/nautilus-file-properties-permissions.page
+++ b/gnome-help/C/nautilus-file-properties-permissions.page
@@ -19,6 +19,9 @@
       <email>shaunm gnome org</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
   <title>Set file permissions</title>
 
diff --git a/gnome-help/C/nautilus-list.page b/gnome-help/C/nautilus-list.page
index bab8be0..e3e1545 100644
--- a/gnome-help/C/nautilus-list.page
+++ b/gnome-help/C/nautilus-list.page
@@ -13,6 +13,9 @@
       <email>philbull gmail com</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
 
 <title>File manager list columns preferences</title>
diff --git a/gnome-help/C/nautilus-preview.page b/gnome-help/C/nautilus-preview.page
index 729b87f..1a94489 100644
--- a/gnome-help/C/nautilus-preview.page
+++ b/gnome-help/C/nautilus-preview.page
@@ -14,6 +14,9 @@
       <email>shaunm gnome org</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
 
 <title>File manager preview preferences</title>
diff --git a/gnome-help/C/nautilus-views.page b/gnome-help/C/nautilus-views.page
index 8f908a0..250bff4 100644
--- a/gnome-help/C/nautilus-views.page
+++ b/gnome-help/C/nautilus-views.page
@@ -19,6 +19,9 @@
       <email>shaunm gnome org</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
 
 <title>File manager views preferences</title>
diff --git a/gnome-help/C/net-editcon.page b/gnome-help/C/net-editcon.page
index 6613e00..86d88e0 100644
--- a/gnome-help/C/net-editcon.page
+++ b/gnome-help/C/net-editcon.page
@@ -18,6 +18,9 @@
 
     <desc>Learn what the options on the wireless connection editing screen mean.</desc>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
 
 <title>Edit a wireless connection</title>
diff --git a/gnome-help/C/printing-differentsize.page b/gnome-help/C/printing-differentsize.page
index 9bc40bf..44170c1 100644
--- a/gnome-help/C/printing-differentsize.page
+++ b/gnome-help/C/printing-differentsize.page
@@ -17,6 +17,9 @@
       <email>jwcampbell gmail com</email>
     </credit>
     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
+    <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0"
+               xmlns:xlink="http://www.w3.org/1999/xlink";
+               xlink:type="simple" xlink:href="gnome-help.its"/>
   </info>
 
 <title>Change the paper size when printing</title>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]