[gnome-control-center] build: Fix translation context missing from keyboard entries



commit 535d68425c31eac857903d12edb5d80c8256eab5
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 23 17:41:16 2018 +0100

    build: Fix translation context missing from keyboard entries
    
    Extract the message context from 01-launchers.xml.in so it's available
    for translation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787588

 gettext/its/gnome-keybindings.its |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gettext/its/gnome-keybindings.its b/gettext/its/gnome-keybindings.its
index 4d4b7c6..43ade87 100644
--- a/gettext/its/gnome-keybindings.its
+++ b/gettext/its/gnome-keybindings.its
@@ -1,10 +1,14 @@
 <?xml version="1.0"?>
-<its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="2.0">
+<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="/KeyListEntries" translate="no"/>
   <its:translateRule selector="/KeyListEntries/@name" translate="yes"/>
-  <its:translateRule selector="//KeyListEntry" translate="no"/>
+  <its:translateRule selector="//KeyListEntry" translate="yes"/>
   <its:translateRule selector="//KeyListEntry/@description" translate="yes"/>
 
+  <gt:contextRule selector="//KeyListEntry[@msgctxt]" contextPointer="@msgctxt"/>
+
   <!-- Extracted strings are consumed by the library and are never
        merged back; we don't want to escape special characters.  -->
   <gt:escapeRule selector="/KeyListEntries" escape="no"/>


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