Blame SOURCES/build-Fix-gschema-translations.patch

a2185c
From 80f7e1c144103d52a877f2d42db6a427867591f6 Mon Sep 17 00:00:00 2001
a2185c
From: Ondrej Holy <oholy@redhat.com>
a2185c
Date: Thu, 14 Jun 2018 15:22:15 +0200
a2185c
Subject: [PATCH 2/2] build: Fix gschema translations
a2185c
MIME-Version: 1.0
a2185c
Content-Type: text/plain; charset=UTF-8
a2185c
Content-Transfer-Encoding: 8bit
a2185c
a2185c
After meson port, translations are merged in gschema file, which doesn't
a2185c
work:
a2185c
a2185c
$ LANG=en_US gsettings describe org.gnome.baobab.preferences excluded-uris
a2185c
Una lista d'URI t'as particiones que cal excluir de l'anal�s.
a2185c
a2185c
Translations should not be merged in gschema files and also I don't see any
a2185c
other gschema file with merged translations in /usr/share/glib-2.0/schemas/.
a2185c
Let's install gschema file as is. After this change, translations works as
a2185c
expected.
a2185c
---
a2185c
 data/meson.build                                           | 7 ++-----
a2185c
 ....baobab.gschema.xml.in => org.gnome.baobab.gschema.xml} | 0
a2185c
 po/POTFILES.in                                             | 2 +-
a2185c
 3 files changed, 3 insertions(+), 6 deletions(-)
a2185c
 rename data/{org.gnome.baobab.gschema.xml.in => org.gnome.baobab.gschema.xml} (100%)
a2185c
a2185c
diff --git a/data/meson.build b/data/meson.build
a2185c
index 5b1ef00..98d1d69 100644
a2185c
--- a/data/meson.build
a2185c
+++ b/data/meson.build
a2185c
@@ -22,11 +22,8 @@ appdata_file = i18n.merge_file(
a2185c
   install_dir: join_paths(get_option('datadir'), 'metainfo'),
a2185c
 )
a2185c
 
a2185c
-gschema_file = i18n.merge_file(
a2185c
-  input: 'org.gnome.baobab.gschema.xml.in',
a2185c
-  output: 'org.gnome.baobab.gschema.xml',
a2185c
-  po_dir: '../po',
a2185c
-  install: true,
a2185c
+install_data (
a2185c
+  'org.gnome.baobab.gschema.xml',
a2185c
   install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
a2185c
 )
a2185c
 
a2185c
diff --git a/data/org.gnome.baobab.gschema.xml.in b/data/org.gnome.baobab.gschema.xml
a2185c
similarity index 100%
a2185c
rename from data/org.gnome.baobab.gschema.xml.in
a2185c
rename to data/org.gnome.baobab.gschema.xml
a2185c
diff --git a/po/POTFILES.in b/po/POTFILES.in
a2185c
index 0c9452a..f3d6521 100644
a2185c
--- a/po/POTFILES.in
a2185c
+++ b/po/POTFILES.in
a2185c
@@ -2,7 +2,7 @@
a2185c
 # Please keep this file sorted alphabetically.
a2185c
 data/org.gnome.baobab.appdata.xml.in
a2185c
 data/org.gnome.baobab.desktop.in
a2185c
-data/org.gnome.baobab.gschema.xml.in
a2185c
+data/org.gnome.baobab.gschema.xml
a2185c
 src/baobab-application.vala
a2185c
 src/baobab-cellrenderers.vala
a2185c
 src/baobab-location-list.ui
a2185c
-- 
a2185c
2.17.1
a2185c