summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-09 21:01:21 +0200
committerStefano Karapetsas <[email protected]>2012-10-09 21:01:21 +0200
commit0a8b47229c6b453556a40b30c84db8f238e3b887 (patch)
tree9043243cf5a516b99a14cc0a12bc8c5dcbf40f5a
parent4900d39a6b133939af115e188d4010731426848d (diff)
downloadlibmatekbd-0a8b47229c6b453556a40b30c84db8f238e3b887.tar.bz2
libmatekbd-0a8b47229c6b453556a40b30c84db8f238e3b887.tar.xz
add internationalization support for gsettings schemalibmatekbd-1.5.0
-rw-r--r--libmatekbd/Makefile.am16
-rw-r--r--libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml119
-rw-r--r--libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml.in.in119
3 files changed, 128 insertions, 126 deletions
diff --git a/libmatekbd/Makefile.am b/libmatekbd/Makefile.am
index b27a6d4..1a5932a 100644
--- a/libmatekbd/Makefile.am
+++ b/libmatekbd/Makefile.am
@@ -57,7 +57,7 @@ BUILT_SOURCES = matekbd-indicator-marshal.c \
matekbd-keyboard-drawing-marshal.c \
matekbd-keyboard-drawing-marshal.h
-CLEANFILES = $(BUILT_SOURCES) $(schema_DATA)
+CLEANFILES = $(BUILT_SOURCES)
matekbdincdir = $(includedir)/libmatekbd
matekbdinc_HEADERS = \
@@ -71,14 +71,19 @@ matekbdinc_HEADERS = \
@INTLTOOL_DESKTOP_RULE@
-@INTLTOOL_SCHEMAS_RULE@
-
noinst_HEADERS = $(extra_nih) \
matekbd-config-private.h
+@INTLTOOL_XML_NOMERGE_RULE@
+gsettings_SCHEMAS = org.mate.peripherals-keyboard-xkb.gschema.xml
+@GSETTINGS_RULES@
+
+%.gschema.xml.in: %.gschema.xml.in.in Makefile
+ $(AM_V_GEN) $(SED) -e 's^\@datadir\@^$(datadir)^g' -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
+
EXTRA_DIST = matekbd-indicator-marshal.list \
matekbd-keyboard-drawing-marshal.list \
- $(schema_in_files) $(ui_DATA)
+ $(gsettings_SCHEMAS) $(ui_DATA)
GLIB_GENMARSHAL = $(shell pkg-config --variable=glib_genmarshal glib-2.0)
@@ -99,6 +104,3 @@ matekbd-keyboard-drawing-marshal.c: matekbd-keyboard-drawing-marshal.h
--body > matekbd-keyboard-drawing-marshal.tmp \
&& mv matekbd-keyboard-drawing-marshal.tmp matekbd-keyboard-drawing-marshal.c ) \
|| ( rm -f matekbd-keyboard-drawing-marshal.tmp && exit 1 )
-
-gsettings_SCHEMAS = org.mate.peripherals-keyboard-xkb.gschema.xml
-@GSETTINGS_RULES@
diff --git a/libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml b/libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml
deleted file mode 100644
index 7d89db2..0000000
--- a/libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-<schemalist>
- <schema id="org.mate.peripherals-keyboard-xkb" path="/desktop/mate/peripherals/keyboard/">
- <child name="kbd" schema="org.mate.peripherals-keyboard-xkb.kbd"/>
- <child name="general" schema="org.mate.peripherals-keyboard-xkb.general"/>
- <child name="preview" schema="org.mate.peripherals-keyboard-xkb.preview"/>
- <child name="indicator" schema="org.mate.peripherals-keyboard-xkb.indicator"/>
- </schema>
- <schema id="org.mate.peripherals-keyboard-xkb.kbd" path="/desktop/mate/peripherals/keyboard/kbd/">
- <key name="model" type="s">
- <default>''</default>
- <summary>Keyboard model</summary>
- <description>keyboard model</description>
- </key>
- <key name="layouts" type="as">
- <default>[]</default>
- <summary>Keyboard layout</summary>
- <description>keyboard layout</description>
- </key>
- <key name="options" type="as">
- <default>[]</default>
- <summary>Keyboard options</summary>
- <description>Keyboard options</description>
- </key>
- </schema>
- <schema id="org.mate.peripherals-keyboard-xkb.general" path="/desktop/mate/peripherals/keyboard/general/">
- <key name="update-handlers" type="as">
- <default>[]</default>
- <summary>Keyboard Update Handlers</summary>
- <description>A collection of scripts to run whenever the keyboard state is reloaded. Useful for re-applying xmodmap based adjustments</description>
- </key>
- <key name="known-file-list" type="as">
- <default>[]</default>
- <summary>modmap file list</summary>
- <description>A list of modmap files available in the $HOME directory.</description>
- </key>
- <key name="default-group" type="i">
- <default>-1</default>
- <summary>Default group, assigned on window creation</summary>
- <description>Default group, assigned on window creation</description>
- </key>
- <key name="group-per-window" type="b">
- <default>true</default>
- <summary>Keep and manage separate group per window</summary>
- <description>Keep and manage separate group per window</description>
- </key>
- <key name="handle-indicators" type="b">
- <default>false</default>
- <summary>Save/restore indicators together with layout groups</summary>
- <description>Save/restore indicators together with layout groups</description>
- </key>
- <key name="layout-names-as-group-names" type="b">
- <default>true</default>
- <summary>Show layout names instead of group names</summary>
- <description>Show layout names instead of group names (only for versions of XFree supporting multiple layouts)</description>
- </key>
- <key name="load-extra-items" type="b">
- <default>false</default>
- <summary>Load extra configuration items</summary>
- <description>Load exotic, rarely used layouts and options</description>
- </key>
- <key name="disable-sysconfig-changed-warning" type="b">
- <default>false</default>
- <summary>Suppress the "X sysconfig changed" warning message</summary>
- <description>Suppress the "X sysconfig changed" warning message</description>
- </key>
- </schema>
- <schema id="org.mate.peripherals-keyboard-xkb.preview" path="/desktop/mate/peripherals/keyboard/preview/">
- <key name="x" type="i">
- <default>-1</default>
- <summary>The Keyboard Preview, X offset</summary>
- <description>The Keyboard Preview, X offset</description>
- </key>
- <key name="y" type="i">
- <default>-1</default>
- <summary>The Keyboard Preview, Y offset</summary>
- <description>The Keyboard Preview, Y offset</description>
- </key>
- <key name="width" type="i">
- <default>-1</default>
- <summary>The Keyboard Preview, width</summary>
- <description>The Keyboard Preview, width</description>
- </key>
- <key name="height" type="i">
- <default>-1</default>
- <summary>The Keyboard Preview, height</summary>
- <description>The Keyboard Preview, height</description>
- </key>
- </schema>
- <schema id="org.mate.peripherals-keyboard-xkb.indicator" path="/desktop/mate/peripherals/keyboard/indicator/">
- <key name="secondary" type="i">
- <default>0</default>
- <summary>Secondary groups</summary>
- <description>Secondary groups</description>
- </key>
- <key name="show-flags" type="b">
- <default>false</default>
- </key>
- <key name="font-family" type="s">
- <default>''</default>
- <summary>The font family</summary>
- <description>The font family for the layout indicator</description>
- </key>
- <key name="font-size" type="i">
- <default>10</default>
- <summary>The font size</summary>
- <description>The font size for the layout indicator</description>
- </key>
- <key name="foreground-color" type="s">
- <default>''</default>
- <summary>The foreground color</summary>
- <description>The foreground color for the layout indicator</description>
- </key>
- <key name="background-color" type="s">
- <default>''</default>
- <summary>The background color</summary>
- <description>The background color for the layout indicator</description>
- </key>
- </schema>
-</schemalist>
diff --git a/libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml.in.in b/libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml.in.in
new file mode 100644
index 0000000..09edc91
--- /dev/null
+++ b/libmatekbd/org.mate.peripherals-keyboard-xkb.gschema.xml.in.in
@@ -0,0 +1,119 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.peripherals-keyboard-xkb" path="/desktop/mate/peripherals/keyboard/">
+ <child name="kbd" schema="org.mate.peripherals-keyboard-xkb.kbd"/>
+ <child name="general" schema="org.mate.peripherals-keyboard-xkb.general"/>
+ <child name="preview" schema="org.mate.peripherals-keyboard-xkb.preview"/>
+ <child name="indicator" schema="org.mate.peripherals-keyboard-xkb.indicator"/>
+ </schema>
+ <schema id="org.mate.peripherals-keyboard-xkb.kbd" path="/desktop/mate/peripherals/keyboard/kbd/">
+ <key name="model" type="s">
+ <default>''</default>
+ <_summary>Keyboard model</_summary>
+ <_description>keyboard model</_description>
+ </key>
+ <key name="layouts" type="as">
+ <default>[]</default>
+ <_summary>Keyboard layout</_summary>
+ <_description>keyboard layout</_description>
+ </key>
+ <key name="options" type="as">
+ <default>[]</default>
+ <_summary>Keyboard options</_summary>
+ <_description>Keyboard options</_description>
+ </key>
+ </schema>
+ <schema id="org.mate.peripherals-keyboard-xkb.general" path="/desktop/mate/peripherals/keyboard/general/">
+ <key name="update-handlers" type="as">
+ <default>[]</default>
+ <_summary>Keyboard Update Handlers</_summary>
+ <_description>A collection of scripts to run whenever the keyboard state is reloaded. Useful for re-applying xmodmap based adjustments</_description>
+ </key>
+ <key name="known-file-list" type="as">
+ <default>[]</default>
+ <_summary>modmap file list</_summary>
+ <_description>A list of modmap files available in the $HOME directory.</_description>
+ </key>
+ <key name="default-group" type="i">
+ <default>-1</default>
+ <_summary>Default group, assigned on window creation</_summary>
+ <_description>Default group, assigned on window creation</_description>
+ </key>
+ <key name="group-per-window" type="b">
+ <default>true</default>
+ <_summary>Keep and manage separate group per window</_summary>
+ <_description>Keep and manage separate group per window</_description>
+ </key>
+ <key name="handle-indicators" type="b">
+ <default>false</default>
+ <_summary>Save/restore indicators together with layout groups</_summary>
+ <_description>Save/restore indicators together with layout groups</_description>
+ </key>
+ <key name="layout-names-as-group-names" type="b">
+ <default>true</default>
+ <_summary>Show layout names instead of group names</_summary>
+ <_description>Show layout names instead of group names (only for versions of XFree supporting multiple layouts)</_description>
+ </key>
+ <key name="load-extra-items" type="b">
+ <default>false</default>
+ <_summary>Load extra configuration items</_summary>
+ <_description>Load exotic, rarely used layouts and options</_description>
+ </key>
+ <key name="disable-sysconfig-changed-warning" type="b">
+ <default>false</default>
+ <_summary>Suppress the "X sysconfig changed" warning message</_summary>
+ <_description>Suppress the "X sysconfig changed" warning message</_description>
+ </key>
+ </schema>
+ <schema id="org.mate.peripherals-keyboard-xkb.preview" path="/desktop/mate/peripherals/keyboard/preview/">
+ <key name="x" type="i">
+ <default>-1</default>
+ <_summary>The Keyboard Preview, X offset</_summary>
+ <_description>The Keyboard Preview, X offset</_description>
+ </key>
+ <key name="y" type="i">
+ <default>-1</default>
+ <_summary>The Keyboard Preview, Y offset</_summary>
+ <_description>The Keyboard Preview, Y offset</_description>
+ </key>
+ <key name="width" type="i">
+ <default>-1</default>
+ <_summary>The Keyboard Preview, width</_summary>
+ <_description>The Keyboard Preview, width</_description>
+ </key>
+ <key name="height" type="i">
+ <default>-1</default>
+ <_summary>The Keyboard Preview, height</_summary>
+ <_description>The Keyboard Preview, height</_description>
+ </key>
+ </schema>
+ <schema id="org.mate.peripherals-keyboard-xkb.indicator" path="/desktop/mate/peripherals/keyboard/indicator/">
+ <key name="secondary" type="i">
+ <default>0</default>
+ <_summary>Secondary groups</_summary>
+ <_description>Secondary groups</_description>
+ </key>
+ <key name="show-flags" type="b">
+ <default>false</default>
+ </key>
+ <key name="font-family" type="s">
+ <default>''</default>
+ <_summary>The font family</_summary>
+ <_description>The font family for the layout indicator</_description>
+ </key>
+ <key name="font-size" type="i">
+ <default>10</default>
+ <_summary>The font size</_summary>
+ <_description>The font size for the layout indicator</_description>
+ </key>
+ <key name="foreground-color" type="s">
+ <default>''</default>
+ <_summary>The foreground color</_summary>
+ <_description>The foreground color for the layout indicator</_description>
+ </key>
+ <key name="background-color" type="s">
+ <default>''</default>
+ <_summary>The background color</_summary>
+ <_description>The background color for the layout indicator</_description>
+ </key>
+ </schema>
+</schemalist>