From 7c6ba368d9480c7d4d49646e9ef0b4cad95098a5 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 11 Feb 2013 01:13:52 +0100 Subject: Make GSettings schema translatable --- data/Makefile.am | 6 +++- data/org.mate.NotificationDaemon.gschema.xml | 34 ---------------------- data/org.mate.NotificationDaemon.gschema.xml.in.in | 34 ++++++++++++++++++++++ 3 files changed, 39 insertions(+), 35 deletions(-) delete mode 100644 data/org.mate.NotificationDaemon.gschema.xml create mode 100644 data/org.mate.NotificationDaemon.gschema.xml.in.in 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 @@ - - - - 'top_right' - Popup location - Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right" - - - true - Use Active Monitor - Display the notification on the active monitor. - - - 0 - Monitor - Monitor to display the notification. Allowed values: -1 (display on active monitor) and 0 to n - 1 where n is the number of monitors. - - - 'nodoka' - Current theme - The theme used when displaying notifications. - - - true - Sound Enabled - Turns on and off sound support for notifications. - - - '' - Default Sound - The default sound file used unless a notification supplies the 'sound-file' or 'suppress-sound' hint. Leave empty for no default sound. - - - 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 @@ + + + + 'top_right' + <_summary>Popup location + <_description>Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right" + + + true + <_summary>Use Active Monitor + <_description>Display the notification on the active monitor. + + + 0 + <_summary>Monitor + <_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. + + + 'nodoka' + <_summary>Current theme + <_description>The theme used when displaying notifications. + + + true + <_summary>Sound Enabled + <_description>Turns on and off sound support for notifications. + + + '' + <_summary>Default Sound + <_description>The default sound file used unless a notification supplies the 'sound-file' or 'suppress-sound' hint. Leave empty for no default sound. + + + -- cgit v1.2.1