summaryrefslogtreecommitdiff
path: root/gettext
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-01-23 17:41:16 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2018-01-24 20:43:34 +0100
commit535d68425c31eac857903d12edb5d80c8256eab5 (patch)
tree8ab2ae9f4b93e07b0af4d1b3270a176796b4cd77 /gettext
parent12cab686cbfa4c7036fadfb0b5d7abde468bf72e (diff)
downloadgnome-control-center-535d68425c31eac857903d12edb5d80c8256eab5.tar.gz
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
Diffstat (limited to 'gettext')
-rw-r--r--gettext/its/gnome-keybindings.its8
1 files changed, 6 insertions, 2 deletions
diff --git a/gettext/its/gnome-keybindings.its b/gettext/its/gnome-keybindings.its
index 4d4b7c6ee..43ade8766 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"/>