summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-02-11 01:13:52 +0100
committerStefano Karapetsas <[email protected]>2013-02-11 01:13:52 +0100
commit7c6ba368d9480c7d4d49646e9ef0b4cad95098a5 (patch)
tree522056738aeb40e4e1eab96db78d81b268e3d875
parenta5e0ae7d5e87d467a2f62a058171537377f6411f (diff)
downloadmate-notification-daemon-7c6ba368d9480c7d4d49646e9ef0b4cad95098a5.tar.bz2
mate-notification-daemon-7c6ba368d9480c7d4d49646e9ef0b4cad95098a5.tar.xz
Make GSettings schema translatable
-rw-r--r--data/Makefile.am6
-rw-r--r--data/org.mate.NotificationDaemon.gschema.xml34
-rw-r--r--data/org.mate.NotificationDaemon.gschema.xml.in.in34
3 files changed, 39 insertions, 35 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 27fcf62..dd8beb6 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -17,13 +17,17 @@ servicedir = $(DBUS_SERVICES_DIR)
service_DATA = org.freedesktop.mate.Notifications.service
gsettings_SCHEMAS = org.mate.NotificationDaemon.gschema.xml
+@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
+%.gschema.xml.in: %.gschema.xml.in.in Makefile
+ $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
+
convertdir = $(datadir)/MateConf/gsettings
convert_DATA = mate-notification-daemon.convert
EXTRA_DIST = \
- $(gsettings_SCHEMAS) \
+ $(gsettings_SCHEMAS_in_in) \
$(convert_DATA) \
$(service_DATA) \
$(icon16_DATA) \
diff --git a/data/org.mate.NotificationDaemon.gschema.xml b/data/org.mate.NotificationDaemon.gschema.xml
deleted file mode 100644
index 4331996..0000000
--- a/data/org.mate.NotificationDaemon.gschema.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<schemalist>
- <schema id="org.mate.NotificationDaemon" path="/org/mate/notification-daemon/">
- <key name="popup-location" type="s">
- <default>'top_right'</default>
- <summary>Popup location</summary>
- <description>Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right"</description>
- </key>
- <key name="use-active-monitor" type="b">
- <default>true</default>
- <summary>Use Active Monitor</summary>
- <description>Display the notification on the active monitor.</description>
- </key>
- <key name="monitor-number" type="i">
- <default>0</default>
- <summary>Monitor</summary>
- <description>Monitor to display the notification. Allowed values: -1 (display on active monitor) and 0 to n - 1 where n is the number of monitors.</description>
- </key>
- <key name="theme" type="s">
- <default>'nodoka'</default>
- <summary>Current theme</summary>
- <description>The theme used when displaying notifications.</description>
- </key>
- <key name="sound-enabled" type="b">
- <default>true</default>
- <summary>Sound Enabled</summary>
- <description>Turns on and off sound support for notifications.</description>
- </key>
- <key name="default-sound" type="s">
- <default>''</default>
- <summary>Default Sound</summary>
- <description>The default sound file used unless a notification supplies the 'sound-file' or 'suppress-sound' hint. Leave empty for no default sound.</description>
- </key>
- </schema>
-</schemalist>
diff --git a/data/org.mate.NotificationDaemon.gschema.xml.in.in b/data/org.mate.NotificationDaemon.gschema.xml.in.in
new file mode 100644
index 0000000..d6f1857
--- /dev/null
+++ b/data/org.mate.NotificationDaemon.gschema.xml.in.in
@@ -0,0 +1,34 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.NotificationDaemon" path="/org/mate/notification-daemon/">
+ <key name="popup-location" type="s">
+ <default>'top_right'</default>
+ <_summary>Popup location</_summary>
+ <_description>Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right"</_description>
+ </key>
+ <key name="use-active-monitor" type="b">
+ <default>true</default>
+ <_summary>Use Active Monitor</_summary>
+ <_description>Display the notification on the active monitor.</_description>
+ </key>
+ <key name="monitor-number" type="i">
+ <default>0</default>
+ <_summary>Monitor</_summary>
+ <_description>Monitor to display the notification. Allowed values: -1 (display on active monitor) and 0 to n - 1 where n is the number of monitors.</_description>
+ </key>
+ <key name="theme" type="s">
+ <default>'nodoka'</default>
+ <_summary>Current theme</_summary>
+ <_description>The theme used when displaying notifications.</_description>
+ </key>
+ <key name="sound-enabled" type="b">
+ <default>true</default>
+ <_summary>Sound Enabled</_summary>
+ <_description>Turns on and off sound support for notifications.</_description>
+ </key>
+ <key name="default-sound" type="s">
+ <default>''</default>
+ <_summary>Default Sound</_summary>
+ <_description>The default sound file used unless a notification supplies the 'sound-file' or 'suppress-sound' hint. Leave empty for no default sound.</_description>
+ </key>
+ </schema>
+</schemalist>