[gnome-dictionary/gnome-3-16] Drop unnecessary double indirection when generating schemas



commit b41e09ea9ac01c487d00b788769d28821070cd72
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Apr 2 18:41:16 2015 +0100

    Drop unnecessary double indirection when generating schemas
    
    We don't need to expand the gettext package symbol: we know we are using
    gnome-dictionary, and we're not going to change it.
    
    We also should take extra-care to have intltool not merge the
    translations into the XML itself, otherwise glib-compile-schemas will
    rightfully complain about invalid XML.

 configure.ac                                       |    1 -
 data/Makefile.am                                   |    3 +++
 ...l.in.in => org.gnome.dictionary.gschema.xml.in} |    2 +-
 po/POTFILES.in                                     |    2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6319e20..442efc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,7 +175,6 @@ AC_CONFIG_FILES([
         libgdict/gdict-version.h
         libgdict/gdict-1.0.pc
         data/Makefile
-        data/org.gnome.dictionary.gschema.xml.in
         docs/Makefile
         docs/reference/Makefile
         docs/reference/gdict/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 103782f..78be666 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -53,4 +53,7 @@ CLEANFILES += $(gsettings_SCHEMAS) \
        
 @GSETTINGS_RULES@
 
+%.gschema.xml: %.gschema.xml.in
+       $(AM_V_GEN) $(INTLTOOL_MERGE) -x -u --no-translations $< $@
+
 -include $(top_srcdir)/git.mk
diff --git a/data/org.gnome.dictionary.gschema.xml.in.in b/data/org.gnome.dictionary.gschema.xml.in
similarity index 97%
rename from data/org.gnome.dictionary.gschema.xml.in.in
rename to data/org.gnome.dictionary.gschema.xml.in
index a04f3b4..cd7312d 100644
--- a/data/org.gnome.dictionary.gschema.xml.in.in
+++ b/data/org.gnome.dictionary.gschema.xml.in
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <schemalist>
-  <schema id="org.gnome.dictionary" path="/org/gnome/dictionary/" gettext-domain="@GETTEXT_PACKAGE@">
+  <schema id="org.gnome.dictionary" path="/org/gnome/dictionary/" gettext-domain="gnome-dictionary">
     <key name="database" type="s">
       <default>'!'</default>
       <_summary>The default database to use</_summary>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9325b6d..490f2ab 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,7 +6,7 @@ data/org.gnome.Dictionary.appdata.xml.in
 [type: gettext/glade]src/gnome-dictionary-preferences.ui
 [type: gettext/glade]src/gnome-dictionary-source.ui
 data/org.gnome.Dictionary.desktop.in.in
-data/org.gnome.dictionary.gschema.xml.in.in
+data/org.gnome.dictionary.gschema.xml
 data/spanish.desktop.in
 data/thai.desktop.in
 libgdict/gdict-client-context.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]