diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-09-11 22:05:40 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-01-23 10:49:31 +0100 |
commit | 0dd386f405f49105880041202eeb270959ec3268 (patch) | |
tree | 64496538c87daec35a16a88293141b3fe0543247 /gettext | |
parent | 811ba929d4986787277f685a13a43e47c9996236 (diff) | |
download | gnome-control-center-0dd386f405f49105880041202eeb270959ec3268.tar.gz |
build: Migrate from Intltool to Gettext
Recent versions of Gettext are able to translate several formats
that are used in GNOME applications. This patch migrates from
Intltool to Gettext by using meson's i18n features.
https://bugzilla.gnome.org/show_bug.cgi?id=787588
Diffstat (limited to 'gettext')
-rw-r--r-- | gettext/its/gnome-keybindings.its | 11 | ||||
-rw-r--r-- | gettext/its/gnome-keybindings.loc | 6 | ||||
-rw-r--r-- | gettext/its/sounds.its | 6 | ||||
-rw-r--r-- | gettext/its/sounds.loc | 6 |
4 files changed, 29 insertions, 0 deletions
diff --git a/gettext/its/gnome-keybindings.its b/gettext/its/gnome-keybindings.its new file mode 100644 index 000000000..4d4b7c6ee --- /dev/null +++ b/gettext/its/gnome-keybindings.its @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" 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/@description" translate="yes"/> + + <!-- 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"/> +</its:rules> diff --git a/gettext/its/gnome-keybindings.loc b/gettext/its/gnome-keybindings.loc new file mode 100644 index 000000000..b75fb688c --- /dev/null +++ b/gettext/its/gnome-keybindings.loc @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<locatingRules> + <locatingRule name="GnomeKeybindings" pattern="*.xml"> + <documentRule localName="KeyListEntries" target="gnome-keybindings.its"/> + </locatingRule> +</locatingRules> diff --git a/gettext/its/sounds.its b/gettext/its/sounds.its new file mode 100644 index 000000000..187c00007 --- /dev/null +++ b/gettext/its/sounds.its @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" + version="2.0"> + <its:translateRule selector="/sounds" translate="no"/> + <its:translateRule selector="//name" translate="yes"/> +</its:rules> diff --git a/gettext/its/sounds.loc b/gettext/its/sounds.loc new file mode 100644 index 000000000..c92565dca --- /dev/null +++ b/gettext/its/sounds.loc @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<locatingRules> + <locatingRule name="sounds" pattern="*.xml"> + <documentRule localName="sounds" target="sounds.its"/> + </locatingRule> +</locatingRules> |