[gtksourceview/wip/lang-specs: 1/3] language-specs: improve an XPath selector in the ITS file



commit 58fd786b5b40d6ddd09363305a275dbda7568fac
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Sep 7 13:10:40 2017 +0200

    language-specs: improve an XPath selector in the ITS file
    
    The _section attribute normally appears only in the <language> element,
    if _section appears somewhere else it should not be translated.

 data/language-specs/language-specs.its |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/language-specs.its b/data/language-specs/language-specs.its
index 279e92b..2db2c94 100644
--- a/data/language-specs/language-specs.its
+++ b/data/language-specs/language-specs.its
@@ -3,5 +3,5 @@
   version="1.0">
 
   <its:translateRule translate="no" selector="/language" />
-  <its:translateRule translate="yes" selector="//@_section" />
+  <its:translateRule translate="yes" selector="/language/@_section" />
 </its:rules>


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