Commit c8a7bb6c authored by Matthias Clasen's avatar Matthias Clasen

Merge GSettings tests

parent 265ca3db
......@@ -16,7 +16,6 @@ progs_ldadd = \
$(top_builddir)/gobject/ \
memory-input-stream \
memory-output-stream \
......@@ -32,7 +31,8 @@ TEST_PROGS += \
filter-streams \
simple-async-result \
srvtarget \
contexts \
resolver \
......@@ -133,4 +133,19 @@ contexts_SOURCES = contexts.c
contexts_LDADD = $(progs_ldadd) \
gsettings_SOURCES = gsettings.c gschemas.compiled
gsettings_LDADD = $(progs_ldadd)
EXTRA_DIST += org.gtk.test.gschema org.gtk.test.gschema.xml de.po
BUILT_SOURCES = gschemas.compiled de.po
$(MSGFMT) -o de.po; \
cp -f de/LC_MESSAGES
gschemas.compiled: *.gschema
$(top_builddir)/gio/gschema-compile --targetdir=${bulddir} ${srcdir}
DISTCLEAN_FILES = applications/mimeinfo.cache
msgid ""
msgstr ""
"Project-Id-Version: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: \n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
msgid "\"Unnamed\""
msgstr "\"Unbenannt\""
msgctxt "keyboard label"
msgid "\"BackSpace\""
msgstr "\"Löschen\""
This diff is collapsed.
schema org.gtk.test:
gettext-domain: test
path: /tests/
key greeting = @s "Hello, earthlings"
l10n: messages
summary: A greeting
description: Greeting of the invading martians
key farewell = @s "So long"
l10n: messages
child basic-types:
key test-boolean = @b true
key test-byte = @y 25
key test-int16 = @n -1234
key test-uint16 = @q 1234
key test-int32 = @i -123456
key test-uint32 = @u 123456
key test-int64 = @x -123456789
key test-uint64 = @t 123456789
key test-double = @d 123.456
key test-string = @s "a string, it seems"
key test-objectpath = @o "/a/object/path"
child complex-types:
key test-tuple = @(s(ii)) ("one",(2,3))
key test-array = @ai [0,1,2,3,4,5]
child localized:
gettext-domain: glib20
key error-message = @s "Unnamed"
l10n: messages
child binding:
key bool = @b false
key int = @i 0
key double = @d 0
key string = @s ""
<schema id="org.gtk.test" path="/tests/" gettext-domain="test">
<key name="greeting" type="s">
<default l10n="messages">"Hello, earthlings"</default>
<summary>A greeting</summary>
Greeting of the invading martians
<key name="farewell" type="s">
<default l10n="messages">"So long"</default>
<child name='basic-types' schema='org.gtk.test.basic-types'/>
<child name='complex-types' schema='org.gtk.test.complex-types'/>
<child name='localized' schema='org.gtk.test.localized'/>
<schema id="org.gtk.test.basic-types" path="/tests/basic-types/">
<key name="test-boolean" type="b">
<key name="test-byte" type="y">
<key name="test-int16" type="n">
<key name="test-uint16" type="q">
<key name="test-int32" type="i">
<key name="test-uint32" type="u">
<key name="test-int64" type="x">
<key name="test-uint64" type="t">
<key name="test-double" type="d">
<key name="test-string" type="s">
<default>"a string, it seems"</default>
<key name="test-objectpath" type="o">
<schema id="org.gtk.test.complex-types" path="/tests/complex-types/">
<key name="test-tuple" type="(s(ii))">
<key name="test-array" type="ai">
<schema id="org.gtk.test.localized" path="/tests/localized/" gettext-domain="test">
<key name="error-message" type="s">
<default l10n="messages">"Unnamed"</default>
<key name="backspace" type="s">
<default l10n="messages" context="keyboard label">"BackSpace"</default>
<schema id="org.gtk.test.binding" path="/tests/binding/">
<key name="bool" type="b">
<key name="int" type="i">
<key name="double" type="d">
<key name="string" type="s">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment