[gedit-plugins] Made plugin schemas translatable
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Made plugin schemas translatable
- Date: Fri, 21 May 2010 16:12:47 +0000 (UTC)
commit 4e1620fad29ed6d0dc921a8a7e50c99daa2c722f
Author: Garrett Regier <alias301 gmail com>
Date: Fri May 21 09:10:19 2010 -0700
Made plugin schemas translatable
configure.ac | 3 +-
plugins/drawspaces/Makefile.am | 13 +++---
.../org.gnome.gedit.drawspaces.gschema.xml | 28 ------------
.../org.gnome.gedit.drawspaces.gschema.xml.in.in | 44 ++++++++++++++++++++
po/POTFILES.in | 1 +
5 files changed, 53 insertions(+), 36 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a64c83d..dddfb1f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,7 +74,7 @@ PKG_CHECK_EXISTS([gtk+-3.0 >= 2.90],
])
PKG_CHECK_MODULES(GEDIT, [
- glib-2.0 >= 2.13.0
+ glib-2.0 >= 2.25.6
gio-2.0 >= 2.25.4
$GTK_REQUIRED >= $GTK_REQUIRED_VERSION
gconf-2.0 >= 1.1.11
@@ -450,6 +450,7 @@ plugins/commander/modules/Makefile
plugins/commander/modules/find/Makefile
plugins/drawspaces/Makefile
plugins/drawspaces/drawspaces.gedit-plugin.desktop.in
+plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml.in
plugins/joinlines/Makefile
plugins/joinlines/joinlines.gedit-plugin.desktop.in
plugins/multiedit/Makefile
diff --git a/plugins/drawspaces/Makefile.am b/plugins/drawspaces/Makefile.am
index d067a7b..42a6709 100644
--- a/plugins/drawspaces/Makefile.am
+++ b/plugins/drawspaces/Makefile.am
@@ -28,15 +28,14 @@ plugin_in_files = drawspaces.gedit-plugin.desktop.in
plugin_DATA = $(plugin_in_files:.gedit-plugin.desktop.in=.gedit-plugin)
gsettingsschema_DATA = org.gnome.gedit.drawspaces.gschema.xml
+gsettingsschema_SCHEMAS = $(gsettingsschema_DATA)
-if GSETTINGS_SCHEMAS_INSTALL
-install-data-hook:
- $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
-endif
+ INTLTOOL_XML_NOMERGE_RULE@
+ GSETTINGS_RULES@
-EXTRA_DIST = $(plugin_in_files) $(ui_DATA) $(schemas_in_files)
+EXTRA_DIST = $(plugin_in_files) $(ui_DATA) $(gsettingsschema_SCHEMAS)
-CLEANFILES = $(plugin_DATA) $(schemas_DATA)
-DISTCLEANFILES = $(plugin_DATA) $(schemas_DATA)
+CLEANFILES = $(plugin_DATA)
+DISTCLEANFILES = $(plugin_DATA)
-include $(top_srcdir)/git.mk
diff --git a/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml.in.in b/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml.in.in
new file mode 100644
index 0000000..3bfc5fa
--- /dev/null
+++ b/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml.in.in
@@ -0,0 +1,44 @@
+<schemalist>
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.gedit.plugins.drawspaces" path="/apps/gedit/plugins/drawspaces/">
+ <key name="enable" type="b">
+ <default>true</default>
+ <_summary>Enabled</_summary>
+ <_description>If TRUE drawing will be enabled.</_description>
+ </key>
+ <key name="draw-tabs" type="b">
+ <default>true</default>
+ <_summary>Draw Tabs</_summary>
+ <_description>If TRUE tabs will be drawn.</_description>
+ </key>
+ <key name="draw-spaces" type="b">
+ <default>true</default>
+ <_summary>Draw Spaces</_summary>
+ <_description>If TRUE spaces will be drawn.</_description>
+ </key>
+ <key name="draw-newline" type="b">
+ <default>false</default>
+ <_summary>Draw Newline</_summary>
+ <_description>If TRUE newlines will be drawn.</_description>
+ </key>
+ <key name="draw-nbsp" type="b">
+ <default>false</default>
+ <_summary>Draw Non-Breaking Spaces</_summary>
+ <_description>If TRUE non-breaking spaces will be drawn.</_description>
+ </key>
+ <key name="draw-leading" type="b">
+ <default>true</default>
+ <_summary>Draw Leading Space</_summary>
+ <_description>If TRUE leading space will be drawn.</_description>
+ </key>
+ <key name="draw-text" type="b">
+ <default>true</default>
+ <_summary>Draw Text Space</_summary>
+ <_description>IF TRUE spaces in text will be drawn.</_description>
+ </key>
+ <key name="draw-trailing" type="b">
+ <default>true</default>
+ <_summary>Draw Trailing Space</_summary>
+ <_description>If TRUE trailing spaces will be drawn.</_description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 4039a7c..a5fd753 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -11,6 +11,7 @@ plugins/commander/commander.gedit-plugin.desktop.in.in
plugins/drawspaces/drawspaces.gedit-plugin.desktop.in.in
[type: gettext/glade]plugins/drawspaces/drawspaces.ui
plugins/drawspaces/gedit-drawspaces-plugin.c
+plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml.in.in
plugins/joinlines/joinlines.gedit-plugin.desktop.in.in
plugins/joinlines/joinlines.py
plugins/multiedit/multiedit.gedit-plugin.desktop.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]