aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-18 18:30:29 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-19 00:02:13 -0300
commitd95d769562653a7771360e53fb31fa969f66ec8a (patch)
tree3b8bc7c21dd3e531cd8c72ba11b4447856cd7115
parentf835fb0566fecd0336159cae9f04425745613870 (diff)
Allow translations to data/org.gnome.camorama.gschema.xml
Now that we're using GSettings for the schema, let's add it to the translation logic. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--data/Makefile.am3
-rw-r--r--data/Makefile.in3
-rw-r--r--data/org.gnome.camorama.gschema.xml.in (renamed from data/org.gnome.camorama.gschema.xml)3
-rw-r--r--po/POTFILES.in1
4 files changed, 9 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index c7052e2..0cac3b1 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -16,6 +16,9 @@ gsettings_SCHEMAS = org.gnome.camorama.gschema.xml
@GSETTINGS_RULES@
+$(gsettings_SCHEMAS) : $(gsettings_SCHEMAS).in
+ $(AM_V_GEN) $(SED) -e 's^\@datadir\@^$(datadir)^g' -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
+
# For the sake of some users
user-install: $(app_DATA) $(keys_DATA)
mkdir -p ~/.gnome/application-registry ~/.gnome/mime-info/
diff --git a/data/Makefile.in b/data/Makefile.in
index 7347fdb..6ec95e5 100644
--- a/data/Makefile.in
+++ b/data/Makefile.in
@@ -522,6 +522,9 @@ uninstall-am: uninstall-gladeDATA uninstall-stuffDATA
@GSETTINGS_RULES@
+$(gsettings_SCHEMAS) : $(gsettings_SCHEMAS).in
+ $(AM_V_GEN) $(SED) -e 's^\@datadir\@^$(datadir)^g' -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
+
# For the sake of some users
user-install: $(app_DATA) $(keys_DATA)
mkdir -p ~/.gnome/application-registry ~/.gnome/mime-info/
diff --git a/data/org.gnome.camorama.gschema.xml b/data/org.gnome.camorama.gschema.xml.in
index f21147c..67ee690 100644
--- a/data/org.gnome.camorama.gschema.xml
+++ b/data/org.gnome.camorama.gschema.xml.in
@@ -1,4 +1,5 @@
-<schemalist>
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="camorama">
<schema id="org.gnome.camorama" path="/org/gnome/camorama/">
<key name="append-ts-to-file" type="b">
<default>true</default>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1d29fe9..bf6fc75 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -5,6 +5,7 @@ camorama.desktop.in
data/camorama-gtk2.ui
data/camorama-gtk3.ui
data/camorama-gtk4.ui
+data/org.gnome.camorama.gschema.xml.in
src/callbacks.c
src/camorama-filter-chain.c
src/camorama-filter-laplace.c

Privacy Policy