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

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