mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 08:28:43 +02:00
glib-compile-schema: Don't accept duplicate docs
This schema compiler was completely ignoring <summary> and <description> tags. Unfortunately, there are modules out there who merge translations for these back in, with xml:lang. And this is giving dconf-editor a hard time. Since this is not how translations of schemas are meant to be done, just reject such schema files. Also add tests exercising the new error handling. https://bugzilla.gnome.org/show_bug.cgi?id=747209
This commit is contained in:
13
gio/tests/schema-tests/summary-xmllang.gschema.xml
Normal file
13
gio/tests/schema-tests/summary-xmllang.gschema.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<schemalist>
|
||||
<schema path="/org/gnome/gnome-screenshot/" id="org.gnome.gnome-screenshot">
|
||||
<key type="b" name="take-window-shot">
|
||||
<default>false</default>
|
||||
<summary>Window-specific screenshot (deprecated)</summary>
|
||||
<summary xml:lang="an">Captura especifica de finestra (obsoleto)</summary>
|
||||
<summary xml:lang="ar">لقطة شاشة مختصّة بنافذة (مُبطل)</summary>
|
||||
<summary xml:lang="as">উইন্ডোৰ ক্ষেত্ৰত নিৰ্দিষ্ট স্ক্ৰিনশ্বট (স্খলিত)</summary>
|
||||
<summary xml:lang="ast">Captura específica de ventana (obsoleto)</summary>
|
||||
<description>Bla</description>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
Reference in New Issue
Block a user